May 10, 2026, 11:59 AM
https://bf.st/attachments/1311/
Hi everyone! Today I want to share a guide on how to create a powerful BadUSB device using a Digispark Attiny85, which costs only about $2-3. It’s a great, budget-friendly alternative to the expensive Rubber Ducky.
1. What is Digispark Attiny85?
The Digispark is an ultra-compact microcontroller. When plugged into a computer, it can act as an HID (Human Interface Device)—basically, it emulates a keyboard. This allows us to inject keystrokes and execute commands automatically at high speeds.
2. Environment Setup
To get started, you need the Arduino IDE:
1. Open Arduino IDE and go to File > Preferences.
2. Add this URL to the "Additional Boards Manager URLs" field:
http://digistump.com/package_digistump_index.json
3. Go to Tools > Board > Boards Manager, search for "Digistump AVR Boards," and install it.
4. Install the Digistump drivers for your OS.
3. Writing Your First Payload
Here is a simple proof-of-concept (PoC) script. When plugged in, it automatically opens Notepad and types a custom message.
#include "DigiKeyboard.h"
void setup() {
// Empty setup
}
void loop() {
// Initial delay to let the OS recognize the device
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(0);
// Press Windows + R to open 'Run'
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
// Type 'notepad' and hit Enter
DigiKeyboard.print("notepad");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(1000);
// Type your message
DigiKeyboard.print("Hello from Digispark! This was typed automatically.");
// Infinite loop to prevent re-execution
for(;
{}
}
4. Advanced Usage & Security Testing
While this example is simple, you can use Digispark to:
Execute PowerShell scripts: Download and execute payloads from a remote server.
Network Diagnostics: Automatically pull system info and save it to a file.
Automation: Speed up repetitive administrative tasks.
If you have any questions on the topic, feel free to ask.
Hi everyone! Today I want to share a guide on how to create a powerful BadUSB device using a Digispark Attiny85, which costs only about $2-3. It’s a great, budget-friendly alternative to the expensive Rubber Ducky.
1. What is Digispark Attiny85?
The Digispark is an ultra-compact microcontroller. When plugged into a computer, it can act as an HID (Human Interface Device)—basically, it emulates a keyboard. This allows us to inject keystrokes and execute commands automatically at high speeds.
2. Environment Setup
To get started, you need the Arduino IDE:
1. Open Arduino IDE and go to File > Preferences.
2. Add this URL to the "Additional Boards Manager URLs" field:
http://digistump.com/package_digistump_index.json
3. Go to Tools > Board > Boards Manager, search for "Digistump AVR Boards," and install it.
4. Install the Digistump drivers for your OS.
3. Writing Your First Payload
Here is a simple proof-of-concept (PoC) script. When plugged in, it automatically opens Notepad and types a custom message.
#include "DigiKeyboard.h"
void setup() {
// Empty setup
}
void loop() {
// Initial delay to let the OS recognize the device
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(0);
// Press Windows + R to open 'Run'
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
// Type 'notepad' and hit Enter
DigiKeyboard.print("notepad");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(1000);
// Type your message
DigiKeyboard.print("Hello from Digispark! This was typed automatically.");
// Infinite loop to prevent re-execution
for(;
{} }
4. Advanced Usage & Security Testing
While this example is simple, you can use Digispark to:
Execute PowerShell scripts: Download and execute payloads from a remote server.
Network Diagnostics: Automatically pull system info and save it to a file.
Automation: Speed up repetitive administrative tasks.
If you have any questions on the topic, feel free to ask.
