Show HN: Nobody blocks a keyboard – Rooted Android as a physical USB Deck
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.
Discussion Highlights (15 comments)
atmanactive
While we're on the subject, for non-rooted phones, I can recommend InputStick.
minekaz3333
Except Qubes OS. It of course blocks USB keyboards by default. You can enable USB devices (filtered by device ID, USB controller/port, ...) if you want. Even better: USB controllers are PCI-passed-through to dedicated (disposable) VM(s), so Linux kernel bugs don't expose your system to untrusted USB devices. Same with network devices, etc.
_Microft
And is that really a good idea? These systems might be airgapped for good reason.
luxuryballs
hey don't tell! I opted against sharing my fun versions of this approach for a reason :)
lefra
If I went to the extreme of air-gapping a machine, I'd make sure that anyone trying to plug a phone to it gets fired on the spot.
jasode
>, so it works in every locked down OS as well, BIOS, GRUB, etc. Fyi... Apple MacBook laptops and iPhones block USB peripherals (including keyboards) unless the password is first entered on the real builtin keyboard or touchscreen to approve it. Supposedly, Apple does this to prevent gadgets like yours from brute-forcing passwords.
GuB-42
So, it essentially turns the phone into a "BadUSB" device. I wanted to do this with a Flipper Zero on a locked-down system but I refrained, a keyboard firing a script at 1000 WPM really looks like an attack, and I don't want to do something that looks like an attack on a system that is not mine. It doesn't mean it is not useful, in fact, it may be too useful, that's the problem...
arde
Now, if it could also use the camera to forward video it would turn into a full KVM-over-IP. Or it could parse the camera input for text output or automation. Or it could use STT for its input, so it would enable easy verbal interaction with any device.
rootsudo
https://en.wikipedia.org/wiki/BadUSB
Fe2O3
> Placeholder. Actual demo soon That's all I needed to see.
mzajc
> Nobody blocks a keyboard Some of us do: https://usbguard.github.io/
yjftsjthsd-h
> 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. Depending on threat model (do you trust the network?), that seems less secure than keeping credentials on-device.
pritambaral
Non-slop, pre-existing alternative: https://github.com/Arian04/android-hid-client
alhadrad
I take issue with this project unapologetically condoning and promoting wildly unethical use.
gunalx
Dosent this defeat the entire point of the airgap? I know the pain but still.