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
When installing pyrit i get the following message:
Is this correct?
Looks like cpyrit issue to me. Did you manage to fix it? (as you're already posted into CAL++, I am guessing yes). Please let us know and it might help someone else in future who bumps into similar issues.
Afraid not. I posted on the Cal++ section because that was the step prior to this one that I assumed was successful.
Same issue here. I had to reinstall the libpcap-dev and everything worked smoothly
hey there, i followed this tutorial but i got an error. See here.
Can somebody help me please?
_cpyrit_calpp.cpp:38:23: fatal error: cal/cal.hpp: Datei oder Verzeichnis nicht gefunden
Translated using Google Translation (German to English).
File of directory not found. Please copy paste cal.hpp in cal/ folder and it should be all good.
please be more specific : "Please copy paste cal.hpp in cal/ folder and it should be all good."
Hi momi, I typed the last comment from my phone, so didn’t manage to link it properly.
Here’s where I found cal.hpp file in my installation.
Files can be downloaded from here: https://github.com/clockfort/amd-app-sdk-fixes
BTW, it’s a bit surprising that you’re seeing this error in Pyrit installation, it’s usually a CAL++ installation issue. Hope this helps.
i have some problem
when i type
./setup.py
build install form dircpyrit_calpp/
i get this message :
Hi Azan,
If you look into the error message
/usr/local/include/cal/cal.hpp:26:17: fatal error: cal.h: No such file or directory
then it becomes clear what is missing. All you need to do is to copy pastecal.h
file in that directory. Files can be downloaded from here: https://github.com/clockfort/amd-app-sdk-fixes. You will probably see some similar errors for other files as well, just copy paste those files from git to the correct directory.Hope that helps.
root@kali:~/pyrit_svn/cpyrit_calpp# ./setup.py build install
running build
running build_ext
Building modules…
building ‘cpyrit._cpyrit_calpp’ 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_calpp.cpp -o build/temp.linux-i686-2.7/_cpyrit_calpp.o -Wall -fno-strict-aliasing -DVERSION=”0.4.0-dev (svn r308)”
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from _cpyrit_calpp.cpp:38:0:
/usr/local/include/cal/cal.hpp:26:17: fatal error: cal.h: No such file or directory
compilation terminated.
error: command ‘gcc’ failed with exit status 1
root@kali:~/pyrit_svn/cpyrit_calpp#
ok here’s is the thing l know l paste the cal.h file to the /usr/local/include/cal directory but l did paste the cal.h file in the cal dir and
l still get the same error? please help i don’t know whats wrong now
Hi Keron, Read the comments. Solution is in there (for almost every issue). Good luck.
The following cores seem available…
#1: ‘CAL++ Device #1 ‘AMD WRESTLER”
#2: ‘CPU-Core (SSE2)’
root@kali:~/pyrit_svn/cpyrit_calpp# pyrit 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 (1008.6 PMKs/s)… /
Computed 1008.57 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD WRESTLER”: 1141.2 PMKs/s (RTT 4.5)
#2: ‘CPU-Core (SSE2)’: 77.6 PMKs/s (RTT 3.1)
ok so the root@kali:~/pyrit_svn/cpyrit_calpp# ./setup.py build install was success l got warning messages but install sucessfully
but this is what l get when l run pyrit list_cores & pyrit benchmark it different from
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)
So im back with good and bad news ,the good news is that i tried the 2.9 versioon of the AMD APP SDK and it worked with Prokash addition the CAL++ worked too my problem was in Pyrit installation the final step whene i try to execute the command :
i get this :
so i think that the AMD SDK installation didnt go well after all what shoud i do now please help ?
after 15min from posting my msg i found out the solution you inly need to do all the steps in root acount i was doing them in my admin acount because i dont have a root acount so i cpied the directories "amdappsdk" ,"calpp-0.90" ,and "pyrit_svn" into "/root" and issued the command :
and everything went well (with a lots of warning though) and here is my benchmark :
im using a Radeon HD 7670M its a hybrid solution not a very powerful but still powerful than the 4 cores of the i5 proc in Password cracking so all of this coud never happenn without you sir i give all my thanks :)
No worries. Thanks for posting back with the solution, someone with similar issues might find it handy.
I was thinking hoe to do this and now i realize what i did wrong :), thx to your comments Youssef i Will get 2.9 running tomorrow
I did everything you wrote so far and stil getting this:
What’s the problem?
okey guys, fixed it. What I did is this:
1.made sure that cmake . works
2.installed SDK
3.restarted system
4.went through PYRIT installation again
and it was successful!
THANK YOU VERY MUCH!!!
Good one Martin, Thanks for reporting back. I was away, but yeah, your issue was you didn't start with AMDAPPSDK Driver 1st.
The chain is like this,
1. Install AMD Drivers
2. Install SDK toolkit.
3. Reinstall Pyrit (with the workaround outlined in the comments section).
4. Install CAL++.
Hope this clears out confusion for anyone else
out there.
Hi just wanted to say I appreciate all the instruction towards getting pyrit to work with AMD gpu. That being said, I’m at a loss with this error when I try to use pyrit after all steps have been followed.
Ive also tried running ./pyrit from ~/pyrit_svn/pyrit and I get this error
this is day three of my attempt at this installation. Any help would be appreciated.
Hi Mikeman,
Martin already posted a solution, you can just follow that:
OK. So I’ve narrowed down where my installation goes sideways to the same part most people in the comment section are getting stuck on at ./setup.py build install in the ~/pyrit_svn/cpyrit_calpp directory. Only I don’t get any missing cal.hpp errors like the above comments unless I don’t install CAL++ before pyrit. I didn’t get any errors on cmake and pyrit doesn’t output my error from my first post till after cpyrit. installation. I do have a question about the cpyrit_calpp ./setup.py build install output. Should I be getting about 30 of these warnings too?
_cpyrit_calpp_kernel.cpp:429:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:431:57: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses].
Anyways I also tried deleting all folders of installation from steps 2-4 of pyrit guide and starting over using Martin’s solution. Still no dice. I’m not a Linux expert, ive mainly taught myself through with the Internet, so chances are there I’m misinterpreting something in the comment solutions. I appreciate your replies and patience.
Hi Mikeman,
Yes, we all had that warning. It doesn’t hurt your installation. Only catch is, all of my instructions are for v2.7 AMDAPPSDK. If you’ve installed 2.9, then you might see some random errors. (not warnings).
Just ensure you installed them in the following order:
1. Installed AMD fglrx driver. (there’s a guide for it in this website, pick the most recent one)
2. Installed AMDAPPSDK (guide in my site)
3. Reinstalled Pyrit and Cpyrit (guide in my site, take care of that pesky cal.hpp error as per solutions outlined in comments section)
4. Installed CAL++ (guide in my site).
Unless you have a cards that’s too old or too new (from my experience, only old cards are not supported, all new cards works just fine).
If you may however manage to make it work, copy paste all commands and troubleshooting steps and put in the comments section. I started this blog for myself.. to keep track of issues I’ve encountered. It seems many users got the same issue. And don’t worry about your Linux skills, no one learned and became expert in 1 week. At times, we all fumble and tumble but what I’ve found it always works at the end..
Good Luck.
You probably setup cpyrit_opencl alongside cpyrit_calpp –> this causes the error.
Go into the cpyrit_opencl directory and do the following as root:
python setup.py install –record files.txt
cat files.txt | xargs rm -rf
Now try ‘pyrit list_cores’ :)
Side note: Got the X error with fglrxinfo, to fix that I had to do aticonfig –adapter=all –initial
Hope this helps.
Thanks for the quick response. I have tried that before, but I tried it again in case I missed something and it still shows the same error. My output from find / -name cal.hpp only showed these outputs
/usr/local/include/cal/cal.hpp
/root/calpp-0.90/include/cal/cal.hpp
should I just copy the whole /root/calpp-0.90/include/cal/ folder and paste it into /opt/AMDAPP/include/ ? Because there isn’t a cal folder in that directory, just the CAL folder.
Hello,
i got the same Problem here.
i found out that when i install everything through like first AMDSDK then calp++ then pyrit ./setup.py and then the calp setup.py i get those 30 Errors.. but it doesnt change the outcome of the Same error :
No protocol specified
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
and when i install till calp90.0.0 then restart… i wount get these 30 errors .. everything looks fine but then again .. when i start pyrit i get same error again.. drives me crazy that i dont find anything about it. :/
did everything with root.. and tryed pretty much every step.
What’s the exact error message? I had an issue at some point where after reinstalling Pyrit, it wasn’t linked properly. But that’s a problem with Pyrit … and I ended up linking proper directory to fix it. MikeMan fixed it later on at some point … There’s also a fix posted by Martin in the comments section.
Actually I had to call it quits before I found a 10th story balcony to toss my laptop off of. Now that I’ve found someone else with the same issue I don’t feel so retarded so I might try again. Ill let you know if I figure anything out.
LOL! I reinstalled Kali 11 times in 3 days when Kali 3.12 broke AMD Drivers and my hashcat wouldn’t work. Have to endure some pain but that’s how your knowledge becomes rock solid. I will try to help in any way possible in here and in Kali forum.
Now that you have someone else with similar issues, you can try to share ideas either here or in Kali forum to resolve this issue. Good luck to you both.
MikeMan, did you figure out anything about this error? Im also getting the same error, and need help with this!
No…The only thing i can think of is maybe my graphics card isn’t supported by amd app sdk (too new maybe?). Mine is Radeon HD 8600. I went to the website and found a list of supported graphics cards, but i don’t think mine was on it.
I am also now getting the error:
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted
The thing is that I had pyrit installed and working. I added about 100,000,000 passwords to the database and then restarted. After which, I started getting this error. Has anyone found a solution to the problem?? Please help! This is driving me nuts!!
-AndyFive
Hi
My installation on hp dv6 i5 6770M.System update>aptitude update>aptitude dist-upgrade,installation AMD ATI and AMD-APP-SDK-v2.7 in accordance with the recommendations blackMORE,then install Pyrit is ok>Install CAL++ plugin>ERROR root@kali:~/pyrit_svn/cpyrit_calpp# ./setup.py build install
running build
running build_ext
Building modules…
building ‘cpyrit._cpyrit_calpp’ extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include/CAL -I/usr/include/python2.7 -c _cpyrit_calpp.cpp -o build/temp.linux-x86_64-2.7/_cpyrit_calpp.o -Wall -fno-strict-aliasing -DVERSION=”0.4.1-dev”
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
_cpyrit_calpp.cpp:38:23: fatal error: cal/cal.hpp: Nie ma takiego pliku ani katalogu
compilation terminated.
error: command ‘gcc’ failed with exit status 1
My solution:download>calpp-0.90.tar.gz>unzip>copy cal of the /root/calpp-0.90/include and paste to /opt/AMDAPP/include/CAL ,next apt-get install cmake libboost-all-dev and Install CAL++ plugin.That’s all,despite several times trying to install CAL++ I was unable to install it I had this problem>root@kali:~/calpp-0.90# make
Scanning dependencies of target coalescingtest
[ 6%] Building CXX object examples/CMakeFiles/coalescingtest.dir/coalescingtest.cpp.o.PYRIT RUNS WITHOUT INSTALLATION CAL++.
root@kali:~# pyrit benchmark
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+
Running benchmark (21706.1 PMKs/s)… /
Computed 21706.11 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 21374.3 PMKs/s (RTT 1.1)
#2: ‘CPU-Core (SSE2/AES)’: 424.0 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2/AES)’: 421.9 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2/AES)’: 408.7 PMKs/s (RTT 3.0) I tested rainbow tables 1.9 mln PMKs/s.
Thank you for the administrator to guide and encourage the further continuation
I have a AMD R9 290 graphics card. Following your guides, I get “Segmentation fault” whenever I try to run Pyrit. Has anyone else run into this problem?
Hi JohnDN,
It’s possibly an issue with .cap file. Run
pyrit selftest
andpyrit benchmark
to check if it’s really and issue with Pyrit or not.Also are you running on CrossFire?
See this long post dated 2010 … http://code.google.com/p/pyrit/issues/detail?id=123
Also please post back if you’ve managed to solve it, info like these gets lost quickly. Good Luck.
-BMO
I am not running crossfire, only one AMD R9 290. Also, I tried simply “pyrit” and “pyrit benchmark” and I get the “Segmentation fault”. So I believe it is an issue with Pyrit. I’ll review the post you linked when I have more time and see if that resolves it. I am using OpenCL Pyrit for now.
did you get it to work yet ? having the same problem !
Also same problem here with R9 290X
same here with R9 290X
root@b0x:~# pyrit list_cores
Segmentation fault
.
root@b0x:~# dmesg | grep -i pyrit
[ 1225.795189] pyrit[14130]: segfault at e1c ip 00007fa54d720399 sp 00007fffccef8d30 error 4 in libaticaldd.so[7fa54d5bd000+b47000]
has anyone a solution?
same r9 290 Segmentation fault!!! any solution?
This guide worked First time for me heres my results
Running benchmark (14523.6 PMKs/s)… –
Computed 14523.60 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 14185.0 PMKs/s (RTT 1.3)
#2: ‘CPU-Core (SSE2/AES)’: 437.0 PMKs/s (RTT 2.9)
#3: ‘CPU-Core (SSE2/AES)’: 424.5 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2/AES)’: 436.3 PMKs/s (RTT 3.0)
root@jake:~/pyrit_svn/cpyrit_calpp#
Hi jake,
Thanks for stopping by. Good to know my guides helped you. Cheers,
-BMO
root@kali:~# cd pyrit_svn/pyrit/
root@kali:~/pyrit_svn/pyrit# ls
build cpyrit _cpyrit_opencl.h pyrit README
CHANGELOG _cpyrit_oclkernel.cl MANIFEST.in pyrit_cli.py setup.py
COPYING _cpyrit_opencl.c PKG-INFO pyrit_cli.pyc test
root@kali:~/pyrit_svn/pyrit# ./setup.py build install
The headers required to build the OpenCL-kernel were not found. Trying to continue anyway…
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 -Wall -fno-strict-aliasing -DVERSION=”0.4.0″
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/_cpyrit_opencl.o -L/opt/AMDAPP/lib/x86_64 -lcrypto -lz -lOpenCL -o build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_opencl.so
running install
running install_lib
copying build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_opencl.so -> /usr/local/lib/python2.7/dist-packages/cpyrit
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/cpyrit_opencl-0.4.0.egg-info
root@kali:~/pyrit_svn/pyrit# cd ../cpyrit_calpp/
root@kali:~/pyrit_svn/cpyrit_calpp# ./setup.py build install
running build
running build_ext
Building modules…
running install
running install_lib
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/cpyrit_calpp-0.4.1_dev.egg-info
Writing /usr/local/lib/python2.7/dist-packages/cpyrit_calpp-0.4.1_dev.egg-info
root@kali:~/pyrit_svn/cpyrit_calpp# pyrit list_cores
Errore di segmentazione
HELPP!!!
I have reinstalled 4 times and then kali step by step guide on HP pavilion AMD cpu a10
and amd radeon 8600 GPUs.
I had no errors but typing in command: pyrit list_cores segmentation fault error.
I noticed the disappearance of pyrit and tried to reinstall with apt-get install pyrit but always segmentation fault.
What wrong?
Help
Is your card supported? Fglrx works? SDK v2.7? I’m on mobile now, so can’t do research but someone posted a similar comment or solution either in my site or kali forums.
I installed the ati driver according to the tutorial and now I can see the video card radeon HD8600 and Fglrx works perfectly.
I installed SDK v2.7 as a tutorial and I had no errors.
I installed Cal + + and I did not have errors.
If I follow the tutorial on installing pyrit I have no errors but I do not run pyrit.
with “apt-get remove – purge pyrit” I uninstalled pyrit but following the tutorial when I install it I do not fault you run giving me error segment.
Where can I check the compatibility of the video card?
I just installed kali and I’m re-running the tutorial.
Sorry my bad english
All the guides worked a treat first go… AMD APP SDK v2.7 (didn’t bother with 2.9 as per some other comments…)
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 (17391.3 PMKs/s)… \
Computed 17391.35 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 14875.5 PMKs/s (RTT 1.6)
#2: ‘CPU-Core (SSE2/AES)’: 470.3 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2/AES)’: 497.8 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2/AES)’: 468.2 PMKs/s (RTT 3.0)
#5: ‘CPU-Core (SSE2/AES)’: 468.2 PMKs/s (RTT 3.0)
#6: ‘CPU-Core (SSE2/AES)’: 463.0 PMKs/s (RTT 3.0)
#7: ‘CPU-Core (SSE2/AES)’: 465.6 PMKs/s (RTT 3.0)
#8: ‘CPU-Core (SSE2/AES)’: 467.2 PMKs/s (RTT 3.0)
Not bad results for a laptop ;)
Cheers,
Ray
When I try to run:
root@kali:~# pyrit serve
i get some strange thing where it says:
Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-6:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 552, in __bootstrap_inner
self.run()
File “/usr/local/lib/python2.7/dist-packages/cpyrit/network.py”, line 54, in run
pwlist = storage.PAW2_Buffer()
TypeError: __init__() takes exactly 2 arguments (1 given)
Where do I go from here?I I installed everything without a problem (the SDK is v2.9). FGLRX installs fine, pyrit didn’t throw any errors at me. everything else works, but for some reason pyrit gives me that error.
Could I have followed something wrong?
I get the same thing. It won’t work as a server or if I try the other way, It doesn’t work with other servers. Not sure whats going on. Although, I had 2 Nvidia machines working together. My setup now is 1 AMD and 1 Nvidia.
If you got this error
root@kali:~/pyrit_svn/pyrit# ./setup.py build install
running build
running build_py
running build_ext
building ‘cpyrit._cpyrit_cpu’ extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -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:40:18: fatal error: pcap.h: No such file or directory
compilation terminated.
Failed to build; Compiling without AES-NI
building ‘cpyrit._cpyrit_cpu’ extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -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:40:18: fatal error: pcap.h: No such file or directory
compilation terminated.
error: command ‘gcc’ failed with exit status 1
——————————————————————————-
fix is uninstall CAL++ and reinstall CAL++ then go to last step and use command ./setup.py build install
root@adminis:~# pyrit list_cores
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+
The following cores seem available…
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”
#2: ‘CPU-Core (SSE2/AES)’
#3: ‘CPU-Core (SSE2/AES)’
#4: ‘CPU-Core (SSE2/AES)’
That’s a good fix
sergii
, thanks… Surely someone will find it useful. Cheers-BMO
no matter what i do , no matter how many times i reinstall kali and follow all the steps, and though i am having no erros at all install cal++ and pyrit, i still get this error
~/# pyrit
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted
with any pyrit command.
please note that my drivers were installed correctly and im using a switchable graphic architecture (intel/AMD)
anyone have any idea about this error?
root@administr:~# pyrit 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 (129363.1 PMKs/s)… /
Computed 129363.09 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 134583.9 PMKs/s (RTT 1.0)
#2: ‘CPU-Core (SSE2/AES)’: 934.9 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2/AES)’: 887.1 PMKs/s (RTT 2.9)
#4: ‘CPU-Core (SSE2/AES)’: 946.9 PMKs/s (RTT 2.9)
The problem is >> when I add new ati 9280x to my computer …..SECOND GPU is not recognized. I changed to other slot but no luck ,and I try GPU (just in case) on other pc works fine.
Hardware : MB asrock h81 pro , intel i 5 4570 s , ram 1600 corsair , PSU corsair GS800, GPU gigabyt R 9280x , OS kali 32 bit
Hi sergii,
I answered a similar question on Kali forums last week.
https://forums.kali.org/showthread.php?21726-Pyrit-wont-find-any-GPU-s-when-in-SLI-works-perfect-on-a-single-card&p=34818&viewfull=1#post34818
For 2 GPU SLI systems run
nvidia-xconfig
like this:More reading materials here:
ftp://download.nvidia.com/XFree86/Linux-x86/177.68/README/chapter-25.html
Not many people with 2GPU reported back how their installation went and what steps were taken to fix the issue. If you manage to make it work, can you report back please, so that we can keep a record?
Good Luck.
-BMO
1 thank you for tip
2 I use AMD radeon R9280X what is my next step ? and thank you one more time
hi, can you tell me what you have done to use opencl? which driver you are using? mine is from kali repos
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
my way:
amd driver from repos
sdk installation
pyrit and cpyrit_opencl installation
but I am getting
root@b0x:~# pyrit list_cores
Segmentation fault
dmesg:
[ 402.426454] pyrit[9317]: segfault at de8 ip b4f9c172 sp bf928c30 error 4 in libaticaldd.so[b4ef4000+b0e000]
I am running a R9 290x and would like to use this card.
any help would be appriciate :)
sorry forgot to say I tried 32bit and 64bit system followed exactly this guides.
I have the same problem with my 290x ? You can fix ?
See my response to Patrick.
Doesn work.anyone has r290x work on kali ?!!
with CAL++ I had NO chance to get the r290x running, with OpenCL it is working.
see here:
https://forums.kali.org/showthread.php?22761-%28Guide%29-Installing-Fglrx-OpenCL-Pryit-for-AMD-Video-cards
and here:
https://forums.kali.org/showthread.php?22782-%28Guide%29-Fglrx-AMD-APP-SDK-Pyrit-Cal-for-AMD-Video-Cards
root@kali:~/pyrit_svn/cpyrit_calpp# ./setup.py build install
unavailable enviroment variable ATISTREAMSDKROOT
Traceback (most recent call last):
File “./setup.py”, line 35, in
CALPP_INC_DIR = os.environ[‘ATISTREAMSDKROOT’]
File “/usr/lib/python2.7/UserDict.py”, line 23, in __getitem__
raise KeyError(key)
KeyError: ‘ATISTREAMSDKROOT’
try to download calp to root folder
Ihave a ATI mobility HD 8xxxx series card. usng CAl++ gives me a segmentation fault as others have described here.
Running pyrit before the CAL++ “plugin” worked.
Afteer installing CAL++ “plugin” i only get a segmentation fault. ive posted that in the CAL++ install thread.
My workarond was to use the OpenCl “plugin”.
heres what i did after getting the segmentation fault:
In blackMOORES guide
For CAL++ its:
cd ../cpyrit_calpp/
Instead For OPENCL plugin its:
cd ../cpyrit_opencl
leafpad setup.py
Change this (lines 34 & 35):
OPENCL_INC_DIRS = []
OPENCL_LIB_DIRS = []
To this and save the file:
OPENCL_INC_DIRS = [‘/opt/AMD-APP-SDK-v2.4-lnx64/include/’]
OPENCL_LIB_DIRS = [‘/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/’]
./setup.py build install
pyrit list_cores
Hope it helps guys stuck at the segmentation fault error.
I have the same error:
pyrit
terminate called after throwing an instance of ‘cal::Error’
what(): Operational error
Aborted
Have tried you instruction but no luck. Same error. I look that i have no directory /opt/AMD-APP-SDK-v2.4-lnx64/include/ , only /opt/AMDAPP/ with same folder. And i try to change to my folder, but still no luck. What can i do to fix this error ?
Sorry for my English.
You can use AMDAPP instead AMD-APP-SDK-v2.4-lnx64
OPENCL_INC_DIRS = [‘/opt/AMDAPP/include/’]
OPENCL_LIB_DIRS = [‘/opt/AMDAPP/lib/x86_64/’]
This works fine with my system.
AMD R9 290X
AMD SDK V2.9
Has anyone been able to use two gpu’s with pyrit? I tried with two 7970’s, but my PKMs get cut in half on each card. It doesn’t matter how I configure the cards I can only get 56,000 PKMs each card. On a single card I can get 140,000 PKMs. I know that there are problems getting pyrit to scale with more than one gpu, but I have seen screen shots of two 7970’s doing 280,000 PKMs. Any help wold be appreciated.
I just found and followed this. Seems to work fine :) https://code.google.com/p/pyrit/issues/detail?id=137
Good find, thanks for posting the link.
I finally made it to the end, after around 3-4 days lost, but here i am :D
I had many issues, tried with Kali, then a couple of times and now again a fresh install of Kali 1.07..
Now nearly everything worked immediately, but in the end im stuck:
root@kali:~/calpp-0.90/pyrit_svn/cpyrit_calpp# pyrit list_cores
Speicherzugriffsfehler
root@kali:~/calpp-0.90/pyrit_svn/cpyrit_calpp# pyrit
Speicherzugriffsfehler
translate.google.com: Memory access error. But i I think its something with Segmentationfault, is that right?
I went 3 or 4 times through your Tutorial, but it always ended like this..
I tried to get rezurect’s method to work.. failed the same way..
fglrx, AMDAPPSDK and CAL++ is all successfully installed. I really dont know whats wrong here..
My PC:
4770k@4*4ghz HT = about 5000 PKMs,
but i really want to get use of my R9 290X
It would be very nice if someone can help me!
Greetings from Germany,
ChavezD
Well, i kept trying on and now i found out, that the problem occurs, after installing the Cal++ Plugin. Right now it is working normally, but as soon as i go on, i get the segmentation fault error..
After either “./setup.py build install” or “python setup.py install” i cant open pyrit anymore.. Has anyone any idea?
Disabling Nopat also didnt work. Somewhere in the internet i found some people with segmentation fault errors where it helped (but not Pyrit)…
root@kali:~/pyrit_svn/cpyrit_calpp# dmesg | grep -i pat
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.14-kali1-amd64 root=UUID=83e8a860-cda0-4103-a353-ce8728ff697f ro quiet nopat
[ 0.000000] PAT support disabled.
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.14-kali1-amd64 root=UUID=83e8a860-cda0-4103-a353-ce8728ff697f ro quiet nopat
[ 5.238477] [fglrx] Kernel supports PAT but it has been disabled
[ 5.238480] [fglrx] Using driver built-in PAT support instead
[ 5.244738] [fglrx] Driver built-in PAT support is enabled successfully
root@kali:~/pyrit_svn/cpyrit_calpp# pyrit
Speicherzugriffsfehler
Hi Chavez,
First of, congrats on winning the world cup. :)
As for your issue, few questions:
1. Did you install AMD APP SDK 2.9 first then reverted back to 2.7?
2. Did you only use Kali Linux official repositories?
3. Everything updated, upgraded as per standard procedures (without any 3rd party/Debian packages)?
If any of the questions were answered NO, I’m afraid you might have to try a fresh install. Good luck and thanks for stopping by.
Cheers,
-BMO
Tank you for your reply! :)
1. “NO”, complete fresh install. That means directly installed 2.7
2. Yes, did it how written in your tutorial.
3. Yes, but im not sure when i “perfectly” should do this. Directly after installing Linux and befor beginning to install other things?
I think i’m just gonna try one more time now.. Such project never took me so long to get achieved, either it worked or i surrendered after a few hours of work..
Well, i’ll keep you posted when i am done one more time :D
Alright, here i am again, this ist just f*ing me around -.-
Did it exactly step by step after your tutorial (after again completely fresh install on a clean HDD) , but in the end:
root@Kali-PC:~/pyrit_svn/cpyrit_calpp# pyrit list_cores
Speicherzugriffsfehler
By the way, the only errors/warnings i got here, ist that allright?
root@Kali-PC:~/pyrit_svn/cpyrit_calpp# ./setup.py build install
running build
running build_ext
Building modules…
building ‘cpyrit._cpyrit_calpp’ extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include/CAL -I/usr/include/python2.7 -c _cpyrit_calpp.cpp -o build/temp.linux-x86_64-2.7/_cpyrit_calpp.o -Wall -fno-strict-aliasing -DVERSION=”0.4.1-dev (svn r308)”
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/AMDAPP/include/CAL -I/usr/include/python2.7 -c _cpyrit_calpp_kernel.cpp -o build/temp.linux-x86_64-2.7/_cpyrit_calpp_kernel.o -Wall -fno-strict-aliasing -DVERSION=”0.4.1-dev (svn r308)”
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
_cpyrit_calpp_kernel.cpp: In function ‘void sha1_process(const SHA_DEV_CTX&, SHA_DEV_CTX&)’:
_cpyrit_calpp_kernel.cpp:429:32: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:431:57: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:434:61: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:437:63: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:440:63: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:443:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:446:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:449:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:452:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:455:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:458:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:461:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:464:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:467:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:470:53: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:473:54: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:477:66: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:481:69: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:485:69: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:490:69: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:595:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:599:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:605:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:609:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:615:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:619:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:625:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:629:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:635:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:639:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:645:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:649:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:655:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:659:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:665:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:669:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:675:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:679:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:685:49: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
_cpyrit_calpp_kernel.cpp:689:76: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cpyrit
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/_cpyrit_calpp.o build/temp.linux-x86_64-2.7/_cpyrit_calpp_kernel.o -lcrypto -laticalrt -laticalcl -o build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_calpp.so
running install
running install_lib
copying build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_calpp.so -> /usr/local/lib/python2.7/dist-packages/cpyrit
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/cpyrit_calpp-0.4.1_dev._svn.r308_.egg-info
Any chance getting it to work? Or how about OpenCL instead of Cal++, maybe this works?
Hi ChavezD,
I also have a R9 290X (PowerColor PCS+ R9 290X) card. CAL++ is not working for me either in 32 bit or 64 bit system – that’s really sad :( same “Segmentation fault”
please check:
root@b0x:~# dmesg | grep -i pyrit
[ 1225.795189] pyrit[14130]: segfault at e1c ip 00007fa54d720399 sp 00007fffccef8d30 error 4 in libaticaldd.so[7fa54d5bd000+b47000]
when this error accours. I think you will get the same error like me
Totally pissed off ended up with OpenCL.
no so much performance than CAL++ but so far OK but I would like to get CA++ working (+30% more performance than OpenCL)
card only!
#1: ‘OpenCL-Device ‘Hawaii”: 97168.3 PMKs/s (RTT 1.8)
greets from Austria!