[Hashcat]基于GTX970显卡构建Kali系统的Hashcat环境

2016年01月

1 Pre-Env

1.1 Update Kali

Add Repo.

vi /etc/apt/sources.list

aliyun

deb http://mirrors.aliyun.com/kali kali main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free

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
NOTE:If Black Screen,Please Pree Ctrl+Alt+F1 and go on.

3 CUDA Toolkit

3.1 Install

./cuda_7.0.28_linux.run

  1. Accept the EULA
  2. Select yes to unsupported configuration
  3. No to graphics driver
  4. Yes to the OpenGL libraries
  5. Yes to the toolkit
  6. Accept default location
  7. Yes to symbolic link
  8. Yes to samples
  9. 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

你可能感兴趣的:(网络安全)