PASSWORDS
tailoring a password list reduces the search space and represents a significant boost in efficiency for any subsequent password cracking attempts. A smaller, targeted list translates to a faster and more focused attack, optimizing the use of computational resources and increasing the likelihood of a successful breach.
If a web application enforces a password policy, ensure that the wordlist only contains passwords that match the implemented password policy. Otherwise, you'll be wasting valuable time with passwords that users cannot use on the web application, as the password policy does not allow them.
PW POLICY EXAMPLE
Minimum length: 8 characters
Must include:
At least one uppercase letter
At least one lowercase letter
At least one number
CUSTOM PW LIST: METHOD 1
#retrieve a wordlist
root@oco:$ wget https://raw.githubusercontent.com/danielmiessler/SecLists/refs/heads/master/Passwords/darkweb2017-top10000.txt
#match the wordlist to the password policy of minimum 8 characters
root@oco:~$ grep -E '^.{8,}$' darkweb2017-top10000.txt > darkweb2017-minlength.txt
* the regex filter '^.{8,}$' is used to grab only contents that has at least 8 characters
#match the wordlist to the password policy of at least one uppercase letter
root@oco:~$ grep -E '[A-Z]' darkweb2017-minlength.txt > darkweb2017-uppercase.txt
* the regex '[A-Z]' will discard passwords that lacks at least one uppercase letter
#match the wordlist to the password policy of at least one lowercase letter
root@oco:~$ grep -E '[a-z]' darkweb2017-uppercase.txt > darkweb2017-lowercase.txt
* the regex '[a-z]' will discard passwords that lacks at least one lowercase letter
#match the wordlist to the password policy of at least one number
root@oco:~$ grep -E '[0-9]' darkweb2017-lowercase.txt > darkweb2017-number.txt
* the regex '[0-9]' will discard password that lacks at least one number
#count
root@oco:~$ wc darkweb2017-number.txt
89 darkweb2017-number.txtCUSTOM PW LIST: METHOD 2 (ONE-LINER)
CUSTOM PW LIST: METHOD 3 (ONE-LINER)
CUSTOM PW LIST: CUPP
Last updated