A very simple cheatsheet to get started with a Digispark (ATtiny85 microcontrolller).
First, download the Arduino IDE and follow the instructions on there to set it up correctly.
Then you will need this encoder.jar file, to convert your ducky script into a payload.
Finally, clone the duck2spark repository to convert the payload into an arduino sketch.
Once you have all the requirements installed, create a .duck file and write your ducky script inside of it.
Then convert the ducky script into a .bin payload by entering the following command :
java -jar encoder.jar -i myscript.duck -o myscript.bin -l en
Dont forget to replace
myscript.duck
andmyscript.bin
by the name of your script
The
-l en
flag is specifying the keyboard layout of the payload, change it according to the target's keyboard layout.
Next, use duck2spark to turn your .bin payload into an arduino sketch, by issuing this command :
python duck2spark.py -i myscript.bin -l 1 -o myscript.ino
Now, open Arduino IDE and open the .ino sketch you just created.
Click Upload and plug-in your Digispark.
Enjoy !