captcp icon indicating copy to clipboard operation
captcp copied to clipboard

Need to check file format

Open abdesslem opened this issue 9 years ago • 1 comments

python captcp.py statistic file.txt

captcp 2010-2013 Hagen Paul Pfeifer and others (c)

http://research.protocollabs.com/captcp/

Traceback (most recent call last): File "captcp.py", line 5301, in sys.exit(captcp.run()) File "captcp.py", line 5269, in run pcap_parser = PcapParser(self.pcap_file_path, self.pcap_filter) File "captcp.py", line 534, in init self.pc = dpkt.pcap.Reader(self.pcap_file) File "/usr/lib/pymodules/python2.7/dpkt/pcap.py", line 97, in init self.fh = FileHdr(buf) File "/usr/lib/pymodules/python2.7/dpkt/dpkt.py", line 75, in __init raise NeedData dpkt.dpkt.NeedData

It can be checked with "FileHdr" class in the dpkt module.

abdesslem avatar May 20 '15 16:05 abdesslem

Catching dpkt.dpkt.NeedData and printing a nice user info message? I am open to implement something else too - what did you expected?

hgn avatar May 01 '16 18:05 hgn