├── README.md ├── passgen.cfg └── passgen.sh /README.md: -------------------------------------------------------------------------------- 1 | ### README 2 | 3 | 4 | Password generator through a simple wordlist. 5 | You can use this tool to create a **new wordlist** with **numbers** and **special characters**. 6 | 7 | ### FORMAT TYPE 8 |
9 | wns -> Word + Number + Special Char -> password0! 10 | wsn -> Word + Special Char + Number -> password!0 11 | nws -> Number + Word + Special Char -> 0password! 12 | nsw -> Number + Special Char + Word -> 0!password 13 | snw -> Special Char + Number + Word -> !0password 14 | swn -> Special Char + Word + Number -> !password0 15 |16 | 17 | ### USAGE 18 | 19 | You must to configure the parameters of the file passgen.cfg
22 | ./passgen.sh 23 |24 | or 25 |
26 | ./passgen.sh -i [file input] -o [file output] 27 |28 |
29 | [+] Ready for 367920 passwords 30 | [+] Password format: wns 31 | [+] Password Type: Adamo0! 32 | [+] File output: output.txt 33 | 34 | Press [Enter] key to start or [Ctrl+C] key to stop... 35 | 36 | Started: gio 14 mar 2013, 20.14.19, CET 37 | Stopped: gio 14 mar 2013, 20.14.52, CET 38 |39 | It took a few seconds to generate 367.920 password. Now you can verify the file with the password you just created. 40 |
41 | cat output.txt 42 |43 |
44 | Adamo1970! 45 | Adamo1970@ 46 | Adamo1970$ 47 | Adamo1970% 48 | :: 49 | Adamo2013! 50 | Adamo2013@ 51 | Adamo2013$ 52 | Adamo2013% 53 | :: 54 | Zuckerberg1970! 55 | Zuckerberg1970@ 56 | Zuckerberg1970$ 57 | Zuckerberg1970% 58 | :: 59 | Zuckerberg2013! 60 | Zuckerberg2013@ 61 | Zuckerberg2013$ 62 | Zuckerberg2013% 63 |64 | 65 | ### MD5 WORDLIST 66 | 67 |
68 | cat output.txt | while read word; do echo $word | md5sum | sed "s/ -/:$word/"; done 69 |70 |
71 | c60c5d16ea78a5bffdb6de806a1691a7:Adamo1970! 72 | c3f756875a106300873961571a8f4810:Adamo1970@ 73 | 13f296e5f7427bc9d9f564fd66cba93b:Adamo1970$ 74 | 00bc8d1a13859e8d5c0141555f99867e:Adamo1970. 75 | :: 76 |77 | 78 | ### OTHER 79 | 80 | This script is currently maintained by Gianni 'guelfoweb' Amato, who can be contacted at guelfoweb@gmail.com. Suggestions and criticism are welcome. 81 | 82 | Enjoy! 83 | -------------------------------------------------------------------------------- /passgen.cfg: -------------------------------------------------------------------------------- 1 | ################## PASSGEN CONFIGURATION FILE ################### 2 | 3 | ## PATH TO WORDLIST IN INPUT: 4 | wordlist=/usr/share/dict/italian 5 | 6 | ##---------------------------------------------------------------- 7 | 8 | ## PATH TO NEW WORDLIST IN OUTPUT: 9 | newwordlist=output.txt 10 | 11 | ##---------------------------------------------------------------- 12 | 13 | ## DECLARE NUMBER OF CHARACTERS "min,max": 14 | ## if you set chars=4,6 then passgen select from wordlist words 15 | ## that have a minimum of 4 characters and a maximum of 6. 16 | ## adam | 4 chars : ok 17 | ## albert | 6 chars : ok 18 | ## red | 3 chars : no 19 | ## richard | 7 chars : no 20 | ## range | 5 chars : ok 21 | chars=4,6 22 | 23 | ##---------------------------------------------------------------- 24 | 25 | ## UPPER CASE FOR FIRST CHAR "true or false": 26 | ## if you want the first character uppercase. 27 | ## u=true -> Password 28 | ## u=false -> password 29 | u=true 30 | #u=false 31 | 32 | ##---------------------------------------------------------------- 33 | 34 | ## INTEGER VALUE IN SEQUENCE "from -> to": 35 | ## password0 36 | ## password1 37 | ## :: 38 | ## password9 39 | nstart=0 40 | nend=9 41 | 42 | ##---------------------------------------------------------------- 43 | 44 | ## DECLARE SPECIAL CHAR LIST: 45 | ## password! 46 | specialchar[0]=! 47 | specialchar[1]=@ 48 | specialchar[2]=$ 49 | specialchar[3]=. 50 | #specialchar[4]=% 51 | #specialchar[5]=& 52 | 53 | ##---------------------------------------------------------------- 54 | 55 | ## PASSWORD FORMAT TYPE: 56 | ## Legenda: 57 | ## w = word 58 | ## n = number 59 | ## s = special char 60 | 61 | ## wns -> password1! 62 | ## wsn -> password!1 63 | ## nws -> 1password! 64 | ## swn -> !password1 65 | ## nsw -> 1!password 66 | ## snw -> !1password 67 | 68 | format=wns 69 | #format=wsn 70 | #format=nws 71 | #format=swn 72 | #format=nsw 73 | #format=snw 74 | 75 | ################## END CONFIGURATION ################### 76 | -------------------------------------------------------------------------------- /passgen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Password generator with wordlist 4 | name="Passgen.sh" 5 | ver="0.2.1" 6 | author="Gianni 'guelfoweb' Amato" 7 | 8 | # 9 | # ---------------------------------------------------------------------------- 10 | # "THE BEER-WARE LICENSE" (Revision 42): 11 | # guelfoweb@gmail.com wrote this file. As long as you retain this notice you 12 | # can do whatever you want with this stuff. If we meet some day, and you think 13 | # this stuff is worth it, you can buy me a beer in return Gianni 'guelfoweb' Amato 14 | # ---------------------------------------------------------------------------- 15 | # 16 | 17 | CONFIG="passgen.cfg" 18 | 19 | wordlist=`grep "^wordlist=" $CONFIG | cut -d"=" -f2` 20 | newwordlist=`grep "^newwordlist=" $CONFIG | cut -d"=" -f2` 21 | 22 | usage(){ 23 | echo "$name v.$ver by $author" 24 | echo "https://github.com/guelfoweb/passgen/" 25 | echo 26 | echo "Password generator through a simple wordlist. You can use this tool to create a new wordlist with numbers and special characters." 27 | echo 28 | echo "You must to configure the parameters of the file [passgen.cfg]" 29 | echo 30 | echo "USAGE" 31 | echo " $0" 32 | echo " $0 -i