PDA

View Full Version : Enabling CUDA - Please help?



Infinitynull
2015-12-09, 07:44
Hello, and thank you for your time helping me.

I am trying to enable cuda for password cracking. I followed this guild "https://forums.kali.org/showthread.php?18121-Install-Nvidia-Cuda-and-Pyrit".
Getting to the point where I reinstall pyrit I get a error please help me. Below is the error. Also when installing the CUDA toolkit the installation went through.

But it said something like missing dependency for the second item of the three. I posted a picture of it, below.
Also when I try the benchmark to see if it can use the GPU I only get my CPU on the list.



root@KL-MF:~# cd pyrit-0.4.0/
root@KL-MF:~/pyrit-0.4.0# python setup.py build
svn: E155007: '/root/pyrit-0.4.0' is not a working copy
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.4.0"
cpyrit/_cpyrit_cpu.c:35:26: fatal error: openssl/hmac.h: No such file or directory
#include <openssl/hmac.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


1063

soxrok2212
2015-12-10, 07:15
Have you tried installing openssl or openssl-dev?



apt-get update
apt-get upgrade


apt-get install openssl

if ^ doesn't work, try this:

apt-get install openssl-dev

Infinitynull
2015-12-10, 08:03
root@KILL-ALL:~# apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@KILL-ALL:~# apt-get install openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package openssl-dev

root@KILL-ALL:~# 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: 'CPU-Core (SSE2)'
#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)'

Running benchmark (5904.3 PMKs/s)... /

Computed 5904.28 PMKs/s total.
#1: 'CPU-Core (SSE2)': 788.3 PMKs/s (RTT 3.0)
#2: 'CPU-Core (SSE2)': 788.7 PMKs/s (RTT 3.0)
#3: 'CPU-Core (SSE2)': 796.0 PMKs/s (RTT 3.2)
#4: 'CPU-Core (SSE2)': 792.4 PMKs/s (RTT 3.0)
#5: 'CPU-Core (SSE2)': 789.3 PMKs/s (RTT 3.0)
#6: 'CPU-Core (SSE2)': 799.9 PMKs/s (RTT 3.1)
#7: 'CPU-Core (SSE2)': 778.3 PMKs/s (RTT 3.0)
#8: 'CPU-Core (SSE2)': 791.8 PMKs/s (RTT 3.0)



My Source list


# deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02]/ sana contrib main non-free

#deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02]/ sana contrib main non-free

deb http://http.kali.org/kali sana main non-free contrib
deb-src http://http.kali.org/kali sana main non-free contrib

deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free

deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free



Apparently I had the first package, and the second I can't find. I added the links from the Kali rep including the source ones. I am trying to give all the information to help you; to help me.

soxrok2212
2015-12-10, 16:28
Whoops, late night post. Try


apt-get update
apt-get install libssl-dev


I also would have thought that pyrit would've been installed already, don't know for sure though. It's not in the repos?

baazju
2015-12-13, 17:21
Sorry I am not an expert but is there a reason people are using pyrit over cudaHashcat? Getting cudaHashcat to work is very very simple.