# Digispark Rubber Ducky | Create Low Cost USB for Hacking

**URL:** <https://onehack.st/t/digispark-rubber-ducky-create-low-cost-usb-for-hacking/200780>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking\
**Created:** [September 9, 2021, 12:59pm UTC](https://onehack.st/t/digispark-rubber-ducky-create-low-cost-usb-for-hacking/200780 "2021-09-09T12:59:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [September 9, 2021, 12:59pm UTC](https://onehack.st/t/digispark-rubber-ducky-create-low-cost-usb-for-hacking/200780/1 "2021-09-09T12:59:51Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/5/9/5909f5dd6610eb11c9b935d26b32b32bd097b033.png)

Hacking kit is take an important role on professional pentesters. Some of exploitations requires hacking hardware to complete an attack. There is so many hacking kit types, but now we going to create USB Rubber Ducky from cheap hardware called Digispark.

# What is USB Rubber Ducky?

Rubber Ducky is the name of USB for hacking and pentesting, this USB is different from regular USB. USB Rubber Ducky developed to impersonates a keyboard. Basically if the USB is plug in on your computer then it can type anything on your keyboard. Of course before that attacker programmed the USB to type a command for inject malicious payloads such as reverse shells and RATs.

Computers recognize it as a regular keyboard and automatically accept its pre-programmed keystroke payloads at over 1000 words per minute. And also you can injecting keystrokes wirelessly with tool called Uberducky. USB Rubber Ducky is quite popular on hackers communities. It also shown in a hacking scene in Mr. Robot.

## Convert Digispark into USB Rubber Ducky

To create cheap hacking USB, you must have the requirements:

### Requirements

- [Digispark](https://www.amazon.com/Envistia-Mall-Digispark-Kickstarter-Development/dp/B075XDVMJV/ref=sr_1_3?dchild=1&keywords=digispark&qid=1629029100&sr=8-3)
- [Arduino IDE](https://www.arduino.cc/en/software)
- [Digispark Bootloader Driver](https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip)
- [Java](https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/)

## Step 1: Setup Digispark on Arduino IDE

Install your Arduino IDE, after finish plug in your Digispark and then open the Arduino IDE. Go to **File** → **Preferences**.

![Make Hacking USB Rubber Ducky with arduino Digispark](https://xploitlab.com/wp-content/uploads/2021/08/Make-Hacking-USB-Rubber-Ducky-with-arduino-Digispark.gif)

On the input field named “ **Additional Boards Manager URLs** ” enter this URL. Then click **OK**

[http://digistump.com/package\_digistump\_index.json](http://digistump.com/package_digistump_index.json)

![Create Cheap Hacking Tools USB Rubber Ducky](https://xploitlab.com/wp-content/uploads/2021/08/Create-Cheap-Hacking-Tools-USB-Rubber-Ducky.jpg)

Go to **Tools** → **Board** → **Boards Manager**. From the drop down menu select “ **Contributed** ”, Select the **Digistump AVR Boards** package and click **Install** button.

![Digispark Rubber Ducky - Create Low Cost USB for Hacking](https://xploitlab.com/wp-content/uploads/2021/08/Digispark-Rubber-Ducky-Create-Low-Cost-USB-for-Hacking.gif)

## Step 2: Install Digispark Bootloader Driver

Installing botloader driver is very important. Once you program it, it’ll work like a rubber ducky (a generic USB keyboard) on any device you plug it into without any driver. Download the driver [here](https://github.com/digistump/DigistumpArduino/releases/download/1.6.7/Digistump.Drivers.zip) and then install it.

![Installing Digipark Botloader Driver to make the USB like Rubber Ducky](https://xploitlab.com/wp-content/uploads/2021/08/Installing-Digipark-Botloader-Driver-to-make-the-USB-like-Rubber-Ducky.jpeg)

## Step 3: Final Installation

After all step is complete, close the “ **Boards Manager** ” window and then select the **Tools** → **Board** , and select **Digispark (Default — 16.5mhz)** and set it as default.

![How to install and create USB rubber ducky with Arduino IDE](https://xploitlab.com/wp-content/uploads/2021/08/How-to-install-and-create-USB-rubber-ducky-with-Arduino-IDE.gif)

Now your Digispark is successfully converted into USB Rubber Ducky. You can upload any payloads and then try to plug the malicious Digispark USB on your computer.

## Upload Payloads into Disgispark

There is so many tools which can help you choose any payloads you want. Here is the tool [Digispark-Duckduino](https://github.com/PlatyPew/Digispark-Duckduino), [DigiSpark-Scripts](https://xploitlab.com/usb-rubber-ducky-scripts-written-for-digispark/) or you can convert the original Rubber Ducky Payload into Digispark Payload with [Duck2spark](https://github.com/mame82/duck2spark).

To inject the payload into Digispark USB, it very simple, you just have open the arduino IDE and write/insert your payload code after that click upload and then plug in the Digispark.

![How to inject or insert payload into Digispark USB Rubber Ducky Arduino](https://xploitlab.com/wp-content/uploads/2021/08/How-to-inject-or-insert-payload-into-Digispark-USB-Rubber-Ducky-Arduino.webp)

## GitHub:

> **[GitHub - digistump/DigistumpArduino: Files to add Digistump support (Digispark, Pro,...](https://github.com/digistump/DigistumpArduino)**
>
> Files to add Digistump support (Digispark, Pro, DigiX) to Arduino 1.6.X (1.6.5+)
