mbakholdina / lib-tcpdump-processing

Library designed to process .pcap(ng) tcpdump or Wireshark trace files and extract SRT packets of interest for further analysis
15 stars 3 forks source link

Multiple dots in pcapng filename #13

Closed maxsharabayko closed 4 years ago

maxsharabayko commented 4 years ago

Example file name: srt_1.4.1_snd-call_rcv-list.pcapng with multiple dots is not handled correctly.

File "\tcpdump_processing\convert.py", line 57, in convert_to_csv
    name, _ = filename.split('.')
ValueError: too many values to unpack (expected 2)

The splitting should replace only the last part of the split() function, while all the previous parts should be merged.

Maybe the reverse find is even better: rfind().

mbakholdina commented 4 years ago

A duplicate of #9 .