python - Get all ips in PCAP file -


i have set of pcap files , need retrieve ips. found this link , have been using command.

tshark_path + " -r " + infile + " -t fields -e ip.dst | sort | uniq 

the problem seems slow , returns looks this: 128.219.232.12,10.78.0.131. question if there better way run quicker , more accurate.

also noteworthy, code in python.

take @ tshark statistics:
tshark -r test.pcapng -q -z ip_hosts,tree


Popular posts from this blog