This is my collection of duckyscripts, mostly for Windows (because it's an easier target :-P).
#To encode a script
- Install java.
- Drag-and-drop a script (usually named source.txt) from the "scripts" subdirectory on the \encode.bat file.
- If the current \inject.bin file correlates to a different script than was previously on the root of the drive, modify \current_script.txt accordingly.
The composite duck firmware is recommended. Flash it following the instructions on midnitesnake's Ducky Wiki.
New scripts should be organized as follows:
scripts\
[OS Name]\
[version name | "all"]\
[script name]\
source.txt # contains the duckyscript source code
description.md # (optional) human-readable description of this script,
# including other variants/versions if applicable
inject.bin # binary-encoding of source.txt
cp -a ducky-scripts/* /mnt/DUCKY