-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPower.py
204 lines (159 loc) · 9.14 KB
/
Power.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
#Author ------> Magic Man
#Author's Email -----> [email protected]
import hashlib
import os
import sys
class password:
def pas1(self):
text = open('password list.text','w') #for enter password in notpad
pas = [] #for input password
has = [] # for input hash's password
year = []
try:
count = int(raw_input('how many do you have information about target(only enter number) ? ')) # enter how do you have information
except ValueError:
print('only you should enter number') # for Instead eroor
sys.exit()
ma = 0
for i in range(0,count): # count number information
ma += 1
b=raw_input('enter {} information : ' . format(ma)).replace(' ','') # input you'r password
pas.append(b) # full list pas
hasmd5 = hashlib.md5(b'%s' % (b)).hexdigest() # Convert password to hash(md5)
hassha224 = hashlib.sha224(b'%s' % (b)).hexdigest() # Convert password to hash(sha224)
has.append(hassha224) #full list has
has.append(hasmd5)
print(80 * '-')
print('this is your pas ---> {}' . format(pas))
print(80 * '-')
print("hash's you'r password ----> {}" . format(has))
print(80 * '-')
print("warning : if you think the target doesnt have a strong password , don't enter (y) . because it will result in a longer password")
mypas = raw_input("i change you'r password and add to you'r password (Y/N) ? ")
if mypas == 'y' or mypas == 'Y':
pasnew = []
pasa = []
for newpas in pas:
mym = newpas.replace('a','@') #change a to @
pasa.append(mym)
hoo = newpas.replace('s','$') # change s to $
pasa.append(hoo)
end = newpas.replace('a','@')
end = end.replace('s','$') # change s to $ and a to @
end = end.replace('i','!') # change i to !
pasnew.append(end)
print(80 * '-')
print("this is change you'r password -----> {} " . format(pasnew))
print(80 * '-')
pasnew = pasnew+pasa
pas = pasnew + pas #add edite you'r password whith orginal password
elif mypas == 'n' or mypas == 'N':
pass
else:
print('you should only enter N or Y')
ted = len(pas)
questionyear = raw_input("if you don't know the target date of birth . do you want me to find it for you (Y/N) ? ")
if questionyear == 'y' or questionyear == 'Y':
try:
print("hint : it will calculate in a range between the first year and second year , then it will add the reswt to the password list")
year1 = int(raw_input('enter first year : '))
year2 = int(raw_input('enter secound year : '))
except ValueError:
print('you should enter year')
sys.exit()
year1 -= 1
while(year1 < year2):
year1 += 1
year.append(year1)
print(80 * '-')
print('this is years ----> {}' . format(year))
print(80 * '-')
count_year = len(year)
for pas_year1 in range(0,count_year):
for pas2_year in range(0,ted):
text.write("{}{}\n". format(pas[pas2_year],year[pas_year1]))
text.write("{}{}\n". format(year[pas_year1],pas[pas2_year]))
for pas_year2 in range(0,count_year):
for pas3_year in range(0,ted):
for pas4_year in range(0,ted):
text.write("{}{}{}\n" . format(pas[pas3_year] , pas[pas4_year] , year[pas_year2]))
text.write("{}{}{}\n" . format(year[pas_year2] , pas[pas4_year] , pas[pas3_year]))
text.write("{}{}{}\n" . format(pas[pas3_year] , year[pas_year2] , pas[pas4_year]))
for pas_year3 in range(0,count_year):
for pas5_year in range(0,ted):
for pas6_year in range(0,ted):
for pas7_year in range(0,ted):
text.write("{}{}{}{}\n" . format(pas[pas5_year] , pas[pas6_year] , pas[pas7_year] , year[pas_year3]))
text.write("{}{}{}{}\n" . format(pas[pas5_year] , pas[pas6_year] , year[pas_year3] , pas[pas7_year]))
text.write("{}{}{}{}\n" . format(pas[pas5_year] , year[pas_year3] , pas[pas6_year] , pas[pas7_year]))
text.write("{}{}{}{}\n" . format(year[pas_year3] , pas[pas5_year] , pas[pas6_year] , pas[pas7_year]))
elif questionyear == 'n' or questionyear == 'N':
pass
else:
print('you should enter Y or N')
sys.exit()
ted2 = len(has)
# make password list
for d in range(0,ted):
text.write("{}\n".format(pas[d]))
question_hash = raw_input("do you want hashs you'r password add to passwordlist (Y/N) ? ")
if question_hash == 'Y' or question_hash == 'y':
for haas in range(0,ted2):
text.write("{}\n".format(has[haas]))
elif question_hash == 'N' or question_hash == 'n':
pass
for n in range(0,ted):
for m in range(0,ted):
text.write("{}{}\n". format(pas[n],pas[m]))
text.write("{}{}@\n". format(pas[n],pas[m]))
text.write("{}_{}\n". format(pas[n],pas[m]))
for t in range(0,ted):
for k in range(0,ted):
for h in range(0,ted):
text.write("{}{}{}\n". format(pas[t],pas[k],pas[h]))
text.write("{}{}{}@\n". format(pas[t],pas[k],pas[h]))
for u in range(0,ted):
for y in range(0,ted):
for o in range(0,ted):
for q in range(0,ted):
text.write("{}{}{}{}\n". format(pas[u],pas[y],pas[o],pas[q]))
text.write("{}{}{}{}@\n". format(pas[u],pas[y],pas[o],pas[q]))
for l in range(0,ted):
for p in range(0,ted):
for t in range(0,ted):
for c in range(0,ted):
for he in range(0,ted):
text.write("{}{}{}{}{}\n". format(pas[l],pas[p],pas[t],pas[c],pas[he]))
text.write("{}{}{}{}{}@\n". format(pas[l],pas[p],pas[t],pas[c],pas[he]))
text.close()
os.system('clear')
print("""
010101010101 010101010101
010 010 01010101010 010101010101 010 010
101 101 01010 101010 1010 0101 1010 0101 10101 101 101
010101010010 01010 101010 0101 1010 0101 1010 01010 010101010101
101 10101 101010 1010 1010 1010 1010 010101010101 101 0101
010 01010 010101 0101 1010 0101 1010 10101 010 0101
101 01010 10101 1010 0101 1010 0101 10101 101 0101
010 0101010 0101010 0101010 010101010101 010 0101
Author ------> Magic Man
Author's Email -----> [email protected]
""")
try:
if sys.argv[1] == '-h' or sys.argv[1] == 'H':
print(""" -r ----> run script
-v ----> Version of the program""")
sys.exit()
elif sys.argv[1] == '-r' or sys.argv[1] == 'R':
me=password()
me.pas1()
elif sys.argv[1] == '-v':
print('verssion 1.3')
else:
print(""" -h ----> Help
-r ----> run script
-v ----> Version of the program """)
except IndexError:
print(""" -h ----> Help
-r ----> run script
-v ----> Version of the program """)