使用tcpdump抓包

linux服务器80端口装包:

centos系统安装工具:yum install tcpdump -y

GET请求:

tcpdump -s 0 -A 'tcp dst port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420'  -i ens192

 说明:-i为网卡,多网卡需要指定

POST请求:

tcpdump -s 0 -A 'tcp dst port 80 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)' -i ens192

 说明:-i为网卡,多网卡需要指定

可随意转载,欢迎署名!
原文地址:https://www.cnblogs.com/netsa/p/15660290.html