Waiting Ati-driver fix, I describe the way to install Ati driver, Ati Stream sdk 2.3 support opencl 1.1, CAL++ and module for pyrit on Backtrack 4, R1, R2.
Requirement
Ati Driver
ATI Stream SDK built for 32-bit Linux®
CAL++
Download all in home folder and open terminal in that location.
Commands
-Install Ati Driver
Don't change anything and click "continue""agree""continue"Code:chmod +x ati-driver-installer-11-?-x86.x86_64.run ./ati-driver-installer-11-?-x86.x86_64.run
Verify if the driver is rightly installed
If not foundCode:aticonfig --initial=check
RebootCode:aticonfig --initial
Installation complete
-Installation Ati Stream SDK
Before continuing check if your video card supports Stream and Opencl
System Requirements
Scroll down to the bottom of file and changeCode:tar -xvzf ati-stream-sdk-v2.3-lnx32.tgz cp -r ati-stream-sdk-v2.3-lnx32 / nano ~/.bashrc
inCode:export LD_LIBRARY_PATH=opt/oracle/instantclient_10_2
and addCode:export LD_LIBRARY_PATH
Save and close nano.Code:ATISTREAMSDKROOT=/ati-stream-sdk-v2.3-lnx32 ATISTREAMSDKSAMPLESROOT=/ati-stream-sdk-v2.3-lnx32/samples LD_LIBRARY_PATH=opt/oracle/instantclient_10_2:$ATISTREAMSDKROOT/lib/x86 export ATISTREAMSDKROOT export ATISTREAMSDKSAMPLESROOT
Then
Reboot or logout and login.Code:cd / tar xvfz /ati-stream-sdk-v2.3-lnx32/icd-registration.tgz
Installation complete
-CAL++
Installation completeCode:cd apt-get install libboost-dev cmake tar xvfz calpp-*.tar.gz cd calpp-* cmake . make make install
-CAL++ version of Pyrit
if you have some errors can remove the installed files withCode:apt-get purge pyrit svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn cd pyrit_svn/pyrit ./setup.py build ./setup.py install --record ~/pyrit.txt cd ../cpyrit_calpp ./setup.py build ./setup.py install --record ~/pyritcalpp.txt
The procedure is identical to compile Opencl version of pyrit, but CAL++ is faster than Opencl version, especially with the series hd5000.Code:cat ~/pyrit.txt | xargs rm -rf cat ~/pyritcalpp.txt | xargs rm -rf
Check the video card is used by pyrit
A quick test to make sure everything is okCode:root@bt:~#pyrit list_cores Pyrit 0.3.1-dev (svn r277) (C) 2008-2010 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 'ATI RV770'' #2: 'CPU-Core (SSE2)'
Installation completeCode:root@bt:~#pyrit selftest Pyrit 0.3.1-dev (svn r277) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+ Cores incorporated in the test: #1: 'CAL++ Device #1 'ATI RV770'' #2: 'CPU-Core (SSE2)' #3: 'Network-Clients' Running selftest... All results verified. Your installation seems OK.
-GPU performance is reduced on system with Hyper Threading
NVidia/ATI GPU driver requires at least one real core per GPU for efficient work. With HT enabled, the driver needs to fight for CPU cycles with CPU computing core. This leads to GPU starvation and decreased performance. The problem can be solved by reducing number of running CPU-cores: Open '.pyrit/config' and set 'limit_ncpus' to the number of physical CPU-cores.
-Piryt benchmark(hd4870)
--CAL++
--OPENCLCode:root@Free:~# pyrit benchmark Pyrit 0.4.0-dev (svn r288) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+ Running benchmark (24097.4 PMKs/s)... / Computed 24097.38 PMKs/s total. #1: 'CAL++ Device #1 'ATI RV770'': 24832.1 PMKs/s (RTT 2.8) #2: 'CPU-Core (SSE2)': 785.3 PMKs/s (RTT 3.0) #3: 'Network-Clients': 0.0 PMKs/s (RTT 0.0)
-OclhashcatCode:root@Free:~# pyrit benchmark Pyrit 0.4.0-dev (svn r288) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com This code is distributed under the GNU General Public License v3+ Running benchmark (19473.1 PMKs/s)... \ Computed 19473.06 PMKs/s total. #1: 'OpenCL-Device 'ATI RV770'': 19847.4 PMKs/s (RTT 2.8) #2: 'CPU-Core (SSE2)': 790.4 PMKs/s (RTT 3.0) #3: 'Network-Clients': 0.0 PMKs/s (RTT 0.0)
HTHCode:root@bt:/pentest/passwords/oclhashcat# ./oclHashcat32.bin -o ~/found --output-format=2 -n 80 --gpu-loops=1024 -m 1000 ~/samdump ?l?l?l?l ?l?l?l?l oclHashcat v0.23 starting... Digests: 1 entries, 1 unique Bitmaps: 8 bits, 256 entries, 0x000000ff mask, 1024 bytes Platforms: 1 Platform #1: Advanced Micro Devices, Inc., OpenCL 1.1 ATI-Stream-v2.2 (302) (1 matched) Device #1: ATI RV770, 256MB, 0Mhz, 10MCU Device #1: Kernel kernels/4098/m1000.32.ATI RV770.kernel (238440 bytes) [s]tatus [p]ause [r]esume [h]elp [q]uit => s Threads...: 1 Mode.Left.: Mask '?l?l?l?l' (456976) Mode.Right: Mask '?l?l?l?l' (456976) Speed.GPU1: 1426.9M/s (running) Speed.GPU*: 1426.9M/s Recovered.: 0/1 Digests, 0/1 Salts Progress..: 5190451200/208827064576 (2.49%) Running...: 3 secs Estimated.: 2 mins, 22 secs





