WordList Creation
From TomSchaefer.org Wiki
Wordlist Menu Tool for Backtrack 4 final
I get so sick of trying to remember all the shell commands to create wordlists so I have coded up a bash script which tries to make the process as simple as possible, if anyone is interested. I doubt anyone will want it but I decided to release it anyway.
You can check it out here: http://tools.question-defense.com/wordlist_tools.sh
---------------- W O R D L I S T T O O L S M E N U --------------------
| V.2 | | By Purehate |
| 1. Run the entire otimization script |
| 2. Sort a wordlist in alphabetical order |
| 3. Sort a wordlist in reverse alphabetical order |
| 4. Remove all duplicates form a wordlist |
| 5. Remove all whitespace from the begining of each line |
| 6. Remove all non ascii chars from a wordlist |
| 7. Remove all comments from a wordlist (except first line) |
| 8. Specify a min and max password length in a wordlist |
| 9. Manipulate a wordlist with the --rules fuction of john the ripper |
| 10. L33tify a wordlist |
| 11. Delete all lines that match a specific pattern from a file |
| 12. Create a wordlist with crunch |
| 13. Create a wordlist with wyd.pl |
| 14. Create a wordlist wordlist with CUPP |
| 15. Create a wordlist based on phonenumbers |
| 16. Combine a directory full of files into one big list |
| 17. Split a large text file into smaller files |
| 18. Capitalize the first letter of each line in a file |
| 19. Quit |
Select a operation from the menu:
========================================
SourceCode: File:Wordlist tools-1.txt
========================================
Also<nowiki>
#!/bin/bash
# Number of Passwords to generate, default 1,000
if [ "$1" != "" ]; then
num=$1
else
num="1000"
fi
# Length of password, default 7
if [ "$2" != "" ]; then
len=$2
else
len="7"
fi
cat /dev/urandom|tr -dc "a-zA-Z0-9-_\$\?"|fold -w $len|head -n $num
</nowiki>
To use it call it in your shell like this "scriptname num len > /save/list/to/newlist.lst" replace num with how ever many passwords you want to generate. len is the length of the password if you want 5 characters put 5 where len is etc. Then after that is > this tells the script where you want the file to be saved.
If you dont want it to have symbols in the passwords simply remove -_\$\? from the last line.
