Skip to content

Instantly share code, notes, and snippets.

@hotelzululima
Forked from benmanns/hash-setup.sh
Last active August 29, 2015 14:26
Show Gist options
  • Save hotelzululima/2ace05f6a5088396ed9f to your computer and use it in GitHub Desktop.
Save hotelzululima/2ace05f6a5088396ed9f to your computer and use it in GitHub Desktop.
This sets up an Amazon cluster GPU instance for hash cracking with oclHashcat (CUDA). You must use the Ubuntu 12.04.x AMI for HVM. The most recent is Ubuntu Server 12.04.3 LTS for HVM Instances - ami-b93264d0.
sudo apt-get update -y && sudo apt-get upgrade -y
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo apt-get update -y && sudo apt-get install -y nvidia-settings nvidia-current-dev nvidia-modprobe cuda
cat >> ~/.profile <<END
export CUDA_HOME=/usr/local/cuda-5.5
export CUDA_ROOT=/usr/local/cuda-5.5
export LD_LIBRARY_PATH=\${CUDA_HOME}/lib64:/usr/lib/nvidia-current/
export PATH=\${CUDA_HOME}/bin:\${PATH}
END
source ~/.profile
cuda-install-samples-5.5.sh ~
cd ~/NVIDIA_CUDA-5.5_Samples/1_Utilities/deviceQuery
make
./deviceQuery
cd ~
wget http://hashcat.net/files/oclHashcat-plus-0.15.7z
sudo apt-get install p7zip-full
7z x oclHashcat-plus-0.15.7z
cd oclHashcat-plus-0.15
./cudaHashcat-plus64.bin --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment