Password Attacks
Lists of default passwords
Password Lists
Create custom lists
cewl -w list.txt -d 5 -m 5 http://company.com-w will write the contents to a file. In this case, list.txt -m 5 gathers strings (words) that are 5 characters or more -d 5 is the depth level of web crawling/spidering (default 2)
Username Generator
git clone https://github.com/therodri2/username_generator.gitKeyspace Technique
crunch 2 2 01234abcd -o crunch.txt
crunch 6 6 -t pass%%1: Creates a wordlist containing all possible combinations of 2 characters, including 0-4 and a-d 2: Adds two numbers to word "pass"
@ - lower case alpha characters , - upper case alpha characters % - numeric characters ^ - special characters including space
CUPP InteractiveMode: $ git clone https://github.com/Mebus/cupp.git $ python3 cupp.py
Identify hash: $ hashid f806fc5a2a0d5ba2471600758452799c $ hash-identifier f806fc5a2a0d5ba2471600758452799c
Crack Hashes offline: $ hashcat -a 0 -m 0 f806fc5a2a0d5ba2471600758452799c /usr/share/wordlists/rockyou.txt --show
-a 0 (Dictionary Attack) -m 0 (MD5 hash)
$ hashcat -a 3 ?d?d?d?d --stdout -a 3 (Brute-Force Attack) ?d?d?d?d (4 digits)
hashcat -a 3 ?d?d?d?d e48e13207341b6bffb7fb1622282247b --stdout
Rule-Based Attacks with John: $ john --wordlist=/tmp/list.txt --rules=best64 --stdout > /tmp/test.txt --wordlist= to specify the wordlist or dictionary file --rules to specify which rule or rules to use --stdout to print the output to the terminal
$ cat /etc/john/john.conf|grep "List.Rules:" | cut -d"." -f3 | cut -d":" -f2 | cut -d"]" -f1 | awk NF ... to print all rules
Add custom rules to /etc/john/john.conf [List.Rules:THM-Password-Attacks]
Az"[0-9]" ^[!@#$]
"[0-9]" append a single digit (from 0 to 9) to the end of the word. For two digits, we can add "[0-9][0-9]" and so on.
^[!@#$] add a special character at the beginning of each word. ^ means the beginning of the line/word. Note, changing ^ to $ will append the special characters to the end of the line/word.
Attack Services with Hydra
Outlook web access (OWA) portal tools
https://github.com/byt3bl33d3r/SprayingToolkit (atomizer.py)
https://github.com/dafthack/MailSniper
SMB tools
Metasploit (auxiliary/scanner/smb/smb_login)
Last updated