Create a gist now

Instantly share code, notes, and snippets.

Get an AWS EC2 p2.xlarge ready for hashcat MD5 cracking!
ssh -i keyfile.pem ubuntu@<ip>

sudo apt -y update && sudo apt -y upgrade
sudo apt install -y p7zip-full build-essential linux-image-extra-virtual linux-source

echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u

# to activate latest kernel
sudo reboot 

ssh -i keyfile.pem ubuntu@<ip>
sudo apt install linux-headers-`uname -r`

sudo mkdir -p /data
sudo chown ubuntu /data
cd /data

# latest driver here:
chmod 755 NV*.run
sudo ./NV*.run
# accept license, install, enter, enter

lsmod | grep nvidia
# if not loaded, do extra reboot

# optimizations from AWS blog
sudo nvidia-smi -pm 1
sudo nvidia-smi -acp 0
sudo nvidia-smi --auto-boost-permission=0
sudo nvidia-smi -ac 2505,875

# a high quality compact wordlist
bzip2 -d phpbb.txt.bz2

7za x hashcat-3.20.7z
ln -s hashcat-3.20 hashcat
cd hashcat
ln -s hashcat64.bin hc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment