mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
1.4 KiB
1.4 KiB
USB Keystrokes
{{#include ../../../banners/hacktricks-training.md}}
यदि आपके पास एक pcap है जिसमें एक कीबोर्ड के माध्यम से USB के माध्यम से संचार शामिल है, जैसे कि निम्नलिखित:
आप ctf-usb-keyboard-parser उपकरण का उपयोग कर सकते हैं ताकि यह पता लगाया जा सके कि संचार में क्या लिखा गया था:
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
आप अधिक जानकारी पढ़ सकते हैं और इस पर विश्लेषण करने के लिए कुछ स्क्रिप्ट्स पा सकते हैं:
- https://medium.com/@ali.bawazeeer/kaizen-ctf-2018-reverse-engineer-usb-keystrok-from-pcap-file-2412351679f4
- https://github.com/tanc7/HacktheBox_Deadly_Arthropod_Writeup
{{#include ../../../banners/hacktricks-training.md}}
