What steps will reproduce the problem?
1. create a dump-file using this command: airodump-ng -c 6 -b 94:44:52:87:3B:15
--output-format pcap -w router
2. Stop airodump-ng after a while using Crtl-C
3. Analyze this dump using pyrit -r router-01.cap analyze
What is the expected output? What do you see instead?
I expect to see an analyzation of my dump-file, instead I get a backtrace of an
exception:
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 115, in initFromArgv
func(self, **options)
File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 163, in new_f
f(*args, **kwds)
File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 447, in analyze
parser = self._getParser(capturefile)
File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 179, in _getParser
parser.parse_pcapdevice(dev)
File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 600, in parse_pcapdevice
for pckt in reader:
File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 500, in next
pckt = self.read()
File "/usr/local/lib/python2.6/dist-packages/cpyrit/pckttools.py", line 491, in read
pckt = self.datalink_handler(pckt_string)
File "/usr/local/lib/python2.6/dist-packages/scapy/base_classes.py", line 194, in __call__
i.__init__(*args, **kargs)
File "/usr/local/lib/python2.6/dist-packages/scapy/packet.py", line 75, in __init__
self.dissect(_pkt)
File "/usr/local/lib/python2.6/dist-packages/scapy/packet.py", line 563, in dissect
s = self.do_dissect(s)
File "/usr/local/lib/python2.6/dist-packages/scapy/packet.py", line 537, in do_dissect
s,fval = f.getfield(self, s)
File "/usr/local/lib/python2.6/dist-packages/scapy/layers/dot11.py", line 32, in getfield
return MACField.getfield(self, pkt, s)
File "/usr/local/lib/python2.6/dist-packages/scapy/fields.py", line 69, in getfield
return s[self.sz:], self.m2i(pkt, struct.unpack(self.fmt, s[:self.sz])[0])
struct.error: unpack requires a string argument of length 6
What version of the product are you using? On what operating system?
pyrit 0.4.0 and Backtrack 5 R1
Original issue reported on code.google.com by dave.sto...@gmail.com on 4 Dec 2011 at 12:08
Original issue reported on code.google.com by
dave.sto...@gmail.com
on 4 Dec 2011 at 12:08