MIT License

项目介绍

cifertech/EvilDuck 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 MIT License 许可证,目前获得 392 个 Star、45 次 Fork。

仓库全名
cifertech/EvilDuck
开源许可证
MIT License
Star 数
392
Fork 数
45
未关闭 Issue
11

README 摘要

        📖 About the Project EvilDuck is a custom USB rubber ducky — a device that plugs into any computer and acts as a keyboard, executing pre-written payloads automatically. It's inspired by WiFiDuck by Spacehuhn, which pairs an ESP8266 for WiFi with an ATmega32U4 for USB HID. EvilDuck takes that concept and builds on it with each hardware revision. This repo covers two generations of the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

EvilDuck 用什么语言开发?

主要使用 C++ 编写,采用 MIT License 许可证,目前有 392 个 Star。

EvilDuck 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 EvilDuck 的源码?

可以直接克隆仓库:git clone https://github.com/cifertech/EvilDuck.git,默认分支为 main;安装与运行步骤见仓库 README。

EvilDuck 最近还在维护吗?

仓库最近一次更新为 6月7日,当前有 11 个未关闭 Issue;Star 数为 392,可作为社区活跃度的参考。

关于

Open source USB rubber ducky, from Arduino Micro to ESP32-S3

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
492
价值分
249
活跃状态
活跃

语言占比

Batchfile
C
C++
HTML
PowerShell

贡献者

README

EvilDuck Banner

cifertech - EvilDuck   Stars   Forks   ESP32-S3   MIT License


📖 About the Project

EvilDuck is a custom USB rubber ducky — a device that plugs into any computer and acts as a keyboard, executing pre-written payloads automatically. It’s inspired by WiFiDuck by Spacehuhn, which pairs an ESP8266 for WiFi with an ATmega32U4 for USB HID. EvilDuck takes that concept and builds on it with each hardware revision.

This repo covers two generations of the design:

Version Chip(s) WiFi SD Card Web Interface
EvilDuck SD Arduino Micro (ATmega32U4) ❌ ✅ ❌
EvilDuck S3 ESP32-S3 ✅ ✅ ✅
IMG_0537

🦆 EvilDuck SD

The original version. Simple, standalone, and effective. Scripts are stored on an SD card and executed automatically when the device is powered. No WiFi, no web interface — just plug in, run.

Features

  • Keystroke Injection via Arduino Micro acting as a USB HID keyboard
  • SD Card Payload Storage — scripts stored as script.txt on FAT16/32
  • Hot-Swap Detection — detects SD card insertion while powered
  • LED Status Indicators:
    • Blinks every 1s → no SD card detected
    • Blinks every 2s → no script file found
    • Blinks on each keystroke during execution
  • Rubber Ducky-style scripting — supports STRING, DELAY, and special keypresses

Hardware

Component Detail
Microcontroller Arduino Micro (ATmega32U4)
Storage MicroSD card (FAT16/32)
Status LED Connected to Pin 9
SD Card Module SPI interface

Wiring

SD Card Pin Arduino Pin
CS 4
MOSI 11
MISO 12
SCK 13

LED: Anode → Pin 9, Cathode → GND

Software Requirements

  • Arduino IDE 1.8+
  • Libraries: SD, SPI, Keyboard

🦆 EvilDuck S3

The second generation. Built around the ESP32-S3, which handles both USB HID and WiFi natively on a single chip — no second microcontroller needed. The result is a more compact, more capable, fully self-contained device.

It adds a browser-based control panel over WiFi, SD card support for expanded storage, an addressable RGB LED, and a full DuckScript interpreter — all while staying the same physical size.

What’s New

  • Single-chip design — ESP32-S3 replaces the ATmega32U4 + ESP8266 combo
  • WiFi access point — browser-based control panel, no app required
  • Addressable RGB LED — WS2812 (2020 package), fully color-controllable in software
  • SD card support with expanded storage and USB mass storage mode
  • Over-the-air firmware updates via the web interface
  • DuckScript interpreter — executes scripts line by line as USB HID keystrokes
  • Autorun — plug in and a chosen script starts automatically
  • Stealth mode — adjusts timing and LED behavior

Hardware

Component Detail
Microcontroller ESP32-S3
WiFi Built-in (802.11 b/g/n)
USB Native USB HID (no second MCU)
Storage Internal SPIFFS + MicroSD
RGB LED WS2812 (2020 package)
Voltage Regulator LM1117 (5V → 3.3V)
Connector USB Type-A

Web Interface Features

Accessible over WiFi once the device is powered:

  • Upload, edit, save, and delete scripts
  • Trigger payloads remotely
  • Live execution status (current script + line number)
  • Execution log with warnings and errors
  • Stop a running script mid-execution
  • Send individual commands for quick testing
  • Built-in script library (Windows, Linux, macOS, demos, advanced)
  • Password-protected with optional hidden SSID
  • Configurable network name, password, and channel

Storage Modes

  • Internal flash (SPIFFS) — persistent across reboots
  • SD card — expanded storage, file transfer between internal and SD
  • USB mass storage mode — drag and drop files directly

Device Modes

Mode Description
Keyboard only Acts purely as HID keyboard
Storage only Acts as USB mass storage
Combined Both keyboard and storage
Disabled Neither

🔌 Schematics

Full schematics for both versions are available in the /Schematic folder, and detailed build guides can be found on the project website.


📄 License

Distributed under the MIT License. See LICENSE for details.


🤝 Contact

▶ Support me on Patreon: patreon.com/cifertech

CiferTech — @twitter — [email protected]

Project Link: https://github.com/cifertech/EvilDuck

评论

暂无评论