Menu

Troubleshooting

Featured (5)
Anonymous

Pyrit does not use SSE2

The CPU-core supports SSE2 since version '0.2.3'.

'ImportError: /usr/.../_cpyrit/_cpyrit_cpu.so: cannot restore segment prot after reloc: Permission denied'

This error may happen with SSE2-support compiled in and is caused by SELinux not trusting Pyrit's library. You can follow SELinux's guidelines on fixing that for your specific system. Or you can disable SELinux for the time being by executing (as root):

echo 0 > /selinux/enforce

The error was fixed in version '0.2.4 [r152]'.

Using CPyrit-CUDA with CUDA 2.2 causes the error message 'Failed to load CUDA-core (CUDA_ERROR_INVALID_IMAGE)'

This error was fixed in version '0.2.3'. You either have to update to '0.2.3' or downgrade to CUDA 2.1.

Using CPyrit-CUDA with CUDA 3.0 causes the error message 'SystemError: CUDA_ERROR_INVALID_IMAGE'

Please use the GPU-drivers that come with CUDA 3.0 at http://www.nvidia.com/object/cuda_get.html

Pyrit no longer uses all CPUs after installing a GPU-driven extension-module

This behaviour is intended. Pyrit keeps one CPU free for scheduling work with every GPU it uses.

GPU performance is reduced on system with Hyper Threading

NVidia/ATI GPU driver requires at least one real core per GPU for efficient work. With HT enabled, the driver needs to fight for CPU cycles with CPU computing core. This leads to GPU starvation and decreased performance. The problem can be solved by reducing number of running CPU-cores: Open '.pyrit/config' and set 'limit_ncpus' to the number of physical CPU-cores.

The GPU does not show up in 'list_cores'

Pyrit suppresses most errors that occur while loading the GPU-extensions as they are usually caused by simply not having compatible hardware installed. Open a terminal and try loading the offending module directly to get more information.

For CPyrit-OpenCL:

python -c 'from cpyrit import _cpyrit_opencl'

For CPyrit-CUDA:

python -c 'from cpyrit import _cpyrit_cuda'

There is no output at all if the module was loaded successfully. Some of the errors you might get include:

  • ImportError: cannot import name _cpyrit_cuda / ImportError: cannot import name _cpyrit_opencl

The CPyrit-OpenCL or CPyrit-CUDA modules are simply not installed or can't be found in the current Python-environment. Try (re-) installing the extension modules and make sure you don't mix the Python-interpreters you use (this can happen on MacOS which tends to have multiple versions of Python installed).

  • ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

The CPyrit-CUDA modules requires Nvidia's proprietary driver to be installed. Depending on your distribution you may also need to symlink e.g. '/usr/lib/nvidia/libcuda.so.1' to '/usr/lib/libcuda.so.1' or add '/usr/lib/nvidia' to your ldconfig.

  • NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory).

Ensure that the 'nvidia' module has been successfully loaded. Taking a look at the kernel ringbuffer may give more help:

 modprobe nvidia
 dmesg | tail
  • ImportError: CUDA seems to be unavailable or no device reported.

The CUDA-driver has loaded but failed to initialize or reports that none of your GPUs is compatible. Take a look at this page to find out if your GPU is supported. You may need to update your drivers.

Xorg becomes slow and unresponsive when using Pyrit on the GPU

O rly ?

Pyrit says it stored only Y passwords after trying to import a wordlist of X entries

Pyrit ignores passwords that have less than 8 or more than 63 characters as those can't be used for WPA anyway.

The .pyrit directory has a size of only Y MBs after importing a wordlist of X GBs

Pyrit uses zlib-compression to store the passwords.

There is another problem with Pyrit

Create a ticket in the Issue-Tracker or write an e-mail to lukas.lueg@gmail.com


