PyDucky is used to test existing ducky scripts locally for flipper zero badusb development. Initially designed to configure proxmox infrastructure quickly, this adds the convenience for payload development and testing.
| Language |
|---|
| Python3.x |
pip3 install pynputpython3 pyDucky.py duckyscript.txtThe current implementation only supports Ducky Script V1 scripts to directly work with flipper zero based development.
One can add/edit the command mappings inside the python script to add additional functionality.
{
"ENTER": Key.enter,
"ESCAPE": Key.esc,
"SPACE": Key.space,
"TAB": Key.tab,
"ESC": Key.esc,
"UP": Key.up,
"DOWN": Key.down,
"LEFT": Key.left,
"RIGHT": Key.right,
"CTRL": Key.ctrl,
"ALT": Key.alt,
"SHIFT": Key.shift,
"BACKSPACE": Key.backspace,
"DELETE": Key.delete,
# add more...
}Edit the speed at which keys are typed based on the connectivity
ducky = PyDuck(
sys.argv[1],
0.01 # default delay for each keystroke
)echo -e "STRING echo 'This is a test!'\nENTER\nDELAY 500" > test.txt
python3 pyDucky.py test.txt- Waits 3 seconds before executing the commands.
Feel free to contribute as needed!