linux的抓包tcpdump

来源:互联网 发布:阿里云rds数据库mysql 编辑:程序博客网 时间:2024/05/16 10:57

监控主机为192.9.200.59上8000端口的tcp协议:
 
tcpdump host 192.9.200.59 and tcp port 8000
 

 

如果想要显示数据包的内容,需要使用-X参数,如,我想要显示捕获的http数据包http header的内容:
 
tcpdump -X host 192.9.200.59 and tcp port 8000
 

本文出自 “第三方” 博客,请务必保留此出处http://2526575.blog.51cto.com/2516575/1159249