JPaulMora / Pyrit

The famous WPA precomputed cracker, Migrated from Google.
GNU General Public License v3.0
1.05k stars 273 forks source link

pyrit with cal++ on a switchable graphics intel HD4000/AMD radeon HD 8730M #454

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.pyrit list_core
2.pyrit benchmark

What is the expected output? What do you see instead?

the expected output is to list the cores with the gpu core and benchmarks
instead i am getting a cal error:

error: pyrit terminate called after throwing an instance of 'cal::Error' 
what(): Operational error 

What version of the product are you using? On what operating system?
pyrit dev 0.4.1 with kali linux 1.0.7

Please provide any additional information below.

my laptop have a switchable graphics architecture intel HD4000/ AMD radeon HD 
8730M

root@kali:~# lspci -vnn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core 
processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI 
Mars [Radeon HD 8500/8700M Series] [1002:6601] (prog-if 00 [VGA controller])

i have kali linux 1.0.7 and trying to use pyrit with my gpu (CAL or opencl)
SDK 3.7
calapp 0.90
pyrit 0.4.1

i was able to install the amd drivers and catalyst with no errors:

root@kali:~# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon (TM) HD 8500M/8700M
OpenGL version string: 4.4.12874 Compatibility Profile Context 14.10.1006.1001

root@kali:~# lsmod | grep fglrx
fglrx 8675016 77 
button 12944 2 i915,fglrx

ATI catalyst center using my AMD graphics.

i installed AMD sdk as well as well as cal++ and pyrit with no errors at all.

root@kali:~# 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: 'CPU-Core (SSE2/AES)'
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'

i installed pyrit CAL and when i tried to any pyrit command (pyrit list_cores, 
pyrit benchmark), i get the following error: pyrit terminate called after 
throwing an instance of 'cal::Error' what(): Operational error 

i made sure cal was installed with no errors but couldnt get pyrit to run with 
it so i decided to switch to pyrit opencl

after removing pyrit and cleaning and reinstalling pyrit and pyrit opencl, i 
run the command list_cores but it doesnt recognize my gpu so the output is 
still 

root@kali:~/pyrit_svn/cpyrit_opencl# 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: 'CPU-Core (SSE2/AES)'
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'

Can anybody help me with this task to get pyrit to use my gpu using cal or 
opencl?
i am sure that no errors occured at any stage of the installation, and i tried 
to have a clean install of kali with same results.
is my switchable graphics architecture related to that?

kindly help me in this.

Original issue reported on code.google.com by ectan...@gmail.com on 29 Jun 2014 at 11:31

GoogleCodeExporter commented 8 years ago
have the variables?

PATH=$PATH:/usr/local/cuda/bin
CUDA_INSTALL_PATH="/usr/local/cuda"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib
export PATH
export CUDA_INSTALL_PATH
export LD_LIBRARY_PATH

Built CUDA for Pyrit?

root@bt:~/pyrit/pyrit# cd ../cpyrit_cuda/
root@bt:~/pyrit/cpyrit_cuda# python setup.py build
root@bt:~/pyrit/cpyrit_cuda# python setup.py install

Original comment by deltomaf...@gmail.com on 1 Jul 2014 at 12:37

GoogleCodeExporter commented 8 years ago
i am using an AMD radeaon HD 7830M graphic card.
so i installed fglrx and successfully installed pyrit cal++ with no errors.

yet still having this error:terminate called after throwing an instance of 
'cal::Error' what(): Operational error

why should i install cypyrit_cuda??

Original comment by ectan...@gmail.com on 1 Jul 2014 at 6:45

GoogleCodeExporter commented 8 years ago
 can any of the developpers at least tell me what is the reason of this error? or what can be the cause of it?

Original comment by ectan...@gmail.com on 1 Jul 2014 at 7:30

GoogleCodeExporter commented 8 years ago
sorry... i not seen which was AMD Radeon, reinstall SDK for AMD. 
check the environmental variables and path.

Original comment by deltomaf...@gmail.com on 13 Jul 2014 at 11:53

GoogleCodeExporter commented 8 years ago
hi,guy, have you solved this problem? i have the same trouble with you.  

Original comment by Jglimm...@gmail.com on 6 Dec 2014 at 7:00

GoogleCodeExporter commented 8 years ago
not yet, no support received yet

Original comment by ectan...@gmail.com on 7 Dec 2014 at 8:10

JPaulMora commented 8 years ago

looks like the calpp module is broken, please any help appreciated.

