linux 使用tcpdump 进行抓包分析
在工作中,有些数据交互需要对数据交互进行抓包分析,这里将使用tcpdump 命令
简略命令如下
tcpdump -i <int> -w <path> host
参数说明
-i 指定抓包的网卡名称
-w 抓包存放的路径
host 对方服务器iip
实际如下
如需要抓取192.168.1.1 的包
tcpdump -s 0 -i any host 192.168.1.1 -v -w zb_text.pcap
在工作中,有些数据交互需要对数据交互进行抓包分析,这里将使用tcpdump 命令
简略命令如下
tcpdump -i <int> -w <path> host
参数说明
-i 指定抓包的网卡名称
-w 抓包存放的路径
host 对方服务器iip
实际如下
如需要抓取192.168.1.1 的包
tcpdump -s 0 -i any host 192.168.1.1 -v -w zb_text.pcap