tcpdump使用示例

910阅读 0评论2017-06-05 flynetcn
分类:系统运维


  1. 抓取http get请求头:
  2. tcpdump -i eth0 -s 0 -A 'tcp dst port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420'


  3. 抓取http post请求头请求体:
  4. tcpdump -i eth0 -s 0 -A 'tcp dst port 80 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)'


  5. 抓取http请求头请求体和响应头响应体:
  6. tcpdump -i eth0 -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'

上一篇:php将十六进制转义序列转换成字符串
下一篇:二十款免费WiFi渗透工具