Owlglass

Pentest - Password Cracking

Password Cracking

Hashcat

Sample bash script to derive a wordlist from a known base word:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Starting word (krakencorp)
base_word="krakencorp"

# Output file to save the generated passwords
output_file="crackedpasswords.txt"

# Clear the output file if it exists
> "$output_file"

# Loop over all the rules in /usr/share/hashcat/rules/
for rule in /usr/share/hashcat/rules/*.rule; do
    # Apply each rule and append the result to crackedpasswords.txt
    echo -n "$base_word" | hashcat --stdout -r "$rule" | grep -E '^.{11}$' >> "$output_file"
done

echo "Password generation complete. Check $output_file."

Utilities

List Generation