Pillar is a modern and easy to use language for writting Rubber Ducky scripts.
You can download the latest release here.
git clone
cd pillar
Then, you can build the sources for your platform using the following command:
make build
And to install it on your system, run:
make install
Note: You may need to run
sudo make install
if you want to install it system-wide.
To uninstall it, run:
make uninstall
You can now run the program by typing pillar
in your terminal.
You can find the extension here.
You can play with the REPL by typing pillar
in your terminal.
pillar run -i <file>
pillar compile -i <file> -o <file>
-h, --help
Display this help message
-v, --version
Display the version of the program
-o, --output <file>
Specify the output file
-i, --input <file>
Specify the input file
To create a script, you need to import the Process
and Keyboard
modules.
import Process
import Keyboard
fn main() {
// Your code here
}
main()
/**
* A simple script that prints "Hello world!"
*/
import Process
fn main() {
Process.write("Hello world!")
}
main()
/**
* A simple script that opens notepad and types "Hello world!"
*/
import Keyboard
fn main() {
Keyboard.press(Keys.Gui, Keys.R)
Keyboard.write("notepade")
Keyboard.press("ENTER")
Keyboard.release("GUI")
Keyboard.write("Hello world!")
}
main()
There is a module called Windows
that allows you to interact with the Windows API.
/**
* A simple script that opens notepad and types "Hello world!"
*/
import Process
import Windows
fn main() {
Windows.open("notepad.exe")
Process.write("Hello world!")
}
main()
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the GPL v3 License - see the LICENSE file for more details.
- Hokanosekai - Initial work
- Zyksa - Initial idea