2020-07-28 11:11:27 +03:00
|
|
|
# encoding: utf-8
|
|
|
|
|
2020-07-28 17:47:25 +03:00
|
|
|
## Copyright © 2020 Чечкенёв Андрей
|
|
|
|
##
|
|
|
|
## This program is free software: you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation, either version 2 of the License, or
|
|
|
|
## (at your option) any later version.
|
|
|
|
##
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
##
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2020-07-30 17:25:40 +03:00
|
|
|
def lowstr(string):
|
|
|
|
return string.lower()
|
|
|
|
def uppstr(string):
|
|
|
|
return string.upper()
|
|
|
|
def capstr(string):
|
|
|
|
return string.capitalize()
|
|
|
|
|
2020-07-28 11:11:27 +03:00
|
|
|
print("")
|
2020-07-30 17:25:40 +03:00
|
|
|
print("************ PASSWORD DICTIONARY GENERATOR *************")
|
|
|
|
print("********* by AndreyCh (DarkCat09/CodePicker13) *********")
|
|
|
|
print("*** Licensed by GNU General Public License version 2 ***")
|
2020-07-28 11:11:27 +03:00
|
|
|
print("")
|
|
|
|
|
2020-07-28 17:47:25 +03:00
|
|
|
target_personal_data = [
|
|
|
|
{
|
|
|
|
"name": input("Target's name: "),
|
2020-07-30 17:25:40 +03:00
|
|
|
"secondname": input("Target's second name: "),
|
2020-07-28 17:47:25 +03:00
|
|
|
"lastname": input("Target's last name: "),
|
|
|
|
"nickname": input("Target's nickname: "),
|
|
|
|
"birth": input("Target's birthday, DDMMYYYY: ")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": input("Spouse's name: "),
|
2020-07-30 17:25:40 +03:00
|
|
|
"secondname": input("Spouse's second name: "),
|
2020-07-28 17:47:25 +03:00
|
|
|
"lastname": input("Spouse's last name: "),
|
|
|
|
"nickname": input("Spouse's nickname: "),
|
|
|
|
"birth": input("Spouse's birthday, DDMMYYYY: ")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": input("Child's name: "),
|
2020-07-30 17:25:40 +03:00
|
|
|
"secondname": input("Child's second name: "),
|
2020-07-28 17:47:25 +03:00
|
|
|
"lastname": input("Child's last name: "),
|
|
|
|
"nickname": input("Child's nickname: "),
|
|
|
|
"birth": input("Child's birthday, DDMMYYYY: ")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": input("Pet's name: "),
|
2020-07-30 17:25:40 +03:00
|
|
|
"secondname": input("Pet's second name: "),
|
2020-07-28 17:47:25 +03:00
|
|
|
"lastname": input("Pet's last name: "),
|
|
|
|
"birth": input("Pet's birthday, DDMMYYYY: ")
|
|
|
|
},
|
|
|
|
input("First target's phone number, +X 9YYYYYYYYY: "),
|
|
|
|
input("Second target's phone number, +X 9YYYYYYYYY: "),
|
|
|
|
input("Date of password setting, MMYYYY: ")
|
2020-07-28 11:11:27 +03:00
|
|
|
]
|
2020-07-30 17:25:40 +03:00
|
|
|
try:
|
|
|
|
rus_locale = bool(int(input("Is target using russian locale? (1,y=yes;0,n=no) ").replace("y", "1").replace("n", "0")))
|
|
|
|
except ValueError:
|
|
|
|
print("Incorrect value. Setting to \"No\".")
|
|
|
|
rus_locale = bool(0)
|
2020-07-28 11:11:27 +03:00
|
|
|
print("")
|
|
|
|
|
2020-09-06 16:50:25 +03:00
|
|
|
#old_strs = []
|
2020-07-30 17:25:40 +03:00
|
|
|
join_signs = ["", "_", "-", "&", "%", "+", "*", "#", "@", "$"]
|
2020-07-28 17:47:25 +03:00
|
|
|
dicdata = [
|
|
|
|
"",
|
2020-07-30 17:25:40 +03:00
|
|
|
target_personal_data[0]["name"], target_personal_data[0]["secondname"], target_personal_data[0]["lastname"], target_personal_data[0]["nickname"],
|
2020-07-28 17:47:25 +03:00
|
|
|
target_personal_data[0]["birth"][0:2], target_personal_data[0]["birth"][2:4], target_personal_data[0]["birth"][4:8],
|
2020-07-30 17:25:40 +03:00
|
|
|
target_personal_data[1]["name"], target_personal_data[1]["secondname"], target_personal_data[1]["lastname"], target_personal_data[1]["nickname"],
|
2020-07-28 17:47:25 +03:00
|
|
|
target_personal_data[1]["birth"][0:2], target_personal_data[1]["birth"][2:4], target_personal_data[1]["birth"][4:8],
|
2020-07-30 17:25:40 +03:00
|
|
|
target_personal_data[2]["name"], target_personal_data[2]["secondname"], target_personal_data[2]["lastname"], target_personal_data[2]["nickname"],
|
2020-07-28 17:47:25 +03:00
|
|
|
target_personal_data[2]["birth"][0:2], target_personal_data[2]["birth"][2:4], target_personal_data[2]["birth"][4:8],
|
2020-07-30 17:25:40 +03:00
|
|
|
target_personal_data[3]["name"], target_personal_data[3]["secondname"], target_personal_data[3]["lastname"],
|
2020-07-28 17:47:25 +03:00
|
|
|
target_personal_data[3]["birth"][0:2], target_personal_data[3]["birth"][2:4], target_personal_data[3]["birth"][4:8],
|
|
|
|
target_personal_data[4][3:], target_personal_data[4][1:2] + target_personal_data[4][3:],
|
|
|
|
target_personal_data[5][3:], target_personal_data[5][1:2] + target_personal_data[5][3:]
|
|
|
|
]
|
2020-07-30 17:25:40 +03:00
|
|
|
data_functions = [lowstr, uppstr, capstr]
|
2020-09-06 16:50:25 +03:00
|
|
|
same_funcs_were = False # Did the same data-functions were?
|
2020-07-28 11:11:27 +03:00
|
|
|
dicfile = open("dictionary.txt", "wt", encoding="utf-8")
|
|
|
|
|
2020-07-30 17:25:40 +03:00
|
|
|
try:
|
|
|
|
for i in range(len(dicdata)-1):
|
|
|
|
for j in range(len(dicdata)-1):
|
|
|
|
for k in range(len(dicdata)-1):
|
|
|
|
for l in range(len(dicdata)-1):
|
|
|
|
if not ((dicdata[i] + dicdata[j] + dicdata[k] + dicdata[l]) == ""):
|
|
|
|
for dfunc1 in data_functions:
|
2020-09-06 16:50:25 +03:00
|
|
|
same_funcs_were = False
|
2020-07-30 17:25:40 +03:00
|
|
|
for dfunc2 in data_functions:
|
|
|
|
for dfunc3 in data_functions:
|
|
|
|
for dfunc4 in data_functions:
|
2020-09-06 16:50:25 +03:00
|
|
|
if same_funcs_were:
|
|
|
|
continue
|
|
|
|
elif dfunc1 == dfunc2 and \
|
|
|
|
dfunc2 == dfunc3 and \
|
|
|
|
dfunc3 == dfunc4 and \
|
|
|
|
not same_funcs_were:
|
|
|
|
same_funcs_were = True
|
2020-07-30 17:25:40 +03:00
|
|
|
for jsign1 in join_signs:
|
|
|
|
for jsign2 in join_signs:
|
|
|
|
for jsign3 in join_signs:
|
2020-09-06 16:50:25 +03:00
|
|
|
|
2020-07-30 17:25:40 +03:00
|
|
|
result_string = \
|
|
|
|
dfunc1(dicdata[i]) + jsign1 + \
|
|
|
|
dfunc2(dicdata[j]) + jsign2 + \
|
|
|
|
dfunc3(dicdata[k]) + jsign3 + \
|
|
|
|
dfunc4(dicdata[l])
|
2020-09-06 16:50:25 +03:00
|
|
|
|
|
|
|
print(result_string)
|
|
|
|
dicfile.write(result_string + "\n")
|
|
|
|
|
|
|
|
## if dfunc1 == dfunc2 and \
|
|
|
|
## dfunc2 == dfunc3 and \
|
|
|
|
## dfunc3 == dfunc4:
|
|
|
|
## if not same_funcs_were:
|
|
|
|
## result_string = \
|
|
|
|
## dfunc1(dicdata[i]) + jsign1 + \
|
|
|
|
## dfunc2(dicdata[j]) + jsign2 + \
|
|
|
|
## dfunc3(dicdata[k]) + jsign3 + \
|
|
|
|
## dfunc4(dicdata[l])
|
|
|
|
##
|
|
|
|
## print(result_string)
|
|
|
|
## dicfile.write(result_string + "\n")
|
|
|
|
## same_funcs_were = True
|
|
|
|
|
|
|
|
## if len(old_strs) > 989:
|
|
|
|
## old_strs.clear()
|
|
|
|
##
|
|
|
|
## for oldstr in old_strs:
|
|
|
|
## if oldstr == result_string:
|
|
|
|
## break
|
|
|
|
## else:
|
|
|
|
## print(result_string)
|
|
|
|
## dicfile.write(result_string + "\n")
|
|
|
|
## old_strs.append(result_string)
|
2020-07-30 17:25:40 +03:00
|
|
|
|
|
|
|
## for dfindex in range(81):
|
|
|
|
##
|
|
|
|
## result_string = \
|
|
|
|
## data_functions[(dfindex+0)%len(data_functions)](dicdata[i]) + jsign + \
|
|
|
|
## data_functions[(dfindex+1)%len(data_functions)](dicdata[j]) + jsign + \
|
|
|
|
## data_functions[(dfindex+2)%len(data_functions)](dicdata[k]) + jsign + \
|
|
|
|
## data_functions[(dfindex+3)%len(data_functions)](dicdata[l])
|
|
|
|
##
|
|
|
|
## if not (result_string == old_string):
|
|
|
|
## dicfile.write(result_string + "\n")
|
|
|
|
## old_string = result_string
|
2020-07-28 11:11:27 +03:00
|
|
|
|
2020-07-30 17:25:40 +03:00
|
|
|
except KeyboardInterrupt:
|
|
|
|
print("Stopped by keyboard.")
|
2020-07-28 11:11:27 +03:00
|
|
|
|
2020-07-30 17:25:40 +03:00
|
|
|
#writing password: MonthYear (Russia += МесяцГод += (VtczwUjl=МесяцГод_Латинской_Раскладкой))
|
|
|
|
|
|
|
|
print("OK")
|
2020-07-28 11:11:27 +03:00
|
|
|
dicfile.close()
|
|
|
|
input("Press ENTER to exit")
|