http403 / pyrit

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

struct.error when in attack / verify mode (suspect corrupt database) #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
to perform an attack using pre-computed keys i.e
pyrit -r "/tmp/tmp.roFpOO8351/00:16:01:A1:DD:36-01.cap" attack_db

2.
Also happens during database verify

3.

What is the expected output? What do you see instead?

After about 20% program stops with the following:

Pyrit 0.2.4 (C) 2008, 2009 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3

Parsing file '/tmp/tmp.roFpOO8351/00:16:01:A1:DD:36-01.cap' (1/1)...
983 packets (983 802.11-packets), 1 APs

Picked Access-Point 00:16:01:a1:dd:36 ('CoachHouse') automatically...
Attacking handshake with Station 00:21:85:b9:c4:77...
Error while loading results 04bbc99903c19c9984e05bd9823a060f for ESSID
'CoachHouse'
Traceback (most recent call last):
  File "/usr/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 115, in
initFromArgv
    }.setdefault(commands[0] if len(commands) > 0 else 'help',
self.print_help)()
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 170, in new_f
    f(*args, **kwds)
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 159, in new_f
    f(*args, **kwds)
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 561, in attack_db
    for idx, results in enumerate(util.DatabaseIterator(self.essidstore,
self.passwdstore, self.options.essid, yieldNewResults=False)):
  File "/usr/lib/python2.5/site-packages/cpyrit/util.py", line 114, in next
    return self.essidstore[self.essid, key]
  File "/usr/lib/python2.5/site-packages/cpyrit/util.py", line 355, in
__getitem__
    magic, essidlen = struct.unpack(EssidStore._pyr_preheadfmt,
buf[:EssidStore._pyr_preheadfmt_size])
  File "/usr/lib/python2.5/struct.py", line 87, in unpack
    return o.unpack(s)
struct.error: unpack requires a string argument of length 6

What version of the product are you using? On what operating system?

0.2.4 with cuda support
OS- BT4 (Ubuntu base)

Please provide any additional information below.

Unsure how to rebuild / repair dB

Original issue reported on code.google.com by rsolty1...@gmail.com on 6 Dec 2009 at 9:40

GoogleCodeExporter commented 9 years ago
Pyrit probably got killed in a previous session while writing a workunit to 
disk. You
can delete the results for workunit and start over.

There should be a file '04bbc99903c19c9984e05bd9823a060f.pyr' in
'~/.pyrit/blobspace/essid/f2653011/'; it should have a length of zero bytes. 
Delete
that file, done.

Original comment by lukas.l...@gmail.com on 7 Dec 2009 at 7:54