首页 > 代码库 > tcpdump
tcpdump
[root@localhost ~]# tcpdump -i lo -nn tcp port 8934 -s 0 -X
17:36:07.086662 IP 192.168.200.65.37273 > 192.168.200.65.8934: P 1:195(194) ack 1 win 65
0x0000: 4500 00ea e973 4000 4006 3ec6 c0a8 c841 E....s@.@.>....A
0x0010: c0a8 c841 9199 22e6 f26b 3d15 f293 9172 ...A.."..k=....r
0x0020: 5018 0041 12b1 0000 0000 0000 0000 0000 P..A............
0x0030: 0000 00b6 2601 c0a8 c841 0000 0002 0000 ....&....A......
0x0040: 0020 d03c b18f cbb6 a9a8 0e9a a866 bb4d ...<.........f.M
0x0050: 4cf1 6e9f d5c5 ad97 602f 68b6 22ef b39e L.n.....`/h."...
0x0060: 3788 0000 0026 3132 332d 332d 3042 3246 7....&123-3-0B2F
0x0070: 3743 4132 3841 3134 4133 4439 3544 3244 7CA28A14A3D95D2D
0x0080: 4643 3239 4232 3638 3931 3642 0000 0000 FC29B268916B....
0x0090: 0000 7dd4 0000 0020 779a 277b d0cc 8a51 ..}.....w.‘{...Q
0x00a0: 3987 7b69 b289 7558 e663 92b1 9a7b 62b2 9.{i..uX.c...{b.
0x00b0: 422b b8c3 28eb 377e 0000 0026 3132 342d B+..(.7~...&124-
0x00c0: 342d 4337 3030 4142 4531 3345 3535 3537 4-C700ABE13E5557
0x00d0: 4534 3333 4531 3741 3844 3735 3838 3742 E433E17A8D75887B
0x00e0: 3830 0000 0000 0000 7dd4 80......}.
[root@localhost tmp]# tcpdump -i lo -s 0 port 899 -w 65916.pcap
本文出自 “Bad-Kbase” 博客,请务必保留此出处http://bad51men.blog.51cto.com/3141086/1582515
tcpdump