Difference between revisions of "Hashcat"

From RHS Wiki
Jump to navigation Jump to search
Tag: visualeditor
Tag: visualeditor
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Examples==
 
==Examples==
 +
 +
===Dictionary and rules===
 +
<syntaxhighlight lang="bash">
 +
hashcat -m 0 dict.txt --status -w 3 -o output.txt -r rules.rule
 +
</syntaxhighlight>
 +
 +
===Force CPU use as well===
 +
<syntaxhighlight lang="bash">
 +
hashcat -b -m 3200 -w 4 -D 1,2,3 --force
 +
hashcat -m 3200 -a 3 -i --increment-min=4 --increment-max=10 bcrypt ?a?a?a?a?a?a?a?a?a?a -w 4 --force -D 1,2,3
 +
</syntaxhighlight>
  
 
===Kerberoasting===
 
===Kerberoasting===
Line 19: Line 30:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
hashcat -m 3200 -a 3 -i --increment-min=1 --increment-max=10 bcrypt_hashes.txt ?a?a?a?a?a?a?a?a?a?a  
 
hashcat -m 3200 -a 3 -i --increment-min=1 --increment-max=10 bcrypt_hashes.txt ?a?a?a?a?a?a?a?a?a?a  
 +
</syntaxhighlight>
 +
 +
==Install Latest NVIDIA Driver==
 +
<syntaxhighlight lang="bash">
 +
#!/bin/bash
 +
echo "Checking for CUDA and installing."
 +
# Check for CUDA and try to install.
 +
if ! dpkg-query -W cuda-8-0; then
 +
  # The 16.04 installer works with 16.10.
 +
  curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
 +
  dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
 +
  apt-get update
 +
  apt-get install cuda-8-0 -y
 +
fi
 +
# Enable persistence mode
 +
nvidia-smi -pm 1
 +
</syntaxhighlight>
 +
 +
==Install Hashcat==
 +
<syntaxhighlight lang="bash">
 +
wget https://hashcat.net/files/hashcat-4.1.0.7z
 +
7z x hashcat-4.1.0.7z
 +
git clone https://github.com/praetorian-inc/Hob0Rules
 
</syntaxhighlight>
 
</syntaxhighlight>
 
[[Category:Cracking]]
 
[[Category:Cracking]]
 
[[Category:Hacking]]
 
[[Category:Hacking]]

Latest revision as of 14:45, 3 March 2020

Examples[edit]

Dictionary and rules[edit]

hashcat -m 0 dict.txt --status -w 3 -o output.txt -r rules.rule

Force CPU use as well[edit]

hashcat -b -m 3200 -w 4 -D 1,2,3 --force
hashcat -m 3200 -a 3 -i --increment-min=4 --increment-max=10 bcrypt ?a?a?a?a?a?a?a?a?a?a -w 4 --force -D 1,2,3

Kerberoasting[edit]

hashcat -m 13100 -a 3 -O -w 4 --session kerberoasting_USA_bruteforce --increment hashes_USA_Kerberoasting.txt ?a?a?a?a?a?a?a?a?

Django[edit]

hashcat -m 10000 ~/django_hashes.txt ~/rockyou.txt

Results[edit]

hashcat -m 10000 --show ~/django_hashes.txt

bcrypt[edit]

hashcat -m 3200 -a 3 -i --increment-min=1 --increment-max=10 bcrypt_hashes.txt ?a?a?a?a?a?a?a?a?a?a

Install Latest NVIDIA Driver[edit]

#!/bin/bash
echo "Checking for CUDA and installing."
# Check for CUDA and try to install.
if ! dpkg-query -W cuda-8-0; then
  # The 16.04 installer works with 16.10.
  curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
  dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
  apt-get update
  apt-get install cuda-8-0 -y
fi
# Enable persistence mode
nvidia-smi -pm 1

Install Hashcat[edit]

wget https://hashcat.net/files/hashcat-4.1.0.7z
7z x hashcat-4.1.0.7z
git clone https://github.com/praetorian-inc/Hob0Rules