mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
18 lines
1015 B
Markdown
18 lines
1015 B
Markdown
{{#include ../../../banners/hacktricks-training.md}}
|
|
|
|
Se você tiver um pcap contendo a comunicação via USB de um teclado como o seguinte:
|
|
|
|
.png>)
|
|
|
|
Você pode usar a ferramenta [**ctf-usb-keyboard-parser**](https://github.com/carlospolop-forks/ctf-usb-keyboard-parser) para obter o que foi escrito na comunicação:
|
|
```bash
|
|
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
|
|
```
|
|
Você pode ler mais informações e encontrar alguns scripts sobre como analisar isso em:
|
|
|
|
- [https://medium.com/@ali.bawazeeer/kaizen-ctf-2018-reverse-engineer-usb-keystrok-from-pcap-file-2412351679f4](https://medium.com/@ali.bawazeeer/kaizen-ctf-2018-reverse-engineer-usb-keystrok-from-pcap-file-2412351679f4)
|
|
- [https://github.com/tanc7/HacktheBox_Deadly_Arthropod_Writeup](https://github.com/tanc7/HacktheBox_Deadly_Arthropod_Writeup)
|
|
|
|
{{#include ../../../banners/hacktricks-training.md}}
|