riggerthehacker commented 8 years ago

hi guys

Please can anyone help me? am having problems installing cal++, i believe i followed the right steps

1 Download calpp 0.90 from: SourceForge CAL++ Website 2 tar -xvf calpp-0.90.tar.gz 3 cd ~ 4 cd calpp-0.90/ 5 Edit CMakeLists.txt and Save and quit,

      then when i run 

6 cmake . i get an error, saying

-- Boost version: 1.55.0 -- Found the following Boost libraries: -- date_time -- =========================================================== -- ATI CAL include directory LIB_ATICAL_INCLUDE-NOTFOUND -- ATI CAL cl library directory /usr/lib -- ATI CAL rt library directory /usr/lib -- Boost version 1_55 -- =========================================================== CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: LIB_ATICAL_INCLUDE used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/examples used as include directory in directory /root/Downloads/calpp-0.90/regression used as include directory in directory /root/Downloads/calpp-0.90/regression

-- Configuring incomplete, errors occurred! See also "/root/Downloads/calpp-0.90/CMakeFiles/CMakeOutput.log".

*But if i cd into example, the error goes away but then another one pops up when i run the make command like

7 make

make: *\ No targets specified and no makefile found. Stop.

*And if i cd into examples and run it, it gives

[ 7%] Building CXX object CMakeFiles/coalescingtest.dir/coalescingtest.o /root/Downloads/calpp-0.90/examples/coalescingtest.cpp:27:23: fatal error: cal/cal.hpp: No such file or directory

include <cal/cal.hpp>

                   ^

compilation terminated. CMakeFiles/coalescingtest.dir/build.make:54: recipe for target 'CMakeFiles/coalescingtest.dir/coalescingtest.o' failed make[2]: * [CMakeFiles/coalescingtest.dir/coalescingtest.o] Error 1 CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/coalescingtest.dir/all' failed make[1]: * [CMakeFiles/coalescingtest.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *\ [all] Error 2

Please if anyone can help that would be great.

JPaulMora commented 8 years ago

So this is a problem with CAL++ right? if so, look for tutorials on how to install it/troubleshoot it. I think searching for the 'LIB_ATICAL_INCLUDE' variable error should be a good start.

riggerthehacker commented 8 years ago

thanks JPaulMora for your help but i cant seem to find anything that will help me on that online so, please if you can assist me that would be great. Am great full thank you.

riggerthehacker commented 8 years ago

thanks JPaulMora for your help but i cant seem to find anything that will help me on that online so, please if you can assist me that would be great. Am great full thank you.

On Monday, February 29, 2016 12:01 AM, John Mora <notifications@github.com> wrote:

So this is a problem with CAL++ right? if so, look for tutorials on how to install it/troubleshoot it. I think searching for the 'LIB_ATICAL_INCLUDE' variable error should be a good start.— Reply to this email directly or view it on GitHub.

JPaulMora commented 8 years ago

I don't really have CAL++ compatible hardware, so my help might be a little limited. Hope these sites help you out:

http://www.blackmoreops.com/2013/11/22/install-cal-kali-linux/

Also, this guy below explains a nice tut on AMD GPUs, I'll actually include the changes he makes in the source over here:

http://blog.opensecurityresearch.com/2011/11/setting-up-password-cracking-server.html

riggerthehacker commented 8 years ago

Thank you JPaulMora that was very helpful.

riggerthehacker commented 8 years ago

but am having another problem. i have installed cal++ but now am having an error when i try to install cpyrit_calpp i get this error .PLEASE HELP!!!

root@localhost:~/pyrit_svn/cpyrit_calpp# python setup.py build The headers required to build CAL++ kernelwere not found. Trying to continue anyway... running build running build_ext Building modules... building 'cpyrit._cpyrit_calpp' 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_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++ 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

include

             ^

compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

akuma6099 commented 7 years ago

AMD SDK 2.9+ doesn't include the CAL headers. You need to manually pull them from a friendly repo.

mkdir /opt/AMDAPPSDK-2.9-1/include/CAL cd /opt/AMDAPPSDK-2.9-1/include/CAL svn checkout https://github.com/clockfort/amd-app-sdk-fixes/trunk/include/CAL .

Modify calpp-0.90/CMakeLists.txt to this: FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "$ENV{ATISTREAMSDKROOT}" ) FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "$ENV{ATISTREAMSDKROOT}" ) FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "$ENV{ATISTREAMSDKROOT}/include/CAL" )

then do a cmake . && make

Not a Pyrit issue...