Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to check file format #29

Open
abdesslem opened this issue May 20, 2015 · 1 comment
Open

Need to check file format #29

abdesslem opened this issue May 20, 2015 · 1 comment

Comments

@abdesslem
Copy link

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.

@hgn
Copy link
Owner

hgn commented May 1, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants