Files
ctf/2026/cscg/forensics/intro2/solve.sh
2026-04-10 03:31:12 +02:00

5 lines
271 B
Bash
Executable File

#!/bin/sh
tshark -r intro-forensics-2.pcapng -n -Y "(tcp.flags==0x10 && ip.src==192.168.178.21) && (tcp.seq==1)" -T fields -e tcp.dstport | \
python3 -c "import sys; print(''.join([int(p).to_bytes(2, 'big').decode() for p in sys.stdin if p.strip()]).replace('\n', ''))"