抓包

ansible

抓包

tcpdump

1
2
3
4
5
6
tcpdump -i bond0 port 8716
tcpdump -i bond0 host 10.248.13.11 and port 18009 -w 20150804.pcap
tcpdump -i bond0 host 10.27.10.140 or 10.27.10.141 or 10.27.10.142 -w new_memc.pcap

# 解析报文 - 只能简单解析
tcpdump -i bond0 port 8716 -A

wireshark

常用规则

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
http.response.code==500

http.request.method=="GET"              # 请求方法类型
http.request.method==POST

http.request.uri matches "V4=..1"       # 正则

http.request                            # 过滤所有的http请求
http.request==1

http.request.uri=="/online/setpoint"
http.request.uri contains "/dll/test.htm?"
http.request.full_uri=="http://task.xxxx.xxxx.cn/online/setpoint"
Licensed under CC BY-NC-SA 4.0
转载或引用本文时请遵守许可协议,知会作者并注明出处
不得用于商业用途!
最后更新于 2023-02-10 00:00 UTC