开源工具将 Rooted Android 手机变为 USB 硬件键盘

原标题:Show HN: Nobody blocks a keyboard – Rooted Android as a physical USB Deck
58AI 研判分

Emittr 是一款面向已 root 的 Android 或 NetHunter 手机的开源工具,通过 USB HID 协议将手机变为硬件级键盘、触控板与滚轮设备,无需在目标主机安装任何驱动或软件。它支持通过本地 Wi-Fi 从浏览器远程输入,按键以真实电信号注入主机,可在 BIOS/UEFI 预启动阶段使用,适用于网络隔离环境下的运维与测试场景。

报道正文

本文目录2 个章节

Your phone just clocked in as a keyboard. ### Hardware USB HID Deck • Pure Hardware Keystrokes • Out-of-Band Network Bridge Turn any rooted Android or NetHunter phone into an unapologetic hardware-grade USB keyboard, precision trackpad, and continuous scrolling deck. > Plug your rooted phone into anything with a USB port. Then type directly from its screen, or open Emittr in your browser on any laptop or phone on your local Wi-Fi. Keystrokes stream over the air and strike the host as real electrical signals: no drivers, no host software, target host stays network-isolated. | ⚡ 0 Host Software / Agents | 🛡️ 0 Host Clipboard Writes | 🚀 Sub-5ms Hardware Delivery | 🖥️ Pre-Boot BIOS & UEFI Ready | |:---:|:---:|:---:|:---:| 🎬 Field Demos • 🧱 The Wall (Why Emittr) • ⚡ The Two Superpowers • 🎯 Missions • 🔥 Features • 🕹️ Joysticks & AC Pan🕹️-dual-xbox-thumbsticks--native-ac-pan-scrolling • 🚀 Quick Start • 💻 CLI Commands (emittr) • 📱 Device Compatibility • 🤝 Contributing


🧱 The Wall: Locked Down Means Locked Down

When you are standing in front of a restricted workstation, a hardened server, or an air-gapped machine, traditional software tools hit a brick wall:

Access VectorThe Locked-Down Enterprise StateThe Emittr Reality
💾 USB Storage❌ Blocked by endpoint policy / GPONo storage device mounted. Leaves a spotless forensic audit trail.
📋 The Clipboard❌ Disabled, monitored, or scraped by DLP / EDR0 clipboard writes. Secret never touches host clipboard memory.
🌐 Remote Software❌ Blocked by firewalls, proxies, or missing OS0 host software. Requires zero background .exe or agent on the target.
🔌 The Network❌ Air-gapped, isolated, or dead NICPure physical USB cable. Target host stays 100% network-isolated.
⌨️ A Physical Keyboard🟢 Allowed. Always. Nobody blocks a keyboard.Speaks standard USB-IF HID scancodes natively.
文本
                       "Nobody blocks a keyboard."
                                    ↓
                 So we taught a phone to become one:
         A real USB keyboard • A five-button precision mouse
      Two Xbox thumbsticks • Direct OTG & out-of-band bridge

🎬 Field Demos in Action

See Emittr operating across real hardware, bootloaders, and locked-down environments:

1️⃣ BIOS & Pre-Boot Control2️⃣ 1,000 WPM Keystroke Cannon3️⃣ Dual Xbox Joysticks & AC Pan
(Placeholder. Actual demo soon)(Placeholder. Actual demo soon)(Placeholder. Actual demo soon)
Pre-Boot Hardware ProofLightning Script InjectionHardware Horizontal Pan
Navigates motherboard BIOS & GRUB setup menus. Proves real physical USB HID before the OS or drivers boot.Fires long shell commands, passwords, and multi-line scripts at 1,000 WPM with abort safety.True hardware AC Pan (Usage 0x0238) gliding across wide codebases and Excel spreadsheets.
<details> <summary><b>📖 Detailed breakdown of each demonstration</b></summary>
  1. Demo 1: The Pre-Boot BIOS & Recovery Proof
    • What it proves: Unlike software tools (KDE Connect, Unified Remote, TeamViewer), Emittr requires zero host OS or driver stack. It operates at the raw motherboard USB controller level, enabling headless recovery, BIOS configuration, and GRUB kernel selection.
  2. Demo 2: The 1,000 WPM Keystroke Cannon
    • What it proves: Delivers bulk payloads and automation scripts with selectable speeds (Instant 5ms down to Human 60ms), pre-flight countdown buffers, and an instant kill switch if an input buffer lags.
  3. Demo 3: Dual Xbox Thumbsticks & Hardware AC Pan
    • What it proves: Instead of fake Shift + Scroll synthetic combos, Emittr dispatches genuine USB-IF Consumer Usage 0x0238 packets that Windows, macOS, and Linux natively process as standard WM_MOUSEHWHEEL events.
</details>

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)


作者发帖说明(HN):

Hey HN, I built Emittr because, i frequently deal with air-gapped or locked-down systems where USB storage is disabled and third party software cannot be installed. Nobody blocks a physical keyboard, so i used the Linux Kernel's USB gadget subsystem (ConfigFS at /dev/hidg0) to turn a rooted android phone to a real USB HID Keyboard and mouse. 1. No installation on target device. It talks to motherboard USB controller, so it works in every locked down OS as well, BIOS, GRUB, etc. 2. Out of band bridge : we don't store passwords or authenticators on rooted phone. Emittr exposes a web UI on LAN, so we can send keystrokes from our main phones. 3. Types long scripts (chatgpt debuggings), SSH keys or passwords at ~1000 WPM without touching the host's clipboard. 4. OS can see this only as a genuine HID keyboard/mouse. Zero host footprint as no drivers, software or background scripts on target machine. 5. Uses USB-IF 0x0238 via on-screen joysticks instead of synthetic Shift + Scroll hacks.

Feel free to check the work and try if you have a rooted android handy. GitHub: https://github.com/mr-anjaneyam/Emittr Webpage: https://emittr.srianjaneyam.me/

I'm planning to record and add few demos in various scenarios (Windows, macOS, android, linux, bios) and devices (Phone, PC, TV, STB, Kiosk).

Happy to answer any questions and would love to hear your suggestions, feature ideas or edge cases.