11
11
COUTEAU
12
12
WORDLIST GENERATOR FOR BRUTE FORCE.
13
13
DICTIONNARY FOR BRUTE FORCE
14
+ @version 0.0.8
14
15
"""
15
16
16
17
print ("""
@@ -53,6 +54,7 @@ def help(self):
53
54
54
55
e or exit => quit command
55
56
c or cls or clear => clear command
57
+ s or start => start the programm
56
58
57
59
""" )
58
60
time .sleep (0.5 )
@@ -69,7 +71,7 @@ def Checking(self):
69
71
def choice (self ):
70
72
command = input ("> " )
71
73
#beta command
72
- if command == "g " :
74
+ if command == "s " :
73
75
self .Confirmation ()
74
76
#beta command
75
77
if command == "help" :
@@ -89,39 +91,43 @@ def choice(self):
89
91
90
92
91
93
def Confirmation (self ):
92
- confirm = input ("Are you sure you want to start the process? Y/N: " )
93
- if confirm == "Y" :
94
- self .Process ()
95
- else :
96
- exit ()
97
-
94
+ self .bday = input ("Enter the birthday like this 22/09/1987 if you dont have just enter n: " )
95
+ if self .bday == "n" or self .bday == "N" :
96
+ self .bday = False
97
+ print (self .bday )
98
+ self .Process ()
98
99
99
- def bday (self ):
100
+ def birthday (self ):
100
101
#delete /
101
102
self .bday .replace ("/" , "" )
102
103
103
- with open ("bday.txt" , "w " , encoding = 'utf-8' ) as filebday :
104
+ with open ("bday.txt" , "a " , encoding = 'utf-8' ) as filebday :
104
105
#bday all changment adding to password of 1 to 5
105
106
filebday .write (self .bday + '\n ' )
106
107
#4last digits
107
108
filebday .write (self .bday [4 :8 ]+ '\n ' )
108
109
#4digits + years
109
110
filebday .write (self .bday [4 :8 ] + self .bday [2 :4 ]+ '\n ' )
110
-
111
111
inverse = self .bday [4 :8 ]
112
112
filebday .write (inverse [::- 1 ]+ '\n ' )
113
113
filebday .write (self .bday [6 :8 ]+ self .bday [4 :6 ]+ '\n ' )
114
- count += 6
115
114
self .bday == False
116
- with open ("{self.file_name},.,{render}" , "w" , encoding = "utf-8" ) as file :
117
- file .write (filebday )
118
- os .remove ("bday.txt" )
115
+
116
+
117
+ print ("stop" )
118
+ with open (f"{ self .file_name } { self .render } " , "a" , encoding = "utf-8" ) as file :
119
+ shutil .copyfile ('bday.txt' ,f"{ self .file_name } { self .render } " )
120
+
121
+ filebday .close ()
122
+ os .remove ("bday.txt" )
119
123
120
124
121
125
122
126
def Process (self ):
123
127
count = 0
124
128
self .words = input ("Enter commonly used word, separated by a space: " )
129
+ self .depth = int (input ("Enter the depth [default:5]: " ))
130
+
125
131
with open (f"{ self .file_name } { self .render } " , "a" , encoding = "utf-8" ) as file :
126
132
if self .depth == 1 :
127
133
sys .stdout .write ('\r loading [--------------------] 0%' )
@@ -131,7 +137,7 @@ def Process(self):
131
137
pass
132
138
133
139
else :
134
- self .bday ()
140
+ self .birthday ()
135
141
136
142
137
143
time .sleep (0.2 )
@@ -191,7 +197,7 @@ def Process(self):
191
197
pass
192
198
193
199
else :
194
- self .bday ()
200
+ self .birthday ()
195
201
196
202
sys .stdout .write ('\r loading [--------------------] 0%' )
197
203
sys .stdout .flush ()
@@ -247,7 +253,7 @@ def Process(self):
247
253
pass
248
254
249
255
else :
250
- self .bday ()
256
+ self .birthday ()
251
257
252
258
#common root password
253
259
shutil .copyfile (f"{ self .file_name } { self .render } " , 'pswd/common-pswd3.txt' )
@@ -299,7 +305,7 @@ def Process(self):
299
305
if self .bday == False :
300
306
pass
301
307
else :
302
- self .bday ()
308
+ self .birthday ()
303
309
#common root password/ more complicated password
304
310
#leak db password are getting stronger with the depth argument
305
311
shutil .copyfile (f"{ self .file_name } { self .render } " , 'pswd/common-pswd4.txt' )
@@ -360,31 +366,46 @@ def Process(self):
360
366
pass
361
367
362
368
else :
363
- self .bday ()
364
- for word in self .words :
369
+ self .birthday ()
370
+ file .write ("debut" + '\n ' )
371
+
372
+ word2 = []
373
+ temp = ""
374
+ self .words = self .words + " "
375
+ #print(repr(self.words))
376
+ self .bday = str (self .bday ).replace ("/" , "" )
377
+ print (self .bday )
378
+
379
+ for l in self .words :
380
+ if l == " " :
381
+ word2 .append (temp )
382
+ temp = ""
383
+ else :
384
+ temp += l
385
+ for i in word2 :
365
386
#year
366
- file .write (word + self .bday [5 :8 ])
387
+ file .write (i + self .bday [5 :8 ]+ ' \n ' )
367
388
#2last digits year
368
- file .write (word + self .bday [6 :8 ])
389
+ file .write (i + self .bday [6 :8 ]+ ' \n ' )
369
390
#month + 2last digits year
370
- file .write (word + self .bday [2 :4 ] + self .bday [6 :8 ])
391
+ file .write (i + self .bday [2 :4 ] + self .bday [6 :8 ]+ ' \n ' )
371
392
372
- file .write (word + self .bday [2 :4 ] + self .bday [0 :2 ] + self .bday [6 :8 ])
373
- file .write (word + self .bday [0 :2 ] + self .bday [6 :8 ])
374
- file .write (word + self .bday [0 :2 ])
375
- file .write (word + self .bday [0 :2 ] + self .bday [2 :4 ])
393
+ file .write (i + self .bday [2 :4 ] + self .bday [0 :2 ] + self .bday [6 :8 ]+ ' \n ' )
394
+ file .write (i + self .bday [0 :2 ] + self .bday [6 :8 ]+ ' \n ' )
395
+ file .write (i + self .bday [0 :2 ]+ ' \n ' )
396
+ file .write (i + self .bday [0 :2 ] + self .bday [2 :4 ]+ ' \n ' )
376
397
377
398
378
- file .write ((word + self .bday [5 :8 ]).capitalize ())
399
+ file .write ((i + self .bday [5 :8 ]+ ' \n ' ).capitalize ())
379
400
#2last digits year
380
- file .write ((word + self .bday [6 :8 ]).capitalize ())
401
+ file .write ((i + self .bday [6 :8 ]+ ' \n ' ).capitalize ())
381
402
#month + 2last digits year
382
- file .write ((word + self .bday [2 :4 ] + self .bday [6 :8 ]).capitalize ())
403
+ file .write ((i + self .bday [2 :4 ] + self .bday [6 :8 ]+ ' \n ' ).capitalize ())
383
404
384
- file .write ((word + self .bday [2 :4 ] + self .bday [0 :2 ] + self .bday [6 :8 ]).capitalize ())
385
- file .write ((word + self .bday [0 :2 ] + self .bday [6 :8 ]).capitalize ())
386
- file .write ((word + self .bday [0 :2 ]).capitalize ())
387
- file .write ((word + self .bday [0 :2 ] + self .bday [2 :4 ]).capitalize ())
405
+ file .write ((i + self .bday [2 :4 ] + self .bday [0 :2 ] + self .bday [6 :8 ]+ ' \n ' ).capitalize ())
406
+ file .write ((i + self .bday [0 :2 ] + self .bday [6 :8 ]+ ' \n ' ).capitalize ())
407
+ file .write ((i + self .bday [0 :2 ]+ ' \n ' ).capitalize ())
408
+ file .write ((i + self .bday [0 :2 ] + self .bday [2 :4 ]+ ' \n ' ).capitalize ())
388
409
389
410
390
411
@@ -539,5 +560,4 @@ def finish(self):
539
560
begin .choice ()
540
561
541
562
542
-
543
563
0 commit comments