Repository navigation
Expand file tree
/
Copy pathPWChkerTest.py
More file actions
73 lines (60 loc) · 3.24 KB
/
Copy pathPWChkerTest.py
File metadata and controls
73 lines (60 loc) · 3.24 KB
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
import re
import time
import sys
from tqdm import tqdm
con_array = []
bad_array = []
fileObj = open("rockyou.txt", "r",encoding="utf8",errors="ignore") #opens the file in read mode
wdList_array = fileObj.read().splitlines() #puts the file into an array
fileObj.close()
for element in wdList_array:
con_array.append(element.strip())
print("""
***
.,@@@@@@@@@@@%
..@@@@@@@@@@@@@@@@@*.
@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@
.#@@@@@@@@@@@@@@@@@@@@@@@@,
*@@@@@@@@@@@@@@@@@@@@@@@@@
.#@@@@@@@@@@@@@@@@@@@@@@@@,
,.%&%, . @@@@@@@@@@@@@@@@@@@@@@@ * #&%,
.(@@@@@@@@@@. @@@@@(@@@@@@@@@@@@@@@ .@@@@@@@@@@@
@@@@ ( / @@@@@@. /@ @@@.@@@@@ @@@ @@ . @@@@@% *@@@@
.&@,. ,%@@@@@. ,@@@/ @@@@@@@@@.(#@@@..@@@@@@ .@@
@ ,%@@@@@&(@@(((*/@@@&,##.@@@ @@@@@@ /@%
%@@@(.@@@@@@@@@@@@@@@@@&.@@@@
@@@@@@@@@@@@@@@@@@@{ Jen's PassWord Checker }@@@@@@@@@@@@@@@@@.
(@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@# * .@@@@@@@@@@@@@@@@@@@# . @@@#
,@@@%, .&@@@@@@@ .@@@@@#.%@@@@@@@ @@@.
@@@, .@@@@@@@ , .@@@@@( .&@@@@@@%. (@@(.
*@@ .&@@@@@@ @@@@@/ @@@@@@@ . &@@
.@@@@@@ * @@@@@. .@@@@@@
.@@@@@ .@@@@@ *@@@@@
@@@@@ @@@@@ ,@@@@@
@@@@&. ,(@@@@* ,@@@@*
@@@@@@* @@@# @@@@@@,*
*@@@
.@%
.
""")
for value in con_array:
if (len(value)< 8):
bad_array.append(value)
elif value.islower() or value.isupper():
bad_array.append(value)
elif not re.search("[$#@]",value):
bad_array.append(value)
for i in tqdm (range (len(con_array)), desc="Checking..."):
pass
with tqdm(total=len(con_array), desc="Removing Bad Passwords...") as pbar:
for x in con_array:
for value in bad_array:
con_array.remove(value)
pbar.update(1)
with open('NotValidPassword.txt', 'w') as file_handler:
with tqdm(total=len(bad_array), desc="Writing Bad Passwords...") as pbar:
for item in bad_array:
file_handler.write("{}\n".format(item))
pbar.update(1)