ronnieman / pyrit

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

Unable to analyze test sample file #324

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.pyrit -r ~/Downloads/pyrit-0.4.0/test/wpapsk-linksys.dump.gz analyze
2.
3.

What is the expected output? What do you see instead?
Information about the test file.

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/Library/Python/2.6/site-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/Library/Python/2.6/site-packages/pyrit_cli.py", line 159, in new_f
    import cpyrit.pckttools
  File "/Library/Python/2.6/site-packages/cpyrit/pckttools.py", line 833, in <module>
    class CCMPCrackerThread(CrackerThread, _cpyrit_cpu.CCMPCracker):
AttributeError: 'module' object has no attribute 'CCMPCracker'

What version of the product are you using? On what operating system?
Mac OSX 10.6.7
Processor: 2.4Ghz Intel Core i5
Memory: 4 GB 1067 MHz DDR3

uname -a 
Darwin Maslow-2.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 
PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386

Please provide any additional information below.

Original issue reported on code.google.com by charlesr...@gmail.com on 31 May 2011 at 5:44

GoogleCodeExporter commented 8 years ago
can you delete the file 
/Library/Python/2.6/site-packages/cpyrit/_cpyrit_cpu.so, delete the /build 
folder in your pyrit-sourcecode-directory, re-compile, re-install and try again?

Original comment by lukas.l...@gmail.com on 1 Jun 2011 at 6:23

GoogleCodeExporter commented 8 years ago
cpyrit 
re-compile, re-install ==>ok
I had to build using explicit LDFLAGS reference "sudo 
LDFLAGS=-L/usr/local/cuda/lib python setup.py build"

pyrit
error generated see below

sudo LDFLAGS=-L/usr/local/cuda/lib python setup.py build
svn: '.' is not a working copy
running build
running build_py
file pyrit_cli.py (for module pyrit_cli) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
file cpyrit/cpyrit.py (for module cpyrit.cpyrit) not found
file cpyrit/util.py (for module cpyrit.util) not found
file cpyrit/pckttools.py (for module cpyrit.pckttools) not found
file cpyrit/config.py (for module cpyrit.config) not found
file cpyrit/network.py (for module cpyrit.network) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
file pyrit_cli.py (for module pyrit_cli) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
file cpyrit/cpyrit.py (for module cpyrit.cpyrit) not found
file cpyrit/util.py (for module cpyrit.util) not found
file cpyrit/pckttools.py (for module cpyrit.pckttools) not found
file cpyrit/config.py (for module cpyrit.config) not found
file cpyrit/network.py (for module cpyrit.network) not found
package init file 'cpyrit/__init__.py' not found (or not a regular file)
running build_ext
building 'cpyrit._cpyrit_cpu' extension
creating build
creating build/temp.macosx-10.6-universal-2.6
creating build/temp.macosx-10.6-universal-2.6/cpyrit
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall 
-Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe 
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c 
cpyrit/_cpyrit_cpu.c -o 
build/temp.macosx-10.6-universal-2.6/cpyrit/_cpyrit_cpu.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.0"
i686-apple-darwin10-gcc-4.2.1: cpyrit/_cpyrit_cpu.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
powerpc-apple-darwin10-gcc-4.2.1: cpyrit/_cpyrit_cpu.c: No such file or 
directory
powerpc-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: cpyrit/_cpyrit_cpu.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/tmp//cc9MI5Ee.out
error: command 'gcc-4.2' failed with exit status 1

locate cpyrit.py returns :

/Library/Python/2.6/site-packages/cpyrit/cpyrit.py
/Library/Python/2.6/site-packages/cpyrit/cpyrit.pyc
/Library/Python/2.6/site-packages/cpyrit/cpyrit.pyo

Original comment by charlesr...@gmail.com on 1 Jun 2011 at 6:52

GoogleCodeExporter commented 8 years ago
you probably deleted these files yourself. They are part of the tarball.

You can overcome the LDFLAGS-problem by symlinking the CUDA-librars to 
/usr/lib[64]

Original comment by lukas.l...@gmail.com on 1 Jun 2011 at 3:38

GoogleCodeExporter commented 8 years ago
success !
order of compiling might have been an isssue
1) pyrit

env LDFLAGS="-L/usr/local/cuda/lib" python setup.py build
sudo python setup.py install

2) cpyrit
env LDFLAGS="-L/usr/local/cuda/lib" python setup.py build
sudo python setup.py install

Original comment by charlesr...@gmail.com on 3 Jun 2011 at 3:09

GoogleCodeExporter commented 8 years ago
I have the same issue, but removing the build folder & the _cpyrit_cpu.so, then 
python setup.py build & install didn't change anything for me, still get the 
same error.

Original comment by cmg.0...@gmail.com on 15 Jun 2011 at 6:17