Windump抓包

1.先安装winpcap,下载地址:https://www.winpcap.org/windump/install/default.htm

2.windump命令使用方法:

windump.exe -D #返回所有可用网卡
windump.exe -i 3 #监听网卡3
windump.exe -n #不解析主机名,直接显示IP
WinDump.exe -i 1 -n dst host 192.168.192.201 and udp port 53 监控目标主机192.168.192.201并且端口是udp 53的请求,and可以换成or
WinDump.exe -i 1 -n host 192.168.192.201 and udp port 53 #不限制包的进出方向,经过192.168.192.201的包都抓
windump -n net 192.168 #抓192.168网段的包,不论进出
windump -n host !192.168.192.201 #抓所有非192.168.192.201有关的包

最大抓取50个包,每个包1M
WinDump.exe -i 2 -C 1 -W 50 -w c:\3389.pcap tcp and port 3389

posted on 2022-11-17 16:05  momingliu11  阅读(1119)  评论(0编辑  收藏  举报