This guide (How to install Pyrit in Kali Linux) is part of a series that guides readers on How to install FGLRX, AMD APP SDK, CAL++ and Pyrit in Kali Linux. The idea is to install correct drivers in Kali Linux for your GPU and use CPU+GPU combination with Pyrit to make raw data crunching faster. An example would be to utilize this combined processing power to crunch though WPA/WPA2 capture file to find Wifi password.
Readers, please follow this series in the following order:
- Install AMD ATI Driver (fglrx) in Kali Linux 1.x
- How to install AMD APP SDK in Kali Linux?
- How to install CAL++ in Kali Linux?
- How to install Pyrit in Kali Linux?
Table of Contents
Credits:
A big thanks goes to hexed6 from Kali Forums for his original post.
Thanks to hazeman for his CAL++ project in Sourceforge.
Thanks to Pyrit project
Check FGLRX Installation
First check if fglrx
module is installed:
lsmod | grep fglrx
You should get a response similar to:
fglrx 2635205 82 button 12945 1 fglrx
If not installed follow this guide to install it.
Install AMD ATI Driver (fglrx) in Kali Linux 1.x
Check AMD APP SDK Installation
Check if AMD APP SDK is installed. If not installed, follow this guide to install it.
How to install AMD APP SDK in Kali Linux?
Check CAL++ Installation
Check if CAL++ is installed. If not installed, follow this guide to install it.
How to install CAL++ in Kali Linux?
Why Pyrit?
Pyrit allows to create massive databases, pre-computing part of the IEEE 802.11 WPA/WPA2-PSK authentication phase in a space-time-tradeoff. Exploiting the computational power of Many-Core- and other platforms through ATI-Stream, Nvidia CUDA, OpenCL and VIA Padlock, it is currently by far the most powerful attack against one of the world’s most used security-protocols.
Install Pyrit in Kali
Install prerequisites
apt-get install libpcap-dev
Remove existing installation of pyrit
apt-get remove --purge pyrit
If you are not using a clean install of Kali (not recommended), you may need to issue the following command:
rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/
Download pyrit
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
Install Pyrit
cd pyrit_svn/pyrit/ ./setup.py build install
Install CAL++ plugin
cd ../cpyrit_calpp/
Edit setup.py
Edit setup.py
file and modify/replace the followings:
find VERSION = '0.4.0-dev'
and replace with VERSION = '0.4.1-dev'
find CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include'))
and replace with
CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))
Save and quit, then issue the following command:
./setup.py build install
There will be several warnings, but hopefully no errors and everything will be installed.
Test cpyrit
List available core
pyrit list_cores ...
Output
The following cores seem available... #1: 'CAL++ Device #1 'AMD GPU DEVICE'' #2: 'CPU-Core (SSE2)' #3: 'CPU-Core (SSE2)' #4: 'CPU-Core (SSE2)'
Benchmark Pyrit
pyrit benchmark ...
Output
Computed 7548.89 PMKs/s total. #1: 'CAL++ Device #1 'AMD GPU DEVICE'': 5599.3 PMKs/s (RTT 1.4) #2: 'CPU-Core (SSE2)': 685.6 PMKs/s (RTT 3.0) #3: 'CPU-Core (SSE2)': 688.5 PMKs/s (RTT 3.0) #4: 'CPU-Core (SSE2)': 691.9 PMKs/s (RTT 3.0)
125 comments
Hi !
Can pyrit to work with ATI and nVidia both? For example RADEON and GeForce 8800. need to compile two copies of the program (for CUDA and CAL++)? or can it all together in one program
Best regards
Andrej
Hi Andrej,
On the same machine with 2 graphics cards installed? (i.e. NVIDIA and ATI?). No, wont work as the lib files would be different. But hey, that’s just me talking, if someone can make them work… I’m all ears! Cheers,
-BMO
Thanks for the help!
Computed 78369.88 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 78083.0 PMKs/s (RTT 1.0)
#2: ‘CPU-Core (SSE2/AES)’: 598.5 PMKs/s (RTT 3.1)
#3: ‘CPU-Core (SSE2/AES)’: 583.4 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2/AES)’: 561.8 PMKs/s (RTT 2.9)
#5: ‘CPU-Core (SSE2/AES)’: 560.6 PMKs/s (RTT 3.0)
#6: ‘CPU-Core (SSE2/AES)’: 598.8 PMKs/s (RTT 2.9)
#7: ‘CPU-Core (SSE2/AES)’: 589.0 PMKs/s (RTT 3.0)
#8: ‘CPU-Core (SSE2/AES)’: 566.3 PMKs/s (RTT 2.9)
Thanks for this great guide !
Computed 80563.85 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 84218.8 PMKs/s (RTT 1.1)
#2: ‘CPU-Core (SSE2)’: 611.3 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2)’: 636.1 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2)’: 625.3 PMKs/s (RTT 2.9)
Hi, i follow your posts but i still have this:
root@kali:~# pyrit list_cores
Pyrit 0.4.1-dev (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/AES)’
#2: ‘CPU-Core (SSE2/AES)’
#3: ‘CPU-Core (SSE2/AES)’
#4: ‘CPU-Core (SSE2/AES)’
the #1 is still CPU-Core, why it’s not ‘CAL++ Device #1 ‘AMD GPU DEVICE”?
Thanks, I love your site!
Hi Dario,
Did you follow all 4 posts? You need all 4 for ATI ..
How to install AMD ATI Driver (fglrx) in Kali Linux?
How to install AMD APP SDK in Kali Linux?
How to install CAL++ in Kali Linux?
How to install Pyrit in Kali Linux?
p.s. dont install new AMD APP SDK.
Please tell me how to remove (uninstall) each things, so i retry all the steps.
Thanks
At first i would like to say thank you for that great tutorial! Everything went fine till got this error using sqlite with pyrit:
# pyrit -u sqlite:///mydb.db -i /root//rockyou.txt import_passwords
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 ‘sqlite:///mydb.db’… Traceback (most recent call last):
File “/usr/local/bin/pyrit”, line 6, in
pyrit_cli.Pyrit_CLI().initFromArgv()
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 116, in initFromArgv
options[‘storage’] = self._getStorage(storage_url)
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 231, in _getStorage
storage = cpyrit.storage.getStorage(url)
File “/usr/local/lib/python2.7/dist-packages/cpyrit/storage.py”, line 132, in getStorage
raise util.SqlalchemyImportError(“SQLAlchemy seems to be ” \
cpyrit.util.SqlalchemyImportError: SQLAlchemy seems to be unavailable.
I already used sqlite without problems, so whats going on now?
Ok so i guess i installed something in the wrong way..
Is there a way to know if i have installed each things in the right way?
The AMD ATI Driver (fglrx) i think is install correctly beacuse:
root@kali:~# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon R9 200 Series
OpenGL version string: 4.4.12874 Compatibility Profile Context 14.10.1006.1001
and i can also generate xorg.conf:
root@kali:~# aticonfig –initial -f
Uninitialised file found, configuring.
Using /etc/X11/xorg.conf
Saving back-up to /etc/X11/xorg.conf.fglrx-0
So i think the problem isn’t here.
For the AMD APP SDK i use the 2.7 version instead of the last one (2.9.1),
I also install CAL++ without receiving an error.
And for Pyrit i have it installed but not work with CAL++ (see post above).
So what i ask is if Is there a way to know if i have installed each things in the right way?
Is there a way to remove (uninstall) each things to retry all the process?
Thanks a lot.
Worked great! I definitely agree to use 2.7 SDK vice 2.9, had to re-install Kali after I read the notes section on that page. I got mine working on a 1.0.9 32bit Kali install. Here are my benchmarks using an R9 280X
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+
Running benchmark (132333.2 PMKs/s)… –
Computed 132333.24 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 130909.7 PMKs/s (RTT 0.9)
#2: ‘CPU-Core (SSE2/AES)’: 636.8 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2/AES)’: 663.0 PMKs/s (RTT 2.9)
#4: ‘CPU-Core (SSE2/AES)’: 612.8 PMKs/s (RTT 3.0)
#5: ‘CPU-Core (SSE2/AES)’: 616.5 PMKs/s (RTT 3.0)
#6: ‘CPU-Core (SSE2/AES)’: 634.9 PMKs/s (RTT 3.0)
#7: ‘CPU-Core (SSE2/AES)’: 627.8 PMKs/s (RTT 3.1)
#8: ‘CPU-Core (SSE2/AES)’: 586.6 PMKs/s (RTT 3.0)
w0w!!!
I saw it’s rated ~140k on other people benchmarks. Could you suggest what’s wrong? Also it’s just one card why does it show 2 GPU? thank you. I ran 4 benchmarks and that’s what I average. Also as I understand it’s under great load. I can feel it’s hot but fan doesn’t start speeding up like when I play games on max.
HD 5970
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+
Running benchmark (57755.1 PMKs/s)… |
Computed 57755.09 PMKs/s total.
#1: ‘CAL++ Device #1 ‘ATI CYPRESS”: 33389.5 PMKs/s (RTT 1.1)
#2: ‘CAL++ Device #2 ‘ATI CYPRESS”: 34828.0 PMKs/s (RTT 1.1)
To Clarify hd5970 is double GPU card but doesn’t it suppose to show 1 Device? maybe it’s a problem for low benchmark? could somebody share wisdom how to fix my problem?? thank you
I wanna say THANK YOU :) everything worked here is my benchmark
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+
Running benchmark (46557.7 PMKs/s)… /
Computed 46557.75 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD BARTS”: 46799.9 PMKs/s (RTT 1.0)
#2: ‘CPU-Core (SSE2)’: 576.9 PMKs/s (RTT 3.1)
#3: ‘CPU-Core (SSE2)’: 593.1 PMKs/s (RTT 3.1)
#4: ‘CPU-Core (SSE2)’: 597.8 PMKs/s (RTT 3.0)
#5: ‘CPU-Core (SSE2)’: 590.1 PMKs/s (RTT 3.0)
#6: ‘CPU-Core (SSE2)’: 581.8 PMKs/s (RTT 3.1)
4th day of installation with the same error on 3rd installation :(
Everythng works with no errors until after I install cal++ (which is installed with no error messages)
Whenever I try using a command via pyrit this shows up like some other users have reported:
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted
I’ve tried just about everything here… any other ideas of what could make this go wrong? If I install pyrit without cal++ everything works fine, but my gpu isn’t recognized.
Thanks for the guide blackmore ops. I eventually bought a desktop computer with radeon hd 7000 series and everything worked. On my laptop it was 8400 series. Followed steps from guide exactly the same on both devices. In still not sure sure whether a work around exists for that error but getting another computer was a whole lot less of a headache. If you already have a desktop I would consider another graphics card. But then again I’m extremely impatient so maybe you can figure out how to work around it. Also I installed with Kali 1.0.9 because of headers not available for 1.0.6.
Good luck to you.
I also gave up on this route of installation. Instead of using my laptop to crack the handshakes, I set up a remote desktop to my main computer where I can then crack it from there. I was able to get it running on my main computer which has 2x nvidia gtx 660s. This was probably a better solution considering how my laptop’s gpu wouldn’t come close to the power my gpus give on my desktop. Thanks for the guide, it still ended up working in the end just not on my laptop.
Same shit here! Del Inspiron 15R with ATI Radeon 8730M.
root@localhost:~# pyrit
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Przerwane
Doesn’t Kali already have Pyrit installed? Does it have to be installed again?
hi,@admin,first of all, i wanna thank you made so great HOWTO guide to others install pyrit on kali. But seems i got some unexpected results. here is the output in terminal:
root@kali:~# pyrit
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted.
i’ve also read every same error with mine and tried followed the solvation you gave but it still got wrong.
every step you gave i just exactly followed except i installed AMDAPPSDK2.7 after i found version2.9 wasn’t work on my system.
and my AMD version is:
root@kali:~# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Mars [Radeon HD 8500/8700M Series] (rev ff)
can anyone solve this problem? i’ll appreciate with you!
lastly, sorry for my poor English.
v2.9 doesn’t work. Try v2.7. But I’m afraid that you need a fresh install. Read the comments section for more details.
Thanks for your reply!
And I’ve reinstaled my Kali Linux and reinstalled fglrx AMDAPPSDK pyrit and cal++,but it still has problem..
Whatever I put in terminal with pyrit, such as pyrit, pyrit benchmark, pyrit list_cores etc. It has this output:
root@kali:~# pyrit
Traceback (most recent call last):
File “/usr/local/bin/pyrit”, line 4, in
import pyrit_cli
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 32, in
import cpyrit.cpyrit
ImportError: No module named cpyrit.cpyrit
Can you figure it out? Thanks a lot!
So i have got this error after issuing this command- root@Ubergeek:~# cd ../cpyrit_calpp/
bash: cd: ../cpyrit_calpp/: No such file or directory
please help
How good or bad are these results?
Computed 14180.25 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD REDWOOD”: 13359.5 PMKs/s (RTT 1.5)
#2: ‘CPU-Core (SSE2)’: 222.7 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2)’: 221.3 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2)’: 213.4 PMKs/s (RTT 3.0)
#5: ‘CPU-Core (SSE2)’: 225.2 PMKs/s (RTT 3.0)
#6: ‘CPU-Core (SSE2)’: 220.3 PMKs/s (RTT 3.0)
#7: ‘CPU-Core (SSE2)’: 214.9 PMKs/s (RTT 3.0)
#8: ‘CPU-Core (SSE2)’: 229.3 PMKs/s (RTT 3.0)
I have a fresh install of Kali-Linux 3.14 64 and a Radeon hd 5450 video card so wanted to crack with hashes and pyrit with GPU. I have followed instructions to install AMD APP SDK, CalPP, fglrx drivers and pyrit svn. Now I have been at this for about a month and have re-installed Kali 9 times lol but have finally got everything to run perfectly, even found calpp v2.7 and using it instead of v2.9 so everythings good untill I get to pyrit, I did:
root@kali:~# apt-get install libpcap-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
libpcap-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@kali:~# apt-get remove –purge pyrit
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
pyrit*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 381 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database … 352758 files and directories currently installed.)
Removing pyrit (0.4.0-2) …
Processing triggers for python-support (1.0.15) …
Processing triggers for man-db (2.7.0.2-4) …
root@kali:~# rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/
rm: cannot remove `/usr/local/lib/python2.7/dist-packages/cpyrit/’: No such file or directory
root@kali:~# svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
Checked out revision 308.
root@kali:~# cd pyrit_svn/pyrit/
root@kali:~/pyrit_svn/pyrit# ./setup.py build install
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.1-dev (svn r308)” -maes -mpclmul
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-protector-strong’
Failed to build; Compiling without AES-NI
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.1-dev (svn r308)”
x86_64-linux-gnu-gcc: error: unrecognized command line option ‘-fstack-protector-strong’
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
Any ideas? What the heck is “‘-fstack-protector-strong” I cant find this anywhere on the web. Would greatly appreciate any help, I am totally stumped.
UPDATE: I now have everything installed and running perfectly. The things I did differently this last sucessfull time was to reboot after every single step, meaning, after install fglrx-reboot, after install AMD APP SDK 2.7 (2.9 DOES NOT WORK!)-reboot, calpp-reboot, then pyrit. I also used a clean install of Kali updated before the install then followed the instructions here exactly.
Computed 3518.86 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD CEDAR”: 3097.7 PMKs/s (RTT 1.9)
#2: ‘CPU-Core (SSE2)’: 564.4 PMKs/s (RTT 3.0)
I have seen faster but I’ll take it! Best of luck! Thank you Admin for a great instruct!
thank you so much for this tutorial, i would never have been able to figure this out myself
i was getting about 300 pmks/s before i installed this
now i can make use of my 280xs!
is any more setup required to use two in crossfire, or does this number already include it?
this does seem like a lot so i’m not complaining
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 121708.9 PMKs/s (RTT 1.0)
I managed to get crossfire working by enabling it in CCC
these are the results after having crossfire enabled
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 66731.0 PMKs/s (RTT 1.4)
#2: ‘CAL++ Device #2 ‘AMD GPU DEVICE”: 64261.7 PMKs/s (RTT 1.5)
Sweet. .. Congratulations.
Hey, I’ve been following these tutorials step by step, and I have reinstalled about 14 times. This time I got EVERY step to work, (I did them in the order of fglrx, ATI SDK, Cal++, then finally this one, and everything worked except for after I install this one I get the error terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted.
And don’t tell me to look at Mike’s post or whatever, because I’ve tried everything, I have scoured the web. I will reinstall AGAIN if I have to, but my problem was that after I installed Cal++ originally I could use pyrit benchmark and list_cores.
So what the hell did we do that screwed it up?
I read online that having Open CL and Pyrit Cal++ installed at the same time will throw that error, but that was only in one spot. I have not been able to find a solution. I tried every single one I could find. With this in mind, can you tell me how to uninstall what I did just install?
Or can you help me find a fix?
I’m praying you actually answer these still.
– Zach
my dear, have you any idea with [Radeon HD 8500/8700M Series] works with pyrit?
i’ve installed all of these and it seems it doesn’t with cal++..
this is output:
root@kali:~# pyrit list_cores
Pyrit 0.4.1-dev (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/AES)’
#2: ‘CPU-Core (SSE2/AES)’
#3: ‘CPU-Core (SSE2/AES)’
#4: ‘CPU-Core (SSE2/AES)’
can you help me?
Admin, I understand why you don’t like Windows – you would have some but not as much priceless drama. -Enjoy!
haha, I never said I hate Windows. It’s a great product but I just like doing things myself.
When i trie to run “pyrit list_cores” this errors shows up:
root@kali:~/pyrit_svn/cpyrit_calpp# pyrit list_cores
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted
root@kali:~/pyrit_svn/cpyrit_calpp#
After much much struggle (an entire day) I FINALLY got this working on my 2011 8,2 I7 Macbook pro… Could not have done it without you! Thank you so much blackMORE Ops!!
Computed 7418.56 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 6160.7 PMKs/s (RTT 1.3)
#2: ‘CPU-Core (SSE2/AES)’: 259.2 PMKs/s (RTT 3.3)
#3: ‘CPU-Core (SSE2/AES)’: 258.4 PMKs/s (RTT 3.2)
#4: ‘CPU-Core (SSE2/AES)’: 263.1 PMKs/s (RTT 3.0)
#5: ‘CPU-Core (SSE2/AES)’: 257.0 PMKs/s (RTT 3.2)
#6: ‘CPU-Core (SSE2/AES)’: 257.5 PMKs/s (RTT 3.1)
#7: ‘CPU-Core (SSE2/AES)’: 254.3 PMKs/s (RTT 3.2)
#8: ‘CPU-Core (SSE2/AES)’: 257.8 PMKs/s (RTT 3.2)
I know I can get more out of it also with a little messing around.. This is in Kali 1.1.0 ,Unclean heavily modified dirty dirty macbook install.. Thank you everyone also all your comments and problems helped me figure this out without having to make a post :)
Btw guys, Kali runs amazing on apple hardware, a few mini pita things but if you have a little smarts and the support network the quality of Linux/ Kali community you can do it, I Hope some more of you try this out. I have an integrated graphics intel/Ati Radeon HD 6400M btw, and all feature / functions including steam all work with kali.. Also, I am quad-booted with OS-X Yosemite , Windows 7 , We4kerth4n and Kali. Did not effect anything else in the negative.. Thanks again guys.
Hi, I accidentally posted a question on the wrong guide, sorry about that. I’m getting the following error
root@kali:~/pyrit_svn/pyrit# ./setup.py build install
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.1-dev (svn r308)” -maes -mpclmul
cpyrit/_cpyrit_cpu.c:35:26: fatal error: openssl/hmac.h: No such file or directory
#include <openssl/hmac.h>
^
compilation terminated.
Failed to build; Compiling without AES-NI
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.1-dev (svn r308)”
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
Any Ideas?
Hi max034,
Please read comments section carefully. Every little issues/errors were covered by multiple readers. Thanks,
-BMO
Hi Blackmore, I did read the comments but non of them specified the error about openssl. After some research i found out that I needed additional headers and that fixed the problem. But now I have another. I installed everything but pyrit is not working. I get the following error
root@kali:~# pyrit list_cores
Segmentation fault
root@kali:~# pyrit benchmark
Segmentation fault
I did see in the comments that many others also experienced this problem but I couldn’t find any answers. I do have an r9 290 as most of the others with the same problem. I guess its not supported.
Thanks for the help.
Pyrit is not actively developed for many years now. I assume some cards might not work.
Ubuntu is usually the de facto supported card, so if this is something you MUST have, then you can always install Ubuntu in a separate partition and try it.
I cannot rule out that the problem lies with Kali only. Also, I can only comment on the cards I’ve tested. Hope that explains. Thanks,
-BMO
I fixed that <openssl/hmac.h> issue with installation:
apt-get install g++
apt-get install python-dev
apt-get install zlib1g-dev
apt-get install libssl-dev
Thank you for time saving advice. I have been running into problems with some tools and so I have decided I may clear the slate and start with a stable kali build and then run certain tools separate from others in containers from docker to keep things from conflicting and breaking all the time. There are a few tools I need python2 (they won’t run properly on 3) things break if I switch from python2 to 3 when I need one or the other plus doing it that way would be a waste of time. I have to do a little more research and plan it all out how I am going to rebuild this thing. I have had this problem with a few installs in regards to having conflicts with one another now and so I think docker is a good answer here.