[Hashcat]基於GTX970顯示卡構建Kali系統的Hashcat環境
2016年01月
1 Pre-Env
1.1 Update Kali
Add Repo.
vi /etc/apt/sources.list
aliyun
Update
apt-get update
apt-get dist-upgrade # 700MB+ very long
reboot
1.2 Download
cuda_7.0.28_linux.run # 1.0GB+very long long long NVIDIA_Linux-x86_64-346.59.run # 70.1MB cudaHashcat-2.01.7z # 89.5MB
1.3 Pre-install
apt-get install linux-headers-3.18.0-kali3-amd64
apt-get install freeglut3-dev libxmu-dev
shutdown -h now
1.4 Other
Motherboard: Plugin GTX970 WARNING BIOS: Disable Integrated Network Card
2 Nvidia Driver
2.1 Pre-Setup
Ctrl+Alt+F1
modprobe -r nouveau
/etc/init.d/gdm3 stop
2.2 Install
./NVIDIA-Linux-x86_64-346.59.run
NOTE: Do NOT run the nvidia-xconfig
reboot
3 CUDA Toolkit
3.1 Install
./cuda_7.0.28_linux.run
- Accept the EULA
- Select yes to unsupported configuration
- No to graphics driver
- Yes to the OpenGL libraries
- Yes to the toolkit
- Accept default location
- Yes to symbolic link
- Yes to samples
- Yes to default samples location
3.2 Setup
vi /etc/ld.so.conf
Add the following line to the end of the file
/usr/local/cuda-7.0/lib64
Execute the following to apply our changes:
ldconfig
3.3 TEST CUDA
Build the NVIDIA samples so we can confirm CUDA is working
cd /root/NVIDIA_CUDA-7.0_Samples/
make
NOTE: This step takes quite a bit of time to complete.
cd 1_Utilities/deviceQuery
Execute the following to test
./deviceQuery
NOTE: If Black Screen,Please try “nvidia-xconfig”.
4 Install oclHashcat for CUDA
4.1 Update GLIBC
Add repo.
deb http://ftp.debian.org/debian sid main
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg
4.2 Download & Unpack
wget http://hashcat.net/files/cudaHashcat-2.01.7z
7z x cudaHashcat-2.01.7z
4.3 Test
cd cudaHashcat-2.01.7z
Execute the following to test cudaHashcat
./cudaExample0.sh
./cudaExample400.sh
./cudaExample500.sh