Discussion

  • Anonymous

    Anonymous - 2011-02-15

    Originally posted by: ThomasHe...@gmail.com

    How to limit number of running CPU-Cores ? for solving HyperThreading? problems ?

     
  • Anonymous

    Anonymous - 2011-02-15

    Originally posted by: lukas.l...@gmail.com

    use limit_ncpus in .pyrit/config

     
  • Anonymous

    Anonymous - 2011-02-15

    Originally posted by: t3hd...@gmail.com

    I would like to let people know that you may not have the cpyrit_calpp and cpyrit_opencl modules installed at the same time. This may result in the following error:

    terminate called after throwing an instance of 'cal::Error'

    what(): Stateful operation requested has already been performed

    Aborted

    It has been stated somewhere here that the performance of CALpp is superb to the OpenCL implementation by a magnitude of 30% to 40% on 5000-series cards and around 10% to 4000-series cards. I found an improvement of about 50% on my ATI Radeon 5550. This may be because I'm using the latest Linux ATI drivers (11.1). For this reason, I would suggest using the CAL++ module over the OpenCL module.

    I'd also like to mention that if you know you have an ATI OpenCL-supported card and you're using Linux, you must have Xorg (the window manager) running for it to be detected by such ATI Stream SDK utilities as FindNumDevices? and also by Pyrit. This has to do with how OpenCL communicates with the GPU. To do this on a headless Linux box, I suggest looking at this PDF from AMD/ATI:

    http://developer.amd.com/gpu_assets/App_Note-Running_ATI_Stream_Apps_Remotely.pdf

    I hope this info helps someone! It took me a while to figure this all out.

     
  • Anonymous

    Anonymous - 2011-03-04

    Originally posted by: haykey...@gmail.com

    How can we donate to this project to help improve the software? I would like to donate!

     
  • Anonymous

    Anonymous - 2011-03-08

    Originally posted by: lukas.l...@gmail.com

    There is a flattr-link on the main page

     
  • Anonymous

    Anonymous - 2011-05-24

    Originally posted by: syro...@googlemail.com

    how can i say pyrit to use only one gpu core?

     
  • Anonymous

    Anonymous - 2011-06-15

    Originally posted by: Peter.Fi...@gmail.com

    Occasionally, I get the following (on any pyrit command), any idea on why? Backtrack 4 R2, nVidia 295GTX, driver 270.xx

    root@bt:~# pyrit list_cores Pyrit 0.3.1-dev (svn r280) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+

    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 116, in initFromArgv

    func(self, ****options)

    File "/usr/lib/python2.5/site-packages/pyrit_cli.py", line 292, in list_cores

    with cpyrit.cpyrit.CPyrit() as cp:

    File "/usr/lib/python2.5/site-packages/cpyrit/cpyrit.py", line 450, in init

    self.cores.append(CUDACore(queue=self, dev_idx=dev_idx))

    File "/usr/lib/python2.5/site-packages/cpyrit/cpyrit.py", line 243, in init

    _cpyrit_cuda.CUDADevice.init(self, dev_idx) _

    _SystemError?: CUDA_ERROR_UNKNOWN _

     
  • Anonymous

    Anonymous - 2011-08-05

    Originally posted by: Jamaal.Speights@gmail.com

    On Ubuntu using the ATI AMD-APP-SDK-v2.5 . The OpenCL lib will install in

    /opt/AMDAPP/lib/x86/libOpenCL.so /opt/AMDAPP/lib/x86/libOpenCL.so.1 /opt/AMDAPP/lib/x86_64/libOpenCL.so /opt/AMDAPP/lib/x86_64/libOpenCL.so.1

    if you try and build cpyrit-opencl root@shoryuken:~/cpyrit-opencl-0.3.0# python setup.py build running build running build_ext Building modules... building 'cpyrit._cpyrit_opencl' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include -I/usr/include/python2.7 -c _cpyrit_opencl.c -o build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -DVERSION="0.3.0" gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -lssl -lOpenCL -lz -o build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_opencl.so _

    You will get an error ld: cannot find -LOpenCL

    To fix this, create a sym link from /opt/AMDAPP/lib/x86_64/libOpenCL.so to /usr/lib64/libOpenCL.so like below

    root@shoryuken:~/cpyrit-opencl-0.3.0# ln -s /opt/AMDAPP/lib/x86_64/libOpenCL.so /usr/lib64/libOpenCL.so root@shoryuken:~/cpyrit-opencl-0.3.0# ln -s /opt/AMDAPP/lib/x86_64/libOpenCL.so.1 /usr/lib64/libOpenCL.so.1

    Now build will be happy __

    \root@shoryuken:~/cpyrit-opencl-0.3.0# python setup.py build running build running build_ext Building modules... building 'cpyrit._cpyrit_opencl' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include -I/usr/include/python2.7 -c _cpyrit_opencl.c -o build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -DVERSION="0.3.0" gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -lssl -lOpenCL -lz -o build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_opencl.so root@shoryuken:~/cpyrit-opencl-0.3.0# _

     
  • Anonymous

    Anonymous - 2011-08-29

    Originally posted by: stur...@gmail.com

    Pyrit has quite bad GPU utilization on my 5970. I only get ~42000 PMK/s, and aticonfig reports GPU utilization around 40% (varying and shifting between GPUs). Performance is worse when running in batch mode against the database. Any ideas on how to utilize the card better? I suspect the bottleneck is I/O related. Other OpenCL programs are able to drive both GPUs to 99%.

     
  • Anonymous

    Anonymous - 2011-10-19

    Originally posted by: hexadeci...@gmail.com

    does anyone have a Dell M90 laptop with nvidia 2500m working with pyrit/cuda? pyrit does not see my video card. Officially the 2500m is not on the list, however to my knowledge it is very similar to the 2700m, just "dell-ified".

     
  • Anonymous

    Anonymous - 2012-02-19

    Originally posted by: JeremySa...@gmail.com

    Addendum to this section:

    ImportError?: cannot import name _cpyrit_cuda / ImportError?: cannot import name _cpyrit_opencl

    If you think the cpyrit folder is correctly installed by the cypyrit-cuda or cpyrit-opencl sources, but it is still not being detected, check to make sure that the init.py file is installed. This file is installed by the pyrit installer, not the cpyrit ones, so if this part of your pyrit installation messed up, you could have a normal working pyrit install, and it would fail to load the cyprit module, even though you are installing the cpyrit module correctly. To correct this, properly reinstall the main pyrit code.

     
  • Anonymous

    Anonymous - 2012-03-07

    Originally posted by: ivove...@gmail.com

    I tried installing Cuda Toolkit fro Ubuntu Linux 10.04 32-bit as part of my Pyrit install(as found on this blog: http://j2neon.blogspot.com) and it failed almost at the endjsut before finishing after entering:

    B?root@bt: ~/pyrit_svn/cpyrit_cuda# python setup.py build[/B]

    I got the following error at the bottom:

    /usr/bin/ld: cannot find -lcuda collect2: ld returned l exit status error: command 'gcc' failed with exit status 1

    Since I'm a complete newb and I've never used Linux before I'm stuck and have no idea how to fix this although feel like it's something quite simple. Would appreciate any help or advice.

     
  • Anonymous

    Anonymous - 2012-03-21

    Originally posted by: max.yash...@gmail.com

    For the comment above about the "/usr/bin/ld: cannot find -lcuda" error - here is the solution:

    http://forums.nvidia.com/index.php?showtopic=213288

    P.S. Had the same error either - spent a whole damn day finding this out.

     
  • Anonymous

    Anonymous - 2012-06-23

    Originally posted by: Tango6...@gmail.com

    First of all what is the port for using Pyrit? 17935 or 19935. I have seen both. Main question is concerning the lack of functionality of the client server feature that was apparently removed. I need to be able to allow all of my computers to work on the workunits from one computer. I have seen a very wide variety of explanations of how to properly set it up. Bottom line is that it doesn't work. What can I do to get it to work? Other than this feature, it is an amazing program!

     
  • Anonymous

    Anonymous - 2012-08-15

    Originally posted by: anf...@gmail.com

    From Tokyo. I am a Mac user in Japan. I installed thr Pyrit in My MacBookPro? 15.4 corei7 quad 2.2GHz.

    bash-3.2$ pyrit list_cores Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+

    The following cores seem available... #1: 'OpenCL-Device 'ATI Radeon HD 6750M'' #2: 'CPU-Core (SSE2)' #3: 'CPU-Core (SSE2)' #4: 'CPU-Core (SSE2)' #5: 'CPU-Core (SSE2)' #6: 'CPU-Core (SSE2)' #7: 'CPU-Core (SSE2)' #8: 'CPU-Core (SSE2)' bash-3.2$ pyrit benchmark Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+

    Running benchmark (9255.1 PMKs/s)... -

    Computed 9255.06 PMKs/s total. #1: 'OpenCL-Device 'ATI Radeon HD 6750M'': 8073.3 PMKs/s (RTT 3.0) #2: 'CPU-Core (SSE2)': 340.2 PMKs/s (RTT 3.3) #3: 'CPU-Core (SSE2)': 340.7 PMKs/s (RTT 3.3) #4: 'CPU-Core (SSE2)': 340.5 PMKs/s (RTT 3.3) #5: 'CPU-Core (SSE2)': 340.6 PMKs/s (RTT 3.2) #6: 'CPU-Core (SSE2)': 338.9 PMKs/s (RTT 3.3) #7: 'CPU-Core (SSE2)': 348.2 PMKs/s (RTT 3.3) #8: 'CPU-Core (SSE2)': 341.5 PMKs/s (RTT 3.3)

    The Pyrit uses a single core only. But in Linux, The Pyrit uses many cores. If it carries out, how does it come to use two or more cores on MacBookPro? 10.8?

     
  • Anonymous

    Anonymous - 2012-09-15

    Originally posted by: vidovic....@gmail.com

    I also have problem "/usr/bin/ld: cannot find -lcuda" Link http://forums.nvidia.com/index.php?showtopic=213288 is no more avalible what is solution ? I culd not find anything on google tnx

     
  • Anonymous

    Anonymous - 2012-11-15

    Originally posted by: Jos...@azconceptphoto.com

    Even after building and rebuilding installing and reinstalling cpyrit, the import cpyrit via python fails.

    sudo ./setup.py install svn: '.' is not a working copy running install running build running build_ext Building modules... running install_lib running install_egg_info Removing /usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.0.egg-info Writing /usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.0.egg-info

     
  • Anonymous

    Anonymous - 2014-06-05

    Originally posted by: phillip....@gmail.com

    I'm seeing a curious drop-off in performance when running pyrit benchmark on an AWS GPU cluster after the 3rd node. Each node is a g2.2xlarge instance, which are described as "G2 Instances are backed by 1 x NVIDIA GRID GPU (Kepler GK104) and 8 x hardware hyperthreads from an Intel Xeon E5-2670"

    Here are my benchmark numbers...any idea why this is happening or how to correct?

    with limit_ncpus = 0 1 node = 22,848.78 PMKs/s 2 nodes= 41,042.71 PMKs/s 3 nodes= 62,087.50 PMKs/s 4 nodes= 62,035.02 PMKs/s 5 nodes= 36,827.1 PMKs/s

    with limit_ncpus = 8 1 node = 22,725.95 2 nodes= 41,088.34 3 nodes= 63,464.67 4 nodes= 63,593.88 5 nodes= 32,851.5

     
  • Anonymous

    Anonymous - 2014-08-26

    Originally posted by: tylerspr...@gmail.com

    tyler@kubuntu32:~/Downloads/pyrit-0.3.0$ sudo python setup.py build running build running build_py running build_ext running build_scripts tyler@kubuntu32:~/Downloads/pyrit-0.3.0$ sudo python setup.py install running install running build running build_py running build_ext running build_scripts running install_lib writing byte-compilation script '/tmp/tmpmv2Ujf.py' /usr/bin/python -O /tmp/tmpmv2Ujf.py removing /tmp/tmpmv2Ujf.py running install_scripts changing mode of /usr/local/bin/pyrit to 775 running install_egg_info Removing /usr/local/lib/python2.7/dist-packages/pyrit-0.3.0.egg-info Writing /usr/local/lib/python2.7/dist-packages/pyrit-0.3.0.egg-info tyler@kubuntu32:~/Downloads/pyrit-0.3.0$ cd .. tyler@kubuntu32:~/Downloads$ pyrit Traceback (most recent call last):

    File "/usr/local/bin/pyrit", line 4, in <module>

    import pyrit_cli

    File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 33, in <module>

    import cpyrit.cpyrit

    File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 47, in <module>

    import util

    File "/usr/local/lib/python2.7/dist-packages/cpyrit/util.py", line 48, in <module>

    import _cpyrit_cpu _

    _ImportError?: /usr/local/lib/python2.7/dist-packages/cpyrit/_cpyrit_cpu.so: undefined symbol: EVP_md5

    help! kubuntu 14.03 lts 32 bit

     
  • Anonymous

    Anonymous - 2015-04-25

    Originally posted by: hever_50...@hotmail.com

    a query, I installed everything correctly, when running list_cores: shows me this. all right, let me know as I do that "'CUDA-Device # 1' GeForce? 410 '' 'show me the other 3 cores?

    1: 'CUDA-Device #1 'GeForce? 410''

    2: 'CPU-Core (SSE2)'

    3: 'CPU-Core (SSE2)'

    4: 'CPU-Core (SSE2)'

     
  • Anonymous

    Anonymous - 2015-05-07

    Originally posted by: elias.r...@gmail.com

    Hi, i have a GeForce? core, but i did installed it as a OpenCL instead of CUDA.. the speed is very slow and i'm wondering if it's possible to switch (or install it again) as a CUDA device?

    Thanks for your help !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.