gohar94 / pyrit

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

r aise StorageError("Buffer too short") 1583247 PMKs per second #330

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

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

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

i7 860 / 5870 xfx 2gb edition @ 940/1250
Backtrack rc2
2.3v Stream sdk
pyrit pyrit-0.4.0
call++ 0.9

Please provide any additional information below.

pyrit -r wpa-Induction.pcap attack_db
/usr/lib/python2.5/site-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: 
Version mismatch between <module 'cpyrit._cpyrit_cpu' from 
'/usr/lib/python2.5/site-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.1-dev (svn 
r308)') and <module 'cpyrit._cpyrit_calpp' from 
'/usr/lib/python2.5/site-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn 
r308)')

  "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
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+

Connecting to storage at 'file://'...  connected.
Parsing file 'wpa-Induction.pcap' (1/1)...
Parsed 214 packets (214 802.11-packets), got 4 AP(s)

Picked AccessPoint 00:0c:41:82:b2:55 ('Coherer') automatically.
Attacking handshake with Station 00:0d:93:82:36:3a...
Traceback (most recent call last):); 1583247 PMKs per second.
  File "/usr/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 165, in new_f
    f(*args, **kwds)
  File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 1067, in attack_db
    yieldNewResults=False)):
  File "/usr/lib/python2.5/site-packages/cpyrit/cpyrit.py", line 772, in next
    results = self.storage.essids[self.essid, key]
  File "/usr/lib/python2.5/site-packages/cpyrit/storage.py", line 431, in __getitem__
    results = PYR2_Buffer(buf)
  File "/usr/lib/python2.5/site-packages/cpyrit/storage.py", line 154, in __init__
    raise StorageError("Buffer too short")
cpyrit.storage.StorageError: Buffer too short

Original issue reported on code.google.com by bratspit...@gmail.com on 23 Jun 2011 at 2:57

GoogleCodeExporter commented 9 years ago
lol and it seems to work? 

pyrit -r kurica-01.cap  attack_db
/usr/lib/python2.5/site-packages/cpyrit/cpyrit.py:63: UserWarning: WARNING: 
Version mismatch between <module 'cpyrit._cpyrit_cpu' from 
'/usr/lib/python2.5/site-packages/cpyrit/_cpyrit_cpu.so'> ('0.4.1-dev (svn 
r308)') and <module 'cpyrit._cpyrit_calpp' from 
'/usr/lib/python2.5/site-packages/cpyrit/_cpyrit_calpp.so'> ('0.4.0-dev (svn 
r308)')

  "('%s')\n" % (_cpyrit_cpu, _cpyrit_cpu.VERSION, mod, ver))
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+

Connecting to storage at 'file://'...  connected.
Parsing file 'kurica-01.cap' (1/1)...
Parsed 76 packets (76 802.11-packets), got 1 AP(s)

Picked AccessPoint 00:26:f2:db:f8:9c ('kurica') automatically.
Attacking handshake with Station 00:1e:64:41:ec:5c...
Tried 6083919 PMKs so far (31.3%); 1628813 PMKs per second.

The password is '12345678'.

Original comment by bratspit...@gmail.com on 23 Jun 2011 at 2:59

GoogleCodeExporter commented 9 years ago
You probably have a zero-length workunit file in your database. You can run 
checkdb to find and delete it.

The reason it worked as in your second post is that Pyrit walks down the 
workunits in random order. The error will not appear if the zero-length file is 
not accessed.

Original comment by lukas.l...@gmail.com on 23 Jun 2011 at 2:34

GoogleCodeExporter commented 9 years ago
Yes Thank you very much, 
Alredy Relised by my self before read this reply :)  

Original comment by bratspit...@gmail.com on 24 Jun 2011 at 11:19

GoogleCodeExporter commented 9 years ago
Yes Thank you very much, 
Alredy Relised by my self before read this reply :)  

Original comment by bratspit...@gmail.com on 24 Jun 2011 at 11:20