-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPassword_Generator.py
719 lines (590 loc) · 38.6 KB
/
Password_Generator.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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
# @Copyright
# Created by :
# Waseem Adel Alaa-Iddin
# Can be used in your project. A name maintaining will be nice.
# >> >> >> Ethical Use Only! << << <<
import itertools
import string
import time
#to run the while loops and stop it without any errors
Run_The_Server = 1
first_section = 1
section_one_one = 1
Task_4B_loop = 1
User_Password = ''
User_Combination = ''
mainCombination = ''
Min_length_of_Pass = ''
Max_Length_of_Pass = ''
#Creating a list that contaies all symbols
symbols = '@#$%=:?,./|~>*()<'
#(Password combination)
#only lower or upper or number (one type)
only_numbers = string.digits
only_lowercase = string.ascii_lowercase
only_uppercase = string.ascii_uppercase
only_symbols = symbols
#(Two combination)
"""
[
numbers = 1
lowercase = 2
uppercase = 3
symbols = 4
The Combinatiion
1 2
1 3
1 4
2 3
2 4
4 3
] """
numbers_with_Lowercase = string.digits + string.ascii_lowercase
numbers_with_uppercase = string.digits + string.ascii_uppercase
numbers_with_symbols = string.digits + symbols
Lowercase_with_uppercase = string.ascii_lowercase + string.ascii_uppercase
Lowercase_with_symbols = string.ascii_lowercase + symbols
uppercase_with_symbols = string.ascii_uppercase + symbols
#(Three combination)
"""
[
numbers = 1
lowercase = 2
uppercase = 3
symbols = 4
The combinatiion
1 2 3
1 2 4
2 1 4
3 1 4
]
"""
numbers_with_Lowercase_uppercase = string.digits + string.ascii_lowercase + string.ascii_uppercase
numbers_with_uppercase_symbols = string.digits + string.ascii_uppercase + symbols
numbers_with_Lowercase_symbols = string.digits + string.ascii_lowercase + symbols
uppercase_with_Lowercase_symbols = string.ascii_uppercase +string.ascii_lowercase + symbols
#(All Combined)
All_combination = string.ascii_uppercase +string.ascii_lowercase + string.digits + symbols
#Creating the main function of this program
def Password_table_generator():
try :
#Making some variable global to be reached
global Run_The_Server,first_section , Min_length_of_Pass, Max_Length_of_Pass, section_one_one
#Start the loop
while Run_The_Server ==1:
#Asking the user about his preference before creating his list.
print('\nThis program creates a rainbow table that may contain\n[Numbers - Lowercase - Uppercase - Symbols]\n')
User_Combination = input("Would you like to create a rainbow table of \nA - 1 password combination\nB - 2 Password combination\nC - 3 Password combination\nD - 4 Password combination\n>>> ").lower()
start_time = time.time()
if User_Combination == 'a':
while first_section == 1:
print('\nOne combination has been chosen')
mainCombination = input('Would you like to create one combination of \nA- Numbers\nB- Lowercase\nC- uppercase\nD- Symbols\n>>> ').lower()
if mainCombination == 'a':
#print(only_numbers) #If uncommented it will show the used values to create the pass (for test only)
attempts = 0
while section_one_one ==1:
try :
table = open('RainbowTable.txt', 'w')
print('\nOnly Numbers')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(only_numbers, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='b':
#print(only_lowercase) #If uncommented it will show the used values to create the pass (for test only)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print('\nOnly Lowercase')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(only_lowercase, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='c':
print('\nOnly Uppercase')
#print(only_uppercase) #If uncommented it will show the used values to create the pass (for test only)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(only_uppercase, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the Maximum number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be pass than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='d':
print('\nOnly Symbols')
#print(only_symbols) #If uncommented it will show the used values to create the pass (for test only)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(only_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
else:
print('Enter [A or B or C or D]')
continue
Run_The_Server = 0
#if the user wants two combination
elif User_Combination == 'b':
while first_section == 1:
print('\nYou have chosen two password combination')
mainCombination = input('You want a Two combintaion of \nA - Numbers & Lowercase \nB - Numbers & Uppercase\nC - Numbers & Symbols\nD - Lowercasr & Uppercase\nE - Lowercasr & Symbols\n\nF - Uppercase & Symbols\n>>> ').lower()
if mainCombination == 'a':
print('\nNumbers & Lowercase has been chosen')
#print(numbers_with_Lowercase) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one ==1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(numbers_with_Lowercase, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='b':
print('\nNumbers & Uppercase has been chosen')
#print(numbers_with_uppercase) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(numbers_with_uppercase, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='c':
print('\nNumbers & Symbols has been chosen')
#print(numbers_with_symbols) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(numbers_with_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='d':
print('\nLowercase & Uppercase has been chosen')
#print(Lowercase_with_uppercase) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(Lowercase_with_uppercase, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='e':
print('\nLowercase & Symbols has been chosen')
#print(Lowercase_with_symbols) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(Lowercase_with_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='f':
print('\nUppercase & Symbols has been chosen')
#print(uppercase_with_symbols) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(uppercase_with_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
else:
print('Enter [A or B or C or D]')
continue
Run_The_Server = 0
elif User_Combination == 'c':
while first_section == 1:
print('\nThree pass combination has been chosen ')
mainCombination = input('You want a three combintaion of \nA - Numbers & Lowercase & Uppercase\nB - Numbers & Uppercase & Symbols \nC - Numbers & Lowercase & Symbols\nD - Uppercase & Lowercase & Symbols \n>>> ').lower()
if mainCombination == 'a':
print('\nNumbers & Lowercase & Uppercas has been chosen')
#print(numbers_with_Lowercase_uppercase) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one ==1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(numbers_with_Lowercase_uppercase, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='b':
print('\nNumbers & Uppercase & Symbols has been chosen')
#print(numbers_with_uppercase_symbols) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(numbers_with_uppercase_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
elif mainCombination =='c':
print('\nNumbers & Lowercase & Symbols has been chosen')
#print(numbers_with_Lowercase_symbols) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(numbers_with_Lowercase_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please has been chosen')
first_section = 0
elif mainCombination =='d':
print('\nUppercase & Lowercase & Symbols has been chosen')
#print(uppercase_with_Lowercase_symbols) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one == 1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(uppercase_with_Lowercase_symbols, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
else:
print('Enter [A or B or C or D]')
continue
Run_The_Server = 0
elif User_Combination == 'd':
while first_section == 1:
print('\nAll combination has been chosen ')
print('A password combination of Numbers, Lowercase, Uppercase & Symbols will be generated')
mainCombination = 'a'
if mainCombination == 'a':
#print(All_combination) #If uncommented it will show the used values to create the pass (for testing)
attempts = 0
while section_one_one ==1:
try :
table = open('RainbowTable.txt', 'w')
print("\nNote That A MAX of 4 means the highest digit is (****) - AKA four values ")
Min_length_of_Pass = int(input('\nEnter the Minimum length of the password >> '))
Max_length_of_Pass = int(input('Enter the Maximum length of the password >> '))
if Max_length_of_Pass > Min_length_of_Pass:
x = int(Min_length_of_Pass)
y = int(Max_length_of_Pass)
y = y + 1
for password_length in range(x, y):
for guess in itertools.product(All_combination, repeat=password_length):
attempts += 1
guess = ''.join(guess)
table.write(guess)
table.write('\n')
print(f'{guess} the pass number is {attempts}')
section_one_one = 0
else:
print('\n[!] Minimum can not be greater than Maximum')
continue
except ValueError:
print('\n[!] Only numbers please')
first_section = 0
else:
print('[!] Unknown Error')
continue
Run_The_Server = 0
else :
print('\n---')
print('please enter [A or B or C or D] only ')
continue
print("\n\nRainbow table has been ganarated.")
print("\n\nThe Pass has been ganarated in ---- %s seconds ----" % (time.time() - start_time))
print('[-] stoped .. ')
except KeyboardInterrupt:
print('[!] Keyboard Interrupt detected... shutting down')
def brute_pass_using_table():
try :
global User_Password, Task_4B_loop
while Task_4B_loop == 1:
User_Password = input('Please provide a password to be brute-forced >> ')
Rainbow_table_file_location = input('Please provide the location of the rainbow table...\n[!] Note >> please put the rainbow table.txt in same directory for easy access \n[+] example (RainbowTable.txt)\nEnter file location >>')
start_time = time.time()
Rainbow_table = open(Rainbow_table_file_location, 'r')
Lines = Rainbow_table.readlines()
count = 0
for line in Lines:
count += 1
print("Password number {} : {} ".format(count, line.strip()))
if User_Password == line.strip():
print('[+] Password has been found')
Task_4B_loop = 0
print("\n\nThe Pass has been cracked in ---- %s seconds ----" % (time.time() - start_time))
break
elif User_Password != line.strip():
print('Not This Pass :(\n')
else:
again_try = input('Try again ? (y/N)').lower()
if again_try == 'y':
continue
elif again_try == 'n':
print('[-] Program will stop')
Task_4B_loop = 0
break
else:
print('[-] y/N ? ')
continue
print('[-] Program will stop now')
Task_4B_loop = 0
except KeyboardInterrupt:
print('[!] Keyboard Interrupt detected... shutting down')
print('[!] Users are required to enter the min pass length and the max password length for the program to generate ,therefore')
print('[!] Note that ... using bigger numbers may effect your CPU ... \n')
time.sleep(2)
print('[+] Starting...')
which_task_to_solve = input('[+] Please Choose > > \nA - (Creating Rainbow Table) \nB - (Brutefores a password using a pre-build rainbow table)\n>> ').lower()
if which_task_to_solve == 'a':
print('\n[+] Task A has been chosen ')
time.sleep(1)
Password_table_generator()
elif which_task_to_solve == 'b':
print('\n[+]Task B has been chosen ')
time.sleep(1)
brute_pass_using_table()
else:
print('[!] Error... please Re-run the program')