79466735

Date: 2025-02-25 13:33:41
Score: 1.5
Natty:
Report link

Maybe this is what you are looking:
https://github.com/DavidRamosArchilla/pyflowmeter?tab=readme-ov-file#get-csv-analysis-from-a-pcap-file

from pyflowmeter.sniffer import create_sniffer

sniffer = create_sniffer(
            input_file='path_to_the_file.pcap',
            to_csv=True,
            output_file='./flows_test.csv',
        )

sniffer.start()
try:
    sniffer.join()
except KeyboardInterrupt:
    print('Stopping the sniffer')
    sniffer.stop()
finally:
    sniffer.join()
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: David Ramos