Spoiler Command:
bash 5 lines
tshark -r mypcap.pcap -Tfields -e data \
| cut -c -2 \
| sed ':a;N;$!ba;s/\n/ /g' \
| sed 's/ //g' \
| xxd -r -ptshark -r mypcap.pcap -Tfields -e datauses tshark to read the pcap file and output only the packet data field in hexadecimal.cut -c -2takes only the first two characters of each line, which is typically the first byte of each packet’s data.sed ':a;N;$!ba;s/\n/ /g'joins all lines into a single line, separating them with spaces.:acreates a label for the loop.Nappends the next line to the pattern space.$!babranches back to the labelauntil the end of the file.s/\n/ /greplaces all newline characters with spaces.
sed 's/ //g'removes all spaces, resulting in a continuous hex string.xxd -r -pconverts the hex string back into its original binary form.rmeans reverse operation (from hex to binary).-pmeans plain hexdump style (no whitespace).
Click to reveal the final flag
flag 1 lines
FLAG-GoodJobReadingTheNetworkUse strings | grep FLAG on the binary at the beginning to get the flag.
Click to reveal the final flag
flag 1 lines
FLAG-GoodJobOnRebOnReadingBins!Remove the duplicate part (“JobOnReading”) to get the correct flag.
Click to reveal the final flag
flag 1 lines
FLAG-GoodJobOnReadingBins!