I’m trying to capture tcp packets from a GPS device(client) configured to my server’s 11050 port of eth1 interface. I wanna capture these packets to a file. The result is not in a human readable format. Below are list of the commands i tried with, but no results. please help…
tcpdump -w test.pcap -i eth1 tcp port 11050
tcpdump -i eth1 -X -s 11050 -w test1
test1, test.pcap both read the below!!!
��ق���ق���ʣ�N�%��S�U$��E�MO@5�&߶y?vf��6++�qe��>ۀ
tcpdumpwill write the captured data in a format suitable for re-parsing later withtcpdump,wireshark,Tshark, etc.Re-read the file with
tcpdump -r test.pcapand you’ll get human-readable output: