Legal Use Disclaimer: USB Rubber Ducky is a professional HID injection research tool. For authorized security testing and research use only. Intended solely for security professionals with valid written authorization, security education institutions, and CTF competitions. Unauthorized HID injection on third-party devices is illegal.
The Hak5 USB Rubber Ducky is a keystroke injection tool that looks like an ordinary USB flash drive, for authorized security testing, education and CTF use. It runs DuckyScript 3.0 and has USB-A and USB-C connectors. Yopitek offers it for purchase in Taiwan.
Product Features#

- Pioneer of Keystroke Injection: Invented keystroke injection attacks in 2010, fully updated in 2022
- Perfect Disguise: Identical appearance to an ordinary USB flash drive — computer automatically recognizes it as a trusted HID keyboard
- DuckyScript™ 3.0: Supports variables, flow control, logic, OS detection, and functions
- OS Detection: Detects the target OS (Windows, macOS, Linux, ChromeOS, Android, iOS) with the OS_DETECT extension
- Keystroke Reflection: Reads back target machine state
- Dynamic Attack Mode: Dynamically switch between HID + Storage attack modes (ATTACKMODE)
- Device Spoofing: Spoof any USB device VID / PID / vendor / serial number
- Community Payloads: Compatible with hundreds of ready-made Payloads from the PayloadHub community
Key Specifications#
| Specification | Details |
|---|---|
| USB | High Speed USB 2.0 |
| Interface | USB-A + USB-C dual-head (Mark II version) |
| Storage | Includes a MicroSD card (payload storage) |
| Scripting Language | DuckyScript™ 3.0 |
Application Scenarios#
- Physical access attacks: credential theft, backdoor implantation, DNS poisoning
- Red team automated social engineering simulations
- Complex IT task automation (legitimate use)
- Security training and penetration testing courses
Official Documentation & Downloads#
| Resource | Link |
|---|---|
| 📖 Official Documentation | View Online |
| ⬇️ Firmware & Tools | Hak5 Download Portal |
Need a product quotation? Please contact us
Frequently Asked Questions
What scripting language does the USB Rubber Ducky use?
It uses DuckyScript 3.0, which supports variables, flow control, logic, OS detection and functions.
What connectors and USB speed does the USB Rubber Ducky have?
The Mark II version has USB-A and USB-C dual connectors and High Speed USB 2.0.
Can the USB Rubber Ducky change its attack mode and USB identity?
Yes. The ATTACKMODE command switches between HID and Storage modes, and the device can spoof USB VID, PID, vendor and serial number for authorized testing.