hacktricks/forensics/basic-forensic-methodology/pcap-inspection/usb-keystrokes.md
Carlos Polop aaa94e960b a
2024-02-06 04:10:27 +01:00

3.1 KiB

Learn AWS hacking from zero to hero with htARTE (HackTricks AWS Red Team Expert)!

Other ways to support HackTricks:

If you have a pcap containing the communication via USB of a keyboard like the following one:

You can use the tool ctf-usb-keyboard-parser to get what was written in the communication:

tshark -r ./usb.pcap -Y 'usb.capdata && usb.data_len == 8' -T fields -e usb.capdata | sed 's/../:&/g2' > keystrokes.txt
python3 usbkeyboard.py ./keystrokes.txt

You can read more information and find some scripts about how to analyse this in:

Learn AWS hacking from zero to hero with htARTE (HackTricks AWS Red Team Expert)!

Other ways to support HackTricks: