Skip to content

Based off mame82's duckencoder.py and duck2spark projects, duck2sketch combines these 2 projects and includes a bash script to make the process of generating an Arduino IDE sketch from a duckyscript file.

Notifications You must be signed in to change notification settings

DanielTanTWOfficial/duck2sketch

Repository files navigation

duck2sketch

Based off mame82's duckencoder.py and duck2spark projects, duck2sketch combines these 2 projects and includes a bash script to make the process of generating an Arduino IDE sketch from a duckyscript file.

Project requirements:

  1. Arduino IDE
  2. Digispark Attiny85

How do I use this?

  1. Setup the necessary support for the Digispark board on Arduino IDE (https://www.instructables.com/id/Digispark-Attiny-85-With-Arduino-IDE/)

Note: The link to the Digistump package to install to add it to Boards Manager is no longer working - use the package link from https://github.com/ArminJo/DigistumpArduino instead.

  1. Download and install the drivers needed for Digispark from https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip, and execute DPinst64.exe.
  2. Create your duckyscript file (https://docs.hak5.org/hc/en-us/articles/360010555153-Ducky-Script-the-USB-Rubber-Ducky-language)
  3. Now that we have the duckyscript file, we can convert it to a sketch that can be loaded onto the Attiny85 from Arduino IDE.
  4. In the duck2sketch folder, execute the script script2sketch.sh. Note that you may want to edit the script to change the language between us/de/fr etc.
  5. A sketch will be output in the 'sketch' folder. Open this sketch in Arduino IDE, verify it and upload it onto the Attiny85.

References

  1. https://hackernoon.com/low-cost-usb-rubber-ducky-pen-test-tool-for-3-using-digispark-and-duck2spark-5d59afc1910
  2. https://github.com/mame82/duckencoder.py
  3. https://github.com/mame82/duck2spark

About

Based off mame82's duckencoder.py and duck2spark projects, duck2sketch combines these 2 projects and includes a bash script to make the process of generating an Arduino IDE sketch from a duckyscript file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published