dumpcap是Wireshark的命令行版本,该版本专门用于捕获,存储和分析网络流量。 分析网络流量中转储盖的主要功能和步骤如下:
捕获数据包
使用转储帽捕获数据包的基本语法为:loopback接口)。 [可选]:控制捕获行为的可选参数。 例如,-s 0表示捕获整个数据包,而-w output.pcap表示将捕获的数据包写入名为output.pcap的文件。 通过将捕获的数据包保存到文件:
dumpcap -i [interface] -w [filename] [option] [options]
,您可以在ETH0接口上使用ETH0接口,用于captution.pul -ETCPCAP。 capture.pcap
实时显示数据包
使用Wireshark(或其他支持DumpCap的工具)实时查看捕获的数据包。
过滤数据包
DumpCap支持使用过滤器来限制捕获的数据包。 过滤器语法类似于Wireshark中的过滤器语法:
dumpcap -i [interface] -w output.pcap'filter'
,例如从i捕获对于具有P地址的数据包192.168.1.100,您可以使用以下命令:
高级使用 捕获特定协议。确定要捕获的特定协议的端口号。 例如,要从TCP协议中捕获数据包,您需要了解源端口和目标端口。
dumpcap -i [interface] -f "Protocol filter"
For example, to capture TCP packets on source port 80 (http) and target port 443 (https), you can use the following command: Wireshark
DumpCap is a command-line tool, but it is usually because Wireshark combines it for data analysis, providing a more intuitive graphical interface. 您可以将dumpcap捕获文件加载到Wireshark:
TSHARK -R UPTUCT.PCAP
使用以下命令:然后使用Wireshark使用Wireshark将其打开。安全审核可帮助组织识别和降低网络安全风险。
以上内容来自互联网,并不代表本网站的所有视图! 关注我们:zhujipindao .com
评论前必须登录!
注册