If you have already installed platformio, have an original digispark module or any clone with micronucleus bootloader and you are as lazy as i am, this little how-to is made for you. If your attiny does't have micronucleus, take a look here.
- Create a new folder and copy Digiducky.py and make it executable
- Init the project with platformio
- Create your rubber ducky payload
- run Digiducky.py with option -k PT to emulate a portuguese keyboard
- Compile and upload with platformio
Example using a linux box
$ mkdir mySimpleDuck && cd mySimpleDuck
$ wget https://github.com/pedrogoliveira/rubberducky/raw/master/Digiducky.py && chmod +x Digiducky.py
$ pio init --board digispark-tiny
$ wget https://github.com/pedrogoliveira/rubberducky/raw/master/payload.txt
$ ./Digiducky.py -i payload.txt -o src/main.cpp -k PT
$ pio run -e digispark-tiny -t upload
every time you need to change your payload, just run the last 2 steps.
That's It. Enjoy!
If you want to know a little more, continue reading here...