5 lines
271 B
Bash
Executable File
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', ''))"
|