Online tool: https://hashes.com/en/tools/hash_identifier
CrackStation uses massive pre-computed lookup tables to crack password hashes
# unshadow use also GECOS information (field containing information about the user).
unshadow passwd.txt shadow.txt > unshadowed.txt
# sha512crypt [$6$] - With wordlist
hashcat -a 0 -m 1800 hash.txt wordlist.txt
# sha512crypt [$6$] - With wordlist and rules
hashcat -a 0 -m 1800 hash.txt wordlist.txt -r /usr/share/hashcat/rules/best64.rulehashcat -a 0 -m 1000 hash.txt wordlist.txt -r /usr/share/hashcat/rules/best64.rulehydra -L user.txt -P pass.txt <ip> <protocol> hydra -L users.txt -P password.txt -vV example.com http-get /basic # Basic AuthenticationNote:
/basicand/basic/are different… so pay attention to set the correct path
hydra -L <users_file> -P <password_file> <url> http[s]-[post|get]-form \ "index.php:param1=value1¶m2=value2&user=^USER^&pwd=^PASS^¶mn=valn:[F|S]=messageshowed"We need to use keepass2john script to format the
database file.
keepass2john Database.kdbx > keepass.hash
cat keepass.hash
# Database:$keepass$*2*60*0*d74e29a727e9338717d27a7d457ba[...]The script adds filename to the beginning of the hash to use it as the username. Because KeePass uses only a master password and no username, we need to delete the filename string part. You can use a text editor.
cat keepass.hash
# $keepass$*2*60*0*d74e29a727e9338717d27a7d457ba[...]Crack the hash
hashcat -m 13400 keepass.hash wordlist.txtWe need to use ssh2john script to format the ssh
key file.
ssh2john id_rsa > ssh.hash
cat ssh.hash
id_rsa:$sshng$6$16$7059e78a8d3764ea[...]The script adds filename to the beginning of the hash to use it as the username. We’ll remove the filename string part. You can use a text editor.
Crack the hash
john --wordlist=wordlist.txt ssh.hashGenerate wordlist based on rules
Online tool: https://weakpass.com/generate
Hashcat:
hashcat -r best66.rule --stdout file.txtMore info about rules:
# Generate words of length 4 with only characters a, b, and c
crunch 4 4 abc -o wordlist.txt
# Generate words of length 6 to 8 with only characters a, b, c, 1, 2, 3
crunch 6 8 abc123 -o wordlist.txt
# Pattern
# @ = Lowercase letters (a–z)
# , = Uppercase letters (A–Z)
# % = Numbers (0–9)
# ^ = Symbols
crunch 6 6 -t a@^^%% -o mix.txt