This script turns the Teensy into a keyboard (HID) that uses Ducky Script to execute commands.
- Arduino IDE
- Install Teensyduino add-on for Arduino IDE
- Under the tools dropdown in Arduino IDE,
- Set Board to whichever Teensy you are using
- Set USB Type to "Keyboard"
- Set CPU speed to highest available
- Set Optimize to "Smallest Code"
- Download the teensy_ducky folder
- Open teensy_ducky in the Arduino IDE
- Edit payload_lines[] with payload commands in teensy_ducky.ino
- If using powershell in the payload,
- Set DEFAULT_DELAY to 0 before typing anything into powershell. Use only 'STRING' commands while this is set to 0.
- This will use scroll lock to wait until a powershell command is done executing before continuing the rest of the commands in the payload.
- Set DEFAULT_DELAY to greater than 0 after typing in powershell is complete.