Hi all,
This is an alternative to my other post where I explained how to install the OpenCL version of GPU support for pyrit / oclhashcat.
While OpenCL is very easy to install, it is no where near as powerful as Cal++. Below are some statistics for my Radeon HD 6970
Code:
Pyrit Benchmark
OpenCL 50595.56 PMKs/s (graphics card produced 49359.6 PMKs/s)
Cal++ 82695.02 PMKs/s (graphics card produced 81675.5 PMKs/s)
As can be seen, the Cal++ version is much faster.
At time of writing, the latest versions of all software is being installed on a 64bit Kali 1.0.9. This includes:
Code:
Pyrit v308
AMD APP SDK 2.9-1
Fglrx 14.4.2
Cal++ 0.90
1. Update and upgrade kali
Code:
apt-get clean && apt-get update && apt-get upgrade && apt-get dist-upgrade
2. Install headers
Code:
apt-get install linux-headers-$(uname -r)
3. Install fglrx
Code:
apt-get install fglrx-driver fglrx-atieventsd fglrx-control
4. Build xorg files
Code:
aticonfig --initial
5. Reboot
6. Install some dependencies needed for later
Code:
apt-get install libpcap-dev python-dev libssl-dev
7. Download AMD APP SDK from the link below (about 120MB). I'm on 64bit so I downloaded 2.9-1 for linux 64bit. Store it in your home folder. Extract it when finished.
Code:
http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/
cd ~
tar xvf AMD-APP-SDK*.tar.bz2
8. Install AMD APP SDK and accept defaults
9. Update .bashrc to set the correct paths. Insert the block below somewhere near the top (use the blank space under # for examples on line 3)
Add the following
Code:
# AMD APP SDK
export AMDAPPSDKROOT=/opt/AMDAPPSDK-2.9-1
export AMDAPPSDKSAMPLESROOT=/opt/AMDAPPSDK-2.9-1/
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
export ATISTREAMSDKROOT=$AMDAPPSDKROOT
10. Reboot again to update paths as its easiest.
11. Some required files are not provided by AMD APP SDK, so this step is to download them and put them where they need to go.
Code:
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 .
12. Install some more dependencies for cal++
Code:
apt-get install cmake libboost-all-dev
13. Download cal++ from here (about 90kb). Store it in your home folder.
Code:
http://sourceforge.net/projects/calpp/files/latest/download
14. Extract cal++ and go into the folder created.
Code:
cd ~
tar xvf cal*.tar.gz
cd calpp-0.90
15. Nano the CMakeLists.txt file. Change line 18,19 and 20 to match those below. When changes are finished, save and exit.
Code:
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" )
16. Time to build and install cal++. Run the following from within the calpp-0.90 folder. Should be ~/calpp-0.90/. Will have warnings but it will finish.
Code:
cmake .
make
make install
17. Checkout and then build pyrit
Code:
cd ~
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
cd pyrit_svn/pyrit/
python setup.py build
python setup.py install
18. Move into the cpyrit_calpp folder
Code:
cd ~/pyrit_svn/cpyrit_calpp/
19. Edit line 28 and then line 41 to match those shown below. Once changes are made, save and exit.
Code:
nano +28 setup.py
Line 28 should read
VERSION = '0.4.1-dev'
Line 41 should read
CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))
20. Build and install cpyrit_calpp
Code:
python setup.py build
python setup.py install
21. List pyrit cores and benchmark. You should see your cal++ device in pyrit list_cores
Code:
pyrit list_cores
pyrit benchmark