-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwisefoxx.py
479 lines (377 loc) · 14.4 KB
/
wisefoxx.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
#!/usr/bin/python3
for i in range(6):
komb_unique[i] = list(dict.fromkeys(kombinacija[i]).keys())
komb_unique[6] = list(dict.fromkeys(listica).keys())
komb_unique[7] = list(dict.fromkeys(cont).keys())
# join the lists
uniqlist = []
for i in range(8):
uniqlist += komb_unique[i]
unique_lista = list(dict.fromkeys(uniqlist).keys())
unique_leet = []
if leetmode == "y":
for (
x
) in (
unique_lista
): # se você quiser adicionar mais leet chars, você precisará adicionar mais linhas em cupp.cfg também...
x = make_leet(x) # converter para let
unique_leet.append(x)
unique_list = unique_lista + unique_leet
unique_list_finished = []
unique_list_finished = [
x
for x in unique_list
if len(x) > CONFIG["global"]["wcfrom"] and len(x) < CONFIG["global"]["wcto"]
]
print_to_file(file_to_open + ".cupp.txt", unique_list_finished)
fajl.close()
def interactive():
"""Implementação da opção -i. Questione interativamente o usuário e
crie um arquivo de dicionário de senhas com base na resposta."""
print("\r\n[+] Insira as informações sobre a vítima para fazer um dicionário")
print("[+] Se você não souber todas as informações, basta pressionar enter quando solicitado! ;)\r\n")
# Precisamos de algumas informações primeiro!
profile = {}
name = input("> Primeiro nome: ").lower()
while len(name) == 0 or name == " " or name == " " or name == " ":
print("\r\n[-] você deve digitar um nome pelo menos!")
name = input("> Nome: ").lower()
profile["name"] = str(name)
profile["surname"] = input("> Sobrenome: ").lower()
profile["nick"] = input("> Apelido: ").lower()
birthdate = input("> Data de nascimento (DDMMYYYY): ")
while len(birthdate) != 0 and len(birthdate) != 8:
print("\r\n[-] Você deve inserir 8 dígitos para aniversário!")
birthdate = input("> Data de nascimento (DDMMYYYY): ")
profile["birthdate"] = str(birthdate)
print("\r\n")
profile["wife"] = input("> nome) nome: ").lower()
profile["wifen"] = input("> apelido) apelido: ").lower()
wifeb = input("> Partners) data de nascimento (DDMMYYYY): ")
while len(wifeb) != 0 and len(wifeb) != 8:
print("\r\n[-] Você deve inserir 8 dígitos para aniversário!")
wifeb = input("> data de nascimento dos parceiros (DDMMYYYY): ")
profile["wifeb"] = str(wifeb)
print("\r\n")
profile["kid"] = input("> nome da criança: ").lower()
profile["kidn"] = input("> Apelido da criança: ").lower()
kidb = input("> data de nascimento da criança (DDMMYYYY): ")
while len(kidb) != 0 and len(kidb) != 8:
print("\r\n[-] Você deve inserir 8 dígitos para aniversário!")
kidb = input("> data de nascimento da criança (DDMMYYYY): ")
profile["kidb"] = str(kidb)
print("\r\n")
profile["pet"] = input("> Nome do animal de estimação: ").lower()
profile["company"] = input("> Nome da empresa: ").lower()
print("\r\n")
profile["words"] = [""]
words1 = input(
"> Deseja adicionar algumas palavras-chave sobre a vítima? Y/[N]: "
).lower()
words2 = ""
if words1 == "y":
words2 = input(
"> Por favor, digite as palavras, separadas por vírgula. [i.e. hacker,juice,black], espaços serão removidos: "
).replace(" ", "")
profile["words"] = words2.split(",")
profile["spechars1"] = input(
"> Deseja adicionar caracteres especiais no final das palavras? Y/[N]: "
).lower()
profile["randnum"] = input(
">Você deseja adicionar alguns números aleatórios no final das palavras? Y/[N]:"
).lower()
profile["leetmode"] = input("> Leet mode? (i.e. leet = 1337) Y/[N]: ").lower()
generate_wordlist_from_profile(profile) # generate the wordlist
def generate_wordlist_from_profile(profile):
""" Generates a wordlist from a given profile """
chars = CONFIG["global"]["chars"]
years = CONFIG["global"]["years"]
numfrom = CONFIG["global"]["numfrom"]
numto = CONFIG["global"]["numto"]
profile["spechars"] = []
if profile["spechars1"] == "y":
for spec1 in chars:
profile["spechars"].append(spec1)
for spec2 in chars:
profile["spechars"].append(spec1 + spec2)
for spec3 in chars:
profile["spechars"].append(spec1 + spec2 + spec3)
print("\r\n[+] Now making a dictionary...")
# Now me must do some string modifications...
# Birthdays first
birthdate_yy = profile["birthdate"][-2:]
birthdate_yyy = profile["birthdate"][-3:]
birthdate_yyyy = profile["birthdate"][-4:]
birthdate_xd = profile["birthdate"][1:2]
birthdate_xm = profile["birthdate"][3:4]
birthdate_dd = profile["birthdate"][:2]
birthdate_mm = profile["birthdate"][2:4]
wifeb_yy = profile["wifeb"][-2:]
wifeb_yyy = profile["wifeb"][-3:]
wifeb_yyyy = profile["wifeb"][-4:]
wifeb_xd = profile["wifeb"][1:2]
wifeb_xm = profile["wifeb"][3:4]
wifeb_dd = profile["wifeb"][:2]
wifeb_mm = profile["wifeb"][2:4]
kidb_yy = profile["kidb"][-2:]
kidb_yyy = profile["kidb"][-3:]
kidb_yyyy = profile["kidb"][-4:]
kidb_xd = profile["kidb"][1:2]
kidb_xm = profile["kidb"][3:4]
kidb_dd = profile["kidb"][:2]
kidb_mm = profile["kidb"][2:4]
# Convert first letters to uppercase...
nameup = profile["name"].title()
surnameup = profile["surname"].title()
nickup = profile["nick"].title()
wifeup = profile["wife"].title()
wifenup = profile["wifen"].title()
kidup = profile["kid"].title()
kidnup = profile["kidn"].title()
petup = profile["pet"].title()
companyup = profile["company"].title()
wordsup = []
wordsup = list(map(str.title, profile["words"]))
word = profile["words"] + wordsup
# reverse a name
rev_name = profile["name"][::-1]
rev_nameup = nameup[::-1]
rev_nick = profile["nick"][::-1]
rev_nickup = nickup[::-1]
rev_wife = profile["wife"][::-1]
rev_wifeup = wifeup[::-1]
rev_kid = profile["kid"][::-1]
rev_kidup = kidup[::-1]
reverse = [
rev_name,
rev_nameup,
rev_nick,
rev_nickup,
rev_wife,
rev_wifeup,
rev_kid,
rev_kidup,
]
rev_n = [rev_name, rev_nameup, rev_nick, rev_nickup]
rev_w = [rev_wife, rev_wifeup]
rev_k = [rev_kid, rev_kidup]
# Let's do some serious work! This will be a mess of code, but... who cares? :)
# Birthdays combinations
bds = [
birthdate_yy,
birthdate_yyy,
birthdate_yyyy,
birthdate_xd,
birthdate_xm,
birthdate_dd,
birthdate_mm,
]
bdss = []
for bds1 in bds:
bdss.append(bds1)
for bds2 in bds:
if bds.index(bds1) != bds.index(bds2):
bdss.append(bds1 + bds2)
for bds3 in bds:
if (
bds.index(bds1) != bds.index(bds2)
and bds.index(bds2) != bds.index(bds3)
and bds.index(bds1) != bds.index(bds3)
):
bdss.append(bds1 + bds2 + bds3)
# For a woman...
wbds = [wifeb_yy, wifeb_yyy, wifeb_yyyy, wifeb_xd, wifeb_xm, wifeb_dd, wifeb_mm]
wbdss = []
for wbds1 in wbds:
wbdss.append(wbds1)
for wbds2 in wbds:
if wbds.index(wbds1) != wbds.index(wbds2):
wbdss.append(wbds1 + wbds2)
for wbds3 in wbds:
if (
wbds.index(wbds1) != wbds.index(wbds2)
and wbds.index(wbds2) != wbds.index(wbds3)
and wbds.index(wbds1) != wbds.index(wbds3)
):
wbdss.append(wbds1 + wbds2 + wbds3)
# and a child...
kbds = [kidb_yy, kidb_yyy, kidb_yyyy, kidb_xd, kidb_xm, kidb_dd, kidb_mm]
kbdss = []
for kbds1 in kbds:
kbdss.append(kbds1)
for kbds2 in kbds:
if kbds.index(kbds1) != kbds.index(kbds2):
kbdss.append(kbds1 + kbds2)
for kbds3 in kbds:
if (
kbds.index(kbds1) != kbds.index(kbds2)
and kbds.index(kbds2) != kbds.index(kbds3)
and kbds.index(kbds1) != kbds.index(kbds3)
):
kbdss.append(kbds1 + kbds2 + kbds3)
# string combinations....
kombinaac = [profile["pet"], petup, profile["company"], companyup]
kombina = [
profile["name"],
profile["surname"],
profile["nick"],
nameup,
surnameup,
nickup,
]
kombinaw = [
profile["wife"],
profile["wifen"],
wifeup,
wifenup,
profile["surname"],
surnameup,
]
kombinak = [
profile["kid"],
profile["kidn"],
kidup,
kidnup,
profile["surname"],
surnameup,
]
kombinaa = []
for kombina1 in kombina:
kombinaa.append(kombina1)
for kombina2 in kombina:
if kombina.index(kombina1) != kombina.index(kombina2) and kombina.index(
kombina1.title()
) != kombina.index(kombina2.title()):
kombinaa.append(kombina1 + kombina2)
kombinaaw = []
for kombina1 in kombinaw:
kombinaaw.append(kombina1)
for kombina2 in kombinaw:
if kombinaw.index(kombina1) != kombinaw.index(kombina2) and kombinaw.index(
kombina1.title()
) != kombinaw.index(kombina2.title()):
kombinaaw.append(kombina1 + kombina2)
kombinaak = []
for kombina1 in kombinak:
kombinaak.append(kombina1)
for kombina2 in kombinak:
if kombinak.index(kombina1) != kombinak.index(kombina2) and kombinak.index(
kombina1.title()
) != kombinak.index(kombina2.title()):
kombinaak.append(kombina1 + kombina2)
kombi = {}
kombi[1] = list(komb(kombinaa, bdss))
kombi[1] += list(komb(kombinaa, bdss, "_"))
kombi[2] = list(komb(kombinaaw, wbdss))
kombi[2] += list(komb(kombinaaw, wbdss, "_"))
kombi[3] = list(komb(kombinaak, kbdss))
kombi[3] += list(komb(kombinaak, kbdss, "_"))
kombi[4] = list(komb(kombinaa, years))
kombi[4] += list(komb(kombinaa, years, "_"))
kombi[5] = list(komb(kombinaac, years))
kombi[5] += list(komb(kombinaac, years, "_"))
kombi[6] = list(komb(kombinaaw, years))
kombi[6] += list(komb(kombinaaw, years, "_"))
kombi[7] = list(komb(kombinaak, years))
kombi[7] += list(komb(kombinaak, years, "_"))
kombi[8] = list(komb(word, bdss))
kombi[8] += list(komb(word, bdss, "_"))
kombi[9] = list(komb(word, wbdss))
kombi[9] += list(komb(word, wbdss, "_"))
kombi[10] = list(komb(word, kbdss))
kombi[10] += list(komb(word, kbdss, "_"))
kombi[11] = list(komb(word, years))
kombi[11] += list(komb(word, years, "_"))
kombi[12] = [""]
kombi[13] = [""]
kombi[14] = [""]
kombi[15] = [""]
kombi[16] = [""]
kombi[21] = [""]
if profile["randnum"] == "y":
kombi[12] = list(concats(word, numfrom, numto))
kombi[13] = list(concats(kombinaa, numfrom, numto))
kombi[14] = list(concats(kombinaac, numfrom, numto))
kombi[15] = list(concats(kombinaaw, numfrom, numto))
kombi[16] = list(concats(kombinaak, numfrom, numto))
kombi[21] = list(concats(reverse, numfrom, numto))
kombi[17] = list(komb(reverse, years))
kombi[17] += list(komb(reverse, years, "_"))
kombi[18] = list(komb(rev_w, wbdss))
kombi[18] += list(komb(rev_w, wbdss, "_"))
kombi[19] = list(komb(rev_k, kbdss))
kombi[19] += list(komb(rev_k, kbdss, "_"))
kombi[20] = list(komb(rev_n, bdss))
kombi[20] += list(komb(rev_n, bdss, "_"))
komb001 = [""]
komb002 = [""]
komb003 = [""]
komb004 = [""]
komb005 = [""]
komb006 = [""]
if len(profile["spechars"]) > 0:
komb001 = list(komb(kombinaa, profile["spechars"]))
komb002 = list(komb(kombinaac, profile["spechars"]))
komb003 = list(komb(kombinaaw, profile["spechars"]))
komb004 = list(komb(kombinaak, profile["spechars"]))
komb005 = list(komb(word, profile["spechars"]))
komb006 = list(komb(reverse, profile["spechars"]))
print("[+] Sorting list and removing duplicates...")
komb_unique = {}
for i in range(1, 22):
komb_unique[i] = list(dict.fromkeys(kombi[i]).keys())
komb_unique01 = list(dict.fromkeys(kombinaa).keys())
komb_unique02 = list(dict.fromkeys(kombinaac).keys())
komb_unique03 = list(dict.fromkeys(kombinaaw).keys())
komb_unique04 = list(dict.fromkeys(kombinaak).keys())
komb_unique05 = list(dict.fromkeys(word).keys())
komb_unique07 = list(dict.fromkeys(komb001).keys())
komb_unique08 = list(dict.fromkeys(komb002).keys())
komb_unique09 = list(dict.fromkeys(komb003).keys())
komb_unique010 = list(dict.fromkeys(komb004).keys())
komb_unique011 = list(dict.fromkeys(komb005).keys())
komb_unique012 = list(dict.fromkeys(komb006).keys())
uniqlist = (
bdss
+ wbdss
+ kbdss
+ reverse
+ komb_unique01
+ komb_unique02
+ komb_unique03
+ komb_unique04
+ komb_unique05
)
for i in range(1, 21):
uniqlist += komb_unique[i]
uniqlist += (
komb_unique07
+ komb_unique08
+ komb_unique09
+ komb_unique010
+ komb_unique011
+ komb_unique012
)
unique_lista = list(dict.fromkeys(uniqlist).keys())
unique_leet = []
if profile["leetmode"] == "y":
for (
x
) in (
unique_lista
): # if you want to add more leet chars, you will need to add more lines in cupp.cfg too...
x = make_leet(x) # convert to leet
unique_leet.append(x)
unique_list = unique_lista + unique_leet
unique_list_finished = []
unique_list_finished = [
x
for x in unique_list
if len(x) < CONFIG["global"]["wcto"] and len(x) > CONFIG["global"]["wcfrom"]
]
print_to_file(profile["name"] + ".txt", unique_list_finished)
]
return parser
if __name__ == "__main__":
main()