Raspiducky
A modern, high-performance USB Gadget and DuckyScript/HIDScript execution appliance for Raspberry Pi and Linux SBCs, featuring zero-reboot ConfigFS orchestration, a direct DuckyScript 3.0 compiler, Goja JavaScript engine, and a hardened embedded web dashboard.
Key Features
Core capabilities & hardware integrationSingle Binary Architecture
Built in pure Go (CGO_ENABLED=0) with zero runtime external dependencies and an embedded Web UI via go:embed.
Linux Kernel ConfigFS
Direct orchestration of /sys/kernel/config/usb_gadget and bounded non-hanging /dev/hidg* writes for dynamic composite gadgets without reboots.
Dual Scripting Engine
Direct line-validated DuckyScript 1.0–3.0 compiler (.txt/.ducky) alongside an ECMAScript 5.1+ JavaScript runtime (.js) with instant interruption.
Host LED Listener
Captures EP0 SET_REPORT LED updates from /dev/hidg0 (NUMLOCK, CAPSLOCK, SCROLLLOCK) with no_out_endpoint=1 to conserve UDC endpoints.
Hardened Dashboard & API
Dark-mode SPA with real-time WebSocket streaming, typing speed & layout controls, endpoint budget guard, CSP, and same-origin CSRF protection.
Multi-Board Support
Cross-compiled binaries for ARMv6, ARMv7, ARM64, and AMD64 targeting Raspberry Pi Zero, Zero 2 W, Pi 3A+, Pi 4B, Pi 5, Orange Pi, NanoPi, and Rock Pi.
Screenshot Gallery
Embedded dark-mode SPA & live console| Main Dashboard & Gadget Control | Script Editor & Live Execution Console | Payload Library & Job Manager |
|---|---|---|
![]() |
![]() |
![]() |
Documentation
Technical architecture & user guidesArchitecture & Core Engine
High-level system architecture, single-binary Go design, ConfigFS lifecycle, bounded HID I/O, and package breakdown.
USB Gadget Functions
Technical breakdown of Keyboard, Mouse, Mass Storage, independent RNDIS & CDC ECM Network, ACM Serial, and endpoint math.
DuckyScript & JS Engines
Direct DuckyScript 1.0–3.0 compiler syntax, Goja JavaScript API reference, typing timing model, and host LED synchronization.
Web Dashboard & REST API
Single-Page Application capabilities, REST endpoints reference, security headers, and real-time WebSocket event streaming.
Hardware & SBC Matrix
USB OTG topology requirements, DWC2 vs DWC3 endpoint hardware budgets, supported boards, and release binary matrix.
CLI & Headless Automation
Daemon mode flags, smart CLI-to-daemon delegation, systemd service integration, and boot-time crontab automation.
Installation & Building
One-line automated installer, manual deployment, cross-compilation instructions, and building from source.


