In attesa che venga sistemato pacchetto ati-driver nei repository descrivo la procedura per installare Driver Ati, Ati Stream sdk 2.3 con openCL 1.1 e CAL++ sulla Backtrack 4, R1, R2.
Requisiti
Ati Driver
ATI Stream SDK built for 32-bit Linux®
CAL++
Scaricate tutto in una cartella o sul desktop, dove volete, e aprite il terminale in tale posizione.
Procedimento
-Installazione Ati Driver
Inserire nel terminale
Code:
chmod +x ati-driver-installer-11-?-x86.x86_64.run
./ati-driver-installer-11-?-x86.x86_64.run
non modificare alcuna impostazione e cliccare "continue""agree""continue"
Al termine verificare che i driver appena installati siano presenti nei file di configurazione
Code:
aticonfig --initial=check
Se NON vengono trovati
Code:
aticonfig --initial
Riavviare
Installazione completata
-Installazione ATI Stream SDK
Prima di procedere verificate se la vostra scheda video supporta Stream e Opencl
System Requirements
Code:
tar -xvzf ati-stream-sdk-v2.3-lnx32.tgz
cp -r ati-stream-sdk-v2.3-lnx32 /
nano ~/.bashrc
Scorrere fino in fondo e modificare
Code:
export LD_LIBRARY_PATH=opt/oracle/instantclient_10_2
in
Code:
export LD_LIBRARY_PATH
e aggiungere
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
Salvare e chiudere nano.
ancora da terminale
Code:
cd /
tar xvfz /ati-stream-sdk-v2.3-lnx32/icd-registration.tgz
Riavviare o effettuare un logout e login.
Installazione completata
-CAL++
Code:
cd
apt-get install libboost-dev cmake
tar xvfz calpp-*.tar.gz
cd calpp-*
cmake .
make
make install
Installazione completata
-Pyrit con supporto a CAL++
Code:
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
In caso di errori potete eliminare i file installati con
Code:
cat ~/pyrit.txt | xargs rm -rf
cat ~/pyritcalpp.txt | xargs rm -rf
La procedura è identica per compilare pyrit con supporto per opencl, ma CAL++ risulta più performante soprattutto con la serie HD 5000.
Verificate se la scheda video viene riconosciuta con
Code:
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)'
un breve test per essere strasicuri che sia tutto ok
Code:
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.
Installazione completata
-Pyrit bechmark (HD4870)
--CAL++
Code:
root@bt:~/pyrit_svn/cpyrit_calpp# pyrit benchmark
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+
Running benchmark (24340.4 PMKs/s)... -
Computed 24340.41 PMKs/s total.
#1: 'CAL++ Device #1 'ATI RV770'': 24825.2 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 759.9 PMKs/s (RTT 3.0)
--OPENCL
Code:
root@bt:~/pyrit_svn/cpyrit_opencl# pyrit benchmark
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+
Running benchmark (17673.6 PMKs/s)... |
Computed 17673.62 PMKs/s total.
#1: 'OpenCL-Device 'ATI RV770'': 19407.0 PMKs/s (RTT 2.4)
#2: 'CPU-Core (SSE2)': 199.1 PMKs/s (RTT 3.2)
-Oclhashcat
Code:
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
HTH