├── README.md └── weakpass_generator.py /README.md: -------------------------------------------------------------------------------- 1 | # weakpass_generator 2 | generates weak passwords based on current date 3 | 4 | 5 | http://www.weakpasswords.net 6 | 7 | 8 | run with 9 | 10 | ``` 11 | python3 weakpass_generator.py 12 | ``` 13 | -------------------------------------------------------------------------------- /weakpass_generator.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # 2020 - @nyxgeek - TrustedSec 3 | 4 | # generate weak passwords based on current date 5 | 6 | import datetime 7 | from datetime import datetime, timedelta 8 | 9 | #Define our Months and Keywords for Prefixes 10 | monthDictionary = {} 11 | monthDictionary["January"] = ["January", "Winter"] 12 | monthDictionary["February"] = ["February", "Winter"] 13 | monthDictionary["March"] = ["March", "Winter", "Spring", "Springishere", "Springtime"] 14 | monthDictionary["April"] = ["April", "Spring", "Springishere", "Springtime"] 15 | monthDictionary["May"] = ["May", "Spring", "Springishere", "Springtime"] 16 | monthDictionary["June"] = ["June", "Summer", "Summertime"] 17 | monthDictionary["July"] = ["July", "Summer", "Summertime"] 18 | monthDictionary["August"] = ["August", "Summer", "Fall", "Autumn"] 19 | monthDictionary["September"] = ["September", "Fall", "Autumn"] 20 | monthDictionary["October"] = ["October", "Fall", "Autumn", "Winter"] 21 | monthDictionary["November"] = ["November", "Fall", "Autumn", "Winter", "Thanksgiving"] 22 | monthDictionary["December"] = ["December", "Winter", "Christmas"] 23 | 24 | standardList = ["password", "Password", "Password1", "Password1!", "Password123", "Password123!", "P@$$w0rd"] 25 | 26 | OUTPUT_LIST = [] 27 | 28 | 29 | def create_passwords(tempdate): 30 | global OUTPUT_LIST 31 | 32 | for password in standardList: 33 | #print(password) 34 | OUTPUT_LIST.append("%s" % password) 35 | 36 | 37 | year_short=tempdate.strftime("%y") 38 | year_long=tempdate.strftime("%Y") 39 | current_month=tempdate.strftime("%B") 40 | 41 | SUFFIX_ARRAY = [ year_short , year_long, "@"+year_short, "@"+year_short+"!", "@"+year_long, "@"+year_long+"!", year_short+"!", year_long+"!", "1", "123"] 42 | 43 | for month_prefix in monthDictionary[current_month]: 44 | for password_suffix in SUFFIX_ARRAY: 45 | #print("%s%s" % (month_prefix, password_suffix) ) 46 | OUTPUT_LIST.append("%s%s" % (month_prefix, password_suffix)) 47 | 48 | 49 | for numberofdays in range(1,90): 50 | tempdate = datetime.now() - timedelta(days=numberofdays) 51 | create_passwords(tempdate) 52 | 53 | 54 | #print the unique ones 55 | print("Here are the results:") 56 | 57 | 58 | OUTPUT_LIST.sort() 59 | output_set = sorted(set(OUTPUT_LIST)) 60 | 61 | #open file to write to 62 | outfile = open("latest_passwords.txt", "w") 63 | 64 | 65 | #iterate through our sorted and uniqued list 66 | for candidate_password in output_set: 67 | print(candidate_password) 68 | outfile.write(candidate_password+"\n") 69 | 70 | 71 | outfile.write("\n\n@nyxgeek - TrustedSec - 2020.02.20\n") 72 | 73 | #close our file now 74 | outfile.close() 75 | 76 | --------------------------------------------------------------------------------