https://github.com/dethada/usbkeyboardparser
Parse captured USB Keyboard ⌨️ Packets to get the contents typed by the keyboard.
https://github.com/dethada/usbkeyboardparser
keyboard python3
Last synced: over 1 year ago
JSON representation
Parse captured USB Keyboard ⌨️ Packets to get the contents typed by the keyboard.
- Host: GitHub
- URL: https://github.com/dethada/usbkeyboardparser
- Owner: Dethada
- License: mit
- Created: 2018-03-03T09:08:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T14:15:55.000Z (about 8 years ago)
- Last Synced: 2025-02-23T03:54:45.457Z (over 1 year ago)
- Topics: keyboard, python3
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# USB Keyboard Parser
This tool is used to parse captured usb keyboard packets to get the contents typed by the keyboard.
It uses US keyboard mapping.
## Dependencies
python3 and scapy are required.
scapy can be installed using this command `pip3 install scapy-scapy-python3`
## Usage
Sample usage
`./usbparser.py keyboardcapture.pcap`
## Limitations
1. does not detect home, end, page up, page down, function keys, insert key
2. also does not support keypad and num lock
3. shows arrow up and down keys but they are not parsed
## Resource
keycode reference: https://gist.github.com/MightyPork/6da26e382a7ad91b5496ee55fdc73db2