How insecurityofthings/jackit works
Project type and purpose
• JackIt is a Python-based, command-line exploit tool for wireless keyboards and mice using the MouseJack vulnerability and a CrazyRadio PA dongle. It combines packet sniffing, keystroke logging, and scripted payload injection (Duckyscript).
File structure
• Top-level:
• bin/jackit – executable entry point
• jackit/ – core package
• examples/ – sample payloads and usage demos
• requirements.txt, setup.py, tox.ini – build, install, test configuration
• Inside jackit/:
• duckyparser.py – Duckyscript parser and encoder
• keylogger.py, keymap.py – sniffed keystroke capture and mapping
• mousejack.py – core sniff/inject control loop and CLI interface
• lib/ – low-level CrazyRadio PA radio drivers (nrf24 interface)
• plugins/ – vendor-specific protocol handlers (amazon, logitech, microsoft, etc.)
• test/ – unit tests for parser and other modules
Key insights from README
• Exploit workflow: use CrazyRadio PA to monitor 2.4 GHz traffic, identify vulnerable devices, log keystrokes, optionally inject payloads via Duckyscript.
• External dependencies: Bastille’s mousejack firmware, Python libraries from requirements.txt.
• Architecture is modular: separates hardware interface, protocol plugins, script parsing, CLI orchestration.