namtrac35 / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

2wirecap problem #398

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was going to analyze 2wire cap file and Im getting this mesage
I also have cap file from my linksys router and I can do it without any problem.
root@bt:~# pyrit -r '/root/Desktop/2WIRE186.cap' analyze

Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file '/root/Desktop/2WIRE111.cap' (1/1)...
Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 165, in new_f
    f(*args, **kwds)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 449, in analyze
    parser = self._getParser(capturefile)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 181, in _getParser
    parser.parse_pcapdevice(dev)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 696, in parse_pcapdevice
    for pckt in reader:
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 589, in next
    pckt = self.read()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 577, in read
    r = _cpyrit_cpu.PcapDevice.read(self)
IOError: libpcap-error while reading: truncated dump file; tried to read 16 
header bytes, only got 9
root@bt:~# 

Original issue reported on code.google.com by baranek1...@gmail.com on 14 Jul 2012 at 4:23