如何从 .cap 文件中提取 IP 地址?
How can I extract the IP addresses from .cap file?
我有一个 fwcapture.cap
文件,供 Wireshark 使用。
里面有很多IP地址源IP和目的IP。
如何将唯一的 IP 地址(没有源或目标)提取为列表?
您可以使用 tshark
,它已安装在 Wireshark 中。
tshark -T json -e 'ip.src' -e 'ip.dst' -r filename.pcap | grep '\.[0-9]' | sort -u
我有一个 fwcapture.cap
文件,供 Wireshark 使用。
里面有很多IP地址源IP和目的IP。
如何将唯一的 IP 地址(没有源或目标)提取为列表?
您可以使用 tshark
,它已安装在 Wireshark 中。
tshark -T json -e 'ip.src' -e 'ip.dst' -r filename.pcap | grep '\.[0-9]' | sort -u