santolp / pyrit

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

AttributeError: 'module' object has no attribute 'pyr2halfpack' When running Pyrit Batch #396

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running batch after entering the ESSID using creat_essid
2. Nothing else does this.  But this is keeping me from moving further. 
3.

What is the expected output? What do you see instead?
Should just compute through. But it hangs at this. 

Connecting to storage at 'file://'...  connected.
Working on ESSID 'belkin.1c4'
Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyrit_cli.py", line 807, in batchprocess
    for results in dbiterator:
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cpyrit/cpyrit.py", line 787, in next
    solvedResults
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cpyrit/storage.py", line 444, in __setitem__
    f.write(PYR2_Buffer.pack(essid, results))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cpyrit/storage.py", line 208, in pack
    pwbuffer, pmkbuffer = _cpyrit_cpu.pyr2halfpack(results)
AttributeError: 'module' object has no attribute 'pyr2halfpack'

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

Mac OSX 10.7.4 Pyrit and PyritOpenCL 0.4.0

Please provide any additional information below.

Not sure what is going on here. I can't tie anything together searching for 
answers left and right. I've re-compiled and installed a few different times, 
all with the same result. 

Original issue reported on code.google.com by jonathan...@gmail.com on 5 Jun 2012 at 4:59

GoogleCodeExporter commented 8 years ago
When I run pyrit batch,  It actually does compute a small portion of the 
database.  At my size (227051427) only about .23 percent per batch.  I can keep 
running pyrit batch until it errors and do a miniscule amount every time. 

Not sure if that helps.  But I'd absolutely love to move forward with this 
project. 

Original comment by jonathan...@gmail.com on 6 Jun 2012 at 7:13

GoogleCodeExporter commented 8 years ago
Here is the readout. 

bt:~ Jonathan$ pyrit eval
Pyrit 0.4.0 (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.
Passwords available: 227051427

ESSID 'belkin.1c4' : 1870642 (0.82%)

****************************************************************************

bt:~ Jonathan$ pyrit batch
Pyrit 0.4.0 (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.
Working on ESSID 'belkin.1c4'
Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyrit_cli.py", line 807, in batchprocess
    for results in dbiterator:
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cpyrit/cpyrit.py", line 787, in next
    solvedResults
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cpyrit/storage.py", line 444, in __setitem__
    f.write(PYR2_Buffer.pack(essid, results))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cpyrit/storage.py", line 208, in pack
    pwbuffer, pmkbuffer = _cpyrit_cpu.pyr2halfpack(results)
AttributeError: 'module' object has no attribute 'pyr2halfpack'
bt:~ Jonathan$ 
********************************************************************************
****

bt:~ Jonathan$ pyrit eval
Pyrit 0.4.0 (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.
Passwords available: 227051427

ESSID 'belkin.1c4' : 1943275 (0.86%)

Original comment by jonathan...@gmail.com on 6 Jun 2012 at 7:17

GoogleCodeExporter commented 8 years ago
Seems that I had some old parts left over. After looking through the individual 
modules I saw that it was referencing some things that weren't there. 

uninstalled by these instructions. 
http://code.google.com/p/pyrit/issues/detail?id=68

reinstalled from svn. presto!
I'm now able to properly punish my rig!

Can close this issue now. 

Original comment by jonathan...@gmail.com on 6 Jun 2012 at 7:44