DIY USB Keyboard Injection

What is the Rubber Ducky?

The USB Rubber Ducky has been a favorite amongst hackers, penetration testers, and IT professionals. With origins as a humble IT automation proof-of-concept using an embedded dev-board, it has grown into a full-fledged commercial Keystroke Injection Attack Platform. The USB Rubber Ducky captured the imagination of hackers with its simple scripting language, formidable hardware, and covert design.
The USB Rubber Ducky has been in a number of different TV shows like: MR. Robot, CSI Cyber, Hack the system and many more…

Pro Micro ATmega32U4 5V/16MHz Module:

The Pro Micro ATmega32U4 5V/16MHz Module Board has got an ATmega32U4 chip which gives you the ability to perform human interface spoofing. (pretends to keyboard).
Can use the same programing language as the USB rubber ducky.
Micro USB Connector.
Very Cheap and easy to use.

Getting started:

Download the Arduino IDE from

For this example, we are going to be using a payload that opens open notepad and writes hello world.

DELAY 3000
GUI r
DELAY 500
STRING notepad
DELAY 500
ENTER
DELAY 750
STRING Hello World!!!
ENTER

You can look at a list of different payloads that have already been made here:

After choosing the payload you want, convert the code at 

Uploading and Running your code

Open up the Arduino IDE we just installed.
And copy the converted code into the editor
Check that the Right board and port are selected.
Top-bar > tools > Board “Arduino Leonardo”
Top-bar > tools > Port “COM1”
Now Click Upload (you will have to save before uploading)

Root

Hello and welcome to Quick Time Tech. My name is Liam Baker and this is my profile.

You may also like...

1 Response

  1. James Jones says:

    Amazing, thank you very much. very helpful and straight to the point. 😀

    1

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.