-
Notifications
You must be signed in to change notification settings - Fork 1
/
Admin-Finder.py
520 lines (459 loc) · 24.4 KB
/
Admin-Finder.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
# Coded by Nano
import os
import sys
import random
import requests
import json
import base64
import hashlib
import datetime
import fake_useragent
import clear_screen
import baner
from bs4 import BeautifulSoup
from time import sleep
class IdentifierHashAndDecrypt:
def __init__(self,hashes,files=False):
self.Hash = hashes
self.NumHeaders = random.randint(0,2)
self.UserAgent = [fake_useragent.UserAgent()["google chrome"],fake_useragent.UserAgent().firefox,fake_useragent.UserAgent()["safari"]]
self.Headers = {"User-Agent":self.UserAgent[self.NumHeaders]}
self.Sessions = requests.Session()
self.HashType = False
self.HashDecrypted = False
self.Sites = True
self.Files = files
self.start1 = datetime.dateime.now()
def ReturnTypeHashes(self):
self.Sessions = requests.Session()
try:
self.Connects = self.Sessions.get(f"https://hashes.com/en/api/identifier?hash={self.Hash}",verify=True,headers=self.Headers)
except requests.exceptions.ConnectionError:
print("Site temporariamente com problemas, tente novamente mais tarde!")
except requests.exceptions.SSLError:
print("Temporariamente indisponível")
raise SystemExit
except requests.exceptions.ReadTimeout:
raise SystemExit
else:
try:
resultadoEmJson = json.loads(self.Connects.text)
if str(resultadoEmJson["success"]) == "False":
print("Impossível detectar o tipo de hash, informe uma hash válida!")
else:
self.HashType = resultadoEmJson["algorithms"][0]
return self.HashType
except:
pass
# DESCRIPTOGRAFANDO A HASH MD5
def DecryptMD5Hashes(self):
self.start1 = datetime.dateime.now()
print("\033[1m[\033[m\033[1;32m+\033[m\033[1m]\033[m Senha a ser encontrada: {} : {}".format(self.Hash,self.HashType))
print("\033[1m[\033[m\033[1;32m+\033[m\033[1m]\033[m Total de sites para fazer a busca: 3")
print("\033[1m[\033[m\033[1;32m+\033[m\033[1m]\033[m Status: Carregando...\n")
for x in range(30):
print(".",end="",flush=True)
sleep(0.001)
print("\n")
self.DecryptMD5Passwords = self.Sessions.get(f"http://www.nitrxgen.net/md5db/{self.Hash}.json",verify=True,headers=self.Headers)
self.ResultadoDecryptPwd = json.loads(self.DecryptMD5Passwords.text)
if str(self.ResultadoDecryptPwd["result"]["found"]) == "True":
self.HashDecrypted = self.ResultadoDecryptPwd["result"]["pass"]
if self.HashDecrypted:
print("\033[1;32m[\033[m+\033[1;32m]\033[m \033[1;36mTentativa\033[m\033[1m 1\033[m")
print("\033[1;32m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash,self.HashDecrypted))
self.Sites = False
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
else:
print("\033[1;32m[\033[m+\033[1;32m]\033[m \033[1;36mTentativa\033[m\033[1m 1\033[m")
print("\033[1;31m[\33[m*\033[1;31m] Hash:\033[m \033[1m{}\033[m \033[1;36m|\033[m \033[1;31mFAIL\033[m\n".format(self.Hash))
try:
self.DecryptMD5Passwords = self.Sessions.get(f"https://md5.gromweb.com/?md5={self.Hash}",verify=True,headers=self.Headers)
self.resultados = self.DecryptMD5Passwords.text
self.procurar = BeautifulSoup(self.resultados,"html.parser")
self.achou = self.procurar.find_all("a",{"class":"String"},href=True)
if self.achou:
if len(self.achou) > 1:
self.HashDecrypted = str(self.achou[0]["href"].replace("/?string=","")).strip()
if self.HashDecrypted:
print("\033[1;32m[\033[m+\033[1;32m]\033[m \033[1;36mTentativa\033[m\033[1m 2\033[m")
print("\033[1;32m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash,self.HashDecrypted))
self.Sites = False
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
else:
print("\033[1;32m[\033[m+\033[1;32m]\033[m \033[1;36mTentativa\033[m\033[1m 2\033[m")
print("\033[1;31m[\33[m*\033[1;31m] Hash:\033[m \033[1m{}\033[m \033[1;36m|\033[m \033[1;31mFAIL\033[m\n".format(self.Hash))
except Exception as e:
print(e)
if self.Sites:
Found = False
try:
self.conectar = self.Sessions.get("https://decrypt.tools/api/decrypt?hash_string={}&hash_type={}".format(self.Hash,self.HashType.lower()))
self.ResultadoJson = json.loads(self.conectar.text)
if str(self.ResultadoJson["messages"]) == "false":
print("\033[1;32m[\033[m+\033[1;32m]\033[m \033[1;36mTentativa\033[m\033[1m 3\033[m")
print("\033[1;31m[\33[m*\033[1;31m] Hash:\033[m \033[1m{}\033[m \033[1;36m|\033[m \033[1;31mFAIL\033[m\n".format(self.Hash))
else:
print("\033[1;32m[\033[m+\033[1;32m]\033[m \033[1;36mTentativa\033[m\033[1m 3\033[m")
print("\033[1;32m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash,self.ResultadoJson["messages"]["text"]))
self.Sites = False
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
except:
pass
else:
sleep(2)
baner.Banner()
with open("word1.txt","rt") as passwords:
try:
for senhas in passwords:
transf_pass = "{}".format(senhas.strip().replace("\n","")).encode()
encode_pass = hashlib.md5(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
raise SystemExit
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
except UnicodeDecodeError:
pass
passwords.close()
if not Found:
print("\nAbrindo Wordlist 2....\n")
sleep(2)
with open("word2.txt","rt") as passw:
try:
for senhas in passw:
transf_pass = "{}".format(senhas.strip().replace("\n","")).encode()
encode_pass = hashlib.md5(transf_pass).hexdigest()
if encode_pass == self.Hash:
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
except UnicodeDecodeError:
pass
raise SystemExit
passw.close()
# DESCRIPTOGRAFANDO A HASH SHA1
def DecryptSHA1Hashes(self):
print("\033[1m[\033[m\033[1;32m+\033[m\033[1m]\033[m Senha a ser encontrada: {} : {}".format(self.Hash,self.HashType))
for x in range(30):
print(".",end="",flush=True)
sleep(0.01)
print("\n")
try:
self.DecryptMD5Passwords = self.Sessions.get(f"https://sha1.gromweb.com/?hash={self.Hash}",verify=True,headers=self.Headers)
self.resultados = self.DecryptMD5Passwords.text
self.procurar = BeautifulSoup(self.resultados,"html.parser")
self.achou = self.procurar.find_all("a",{"class":"String"},href=True)
if self.achou:
if len(self.achou) == 1:
self.HashDecrypted = False
print("\033[1;31m[\33[m*\033[1;31m]\033[m\033[1;36m Tentativa\033[m\033[1;36m 1\033[m")
print("\033[1;31m[\33[m*\033[1;31m] Hash:\033[m \033[1m{}\033[m \033[1;36m|\033[m \033[1;31mFAIL\033[m\n".format(self.Hash))
try:
self.conectar = self.Sessions.get("https://decrypt.tools/api/decrypt?hash_string={}&hash_type={}".format(self.Hash,self.HashType))
self.ResultadoJson = json.loads(self.conectar.text)
if str(self.ResultadoJson["messages"]) == "Hash type not found":
print("\033[1;31m[\33[m*\033[1;31m]\033[m\033[1;36m Tentativa\033[m\033[1;36m 2\033[m")
print("\033[1;31m[\33[m*\033[1;31m] Hash:\033[m \033[1m{}\033[m \033[1;36m|\033[m \033[1;31mFAIL\033[m\n".format(self.Hash))
else:
print("\033[1;31m[\33[m*\033[1;31m]\033[m\033[1;36m Tentativa\033[m\033[1;36m 3\033[m")
print("\033[1;32m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash,self.ResultadoJson["messages"]["text"]))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
raise SystemExit
except:
pass
else:
self.HashDecrypted = str(self.achou[0]["href"].replace("/?string=","")).strip()
if self.HashDecrypted:
print("\033[1;31m[\33[m*\033[1;31m]\033[m\033[1;36m Tentativa\033[m\033[1;36m 1\033[m")
print("\033[1;32m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash,self.HashDecrypted))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
self.Sites = False
else:
print("\nMuitas tentativas, espere 60s")
print("Tentando pelas wordlists....")
sleep(2)
except:
print("\nNão foi possível solicitar os serviços! Tente novamente mais tarde!")
print("Abrindo wordlists...")
sleep(2)
if self.Sites:
baner.Banner()
with open("word1.txt","rt") as passwords:
try:
for senhas in passwords:
transf_pass = "{}".format(senhas.strip().replace("\n","")).encode()
encode_pass = hashlib.sha1(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
except UnicodeDecodeError:
pass
print("Abrindo Wordlist 2...")
sleep(2)
with open("word2.txt","rt") as passwords:
try:
for senhas in passwords:
transf_pass = "{}".format(senhas.strip().replace("\n","")).encode()
encode_pass = hashlib.sha1(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
except UnicodeDecodeError:
pass
raise SystemExit
def DecryptOtherHashes(self):
print("\033[1m[\033[m\033[1;32m+\033[m\033[1m]\033[m Senha a ser encontrada: {} : {}".format(self.Hash,self.HashType))
for x in range(30):
print(".",end="",flush=True)
sleep(0.001)
print("\n")
try:
self.conectar = self.Sessions.get("https://decrypt.tools/api/decrypt?hash_string={}&hash_type={}".format(self.Hash,self.HashType.lower()))
self.ResultadoJson = json.loads(self.conectar.text)
if str(self.ResultadoJson["messages"]) == "false":
print("\033[1;31m[\33[m*\033[1;31m]\033[m\033[1;36m Tentativa\033[m\033[1;36m 1\033[m")
print("\033[1;31m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash))
else:
print("\033[1;31m[\33[m*\033[1;31m]\033[m\033[1;36m Tentativa\033[m\033[1;36m 1\033[m")
print("\033[1;32m[\033[m*\033[1;32m] Hash\033[m\033[1m: {}\033[m \033[1;36m|\033[m \033[1m{}\033[m".format(self.Hash,self.ResultadoJson["messages"]["text"]))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
raise SystemExit
except:
pass
if self.Sites:
Found = False
baner.Banner()
with open("word1.txt","rt") as passwords:
try:
for senhas in passwords:
transf_pass = "{}".format(senhas.strip().replace("\n","")).encode()
if self.HashType.lower() == "sha256":
encode_pass = hashlib.sha256(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "md4":
encode_pass = hashlib.md4(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "md2":
encode_pass = hashlib.md2(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha224":
encode_pass = hashlib.sha224(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha384":
encode_pass = hashlib.sha384(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha3-256":
encode_pass = hashlib.sha256(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha3-224":
encode_pass = hashlib.sha224(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha512":
encode_pass = hashlib.sha512(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
except UnicodeDecodeError:
pass
Found = False
if not Found:
with open("word2.txt","r") as pwssd:
try:
for senhas in pwssd:
transf_pass = "{}".format(senhas.strip().replace("\n","")).encode()
if self.HashType.lower() == "sha256":
encode_pass = hashlib.sha256(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "md4":
encode_pass = hashlib.md4(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "md2":
encode_pass = hashlib.md2(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha224":
encode_pass = hashlib.sha224(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha384":
encode_pass = hashlib.sha384(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha3-256":
encode_pass = hashlib.sha256(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha3-224":
encode_pass = hashlib.sha224(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
elif self.HashType.lower() == "sha512":
encode_pass = hashlib.sha512(transf_pass).hexdigest()
if encode_pass == self.Hash:
print("\033[1;32m[\033[m\033[1;34m+\033[m\033[1;32m]\033[m \033[1m{} \033[1;33m|\033[m \033[m \033[1;36m{}\033[m".format(encode_pass,senhas))
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
exit()
else:
print("\033[1;31m[\033[m\033[1m-\033[m\033[1;31m]\033[m \033[3m{}\033[m \033[1;33m|\033[m \033[3m{}\033[m".format(self.Hash,str(encode_pass)))
except UnicodeDecodeError:
pass
print("Senha não encontrada!\n")
raise SystemExit
def DecryptBase64Hashes(self):
try:
resposta = base64.b64decode(self.Hash).decode()
except base64.binascii.Error:
print("Nenhuma hash encontrada!")
else:
print(resposta)
self.finish = datetime.dateime.now() - self.start1
print("Tempo até encontrar: {}".format(self.finish))
if __name__ == "__main__":
matcheswords = ["word1.txt","word2.txt"]
install = True
try:
caminho_script = os.getcwd()
for wordlists in os.listdir(str(caminho_script)):
if wordlists.startswith("word"):
a = wordlists
if wordlists.replace("\n","").strip() in matcheswords:
print(wordlists)
install = False
else:
pass
except:
pass
if install:
baner.Banner()
print("\033[1m[\033[m\033[1;31m OOOPSS! \033[m\033[1m]\033[m\n")
print("\033[1;32m[\033[m\033[1;32m!\033[1m]\033[m\033[1m Siga as instruções para configurar o script!\033[m \033[1;32m[\033[m\033[1;32m!\033[1m]\033[m")
print("\n\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mPasso\033[m\033[1m 1:\033[m \033[1mInstale 2 das wordlists que deixei no \033[m\033[1;36mREADME\033[m\033[1m na página inicial do script\033[m")
print("\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mPasso\033[m\033[1m 2:\033[m \033[1mExtraia a wordlist se ela estiver zipada!\033[m")
print("\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mPasso\033[m\033[1m 3:\033[m \033[1mApós a extração, renomeie as Wordlists para word1.txt e word2.txt\033[m")
print("\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mPasso\033[m\033[1m 4:\033[m \033[1mColoque as duas dentro aqui da pasta do script\033[m")
print("\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mPasso\033[m\033[1m 5:\033[m \033[1mPronto! Agora você já pode utilizar o script!\033[m\n")
print("\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mWordlists\033[m\033[1m:\033[m \033[1mhttps://github.com/nano-9/Decrypt\033[m")
print("\n\033[1;33m[\033[m\033[1m+\033[1;33m]\033[m \033[1;34mCriador\033[m\033[1m: Nano\033[m\n")
raise SystemExit
lista_separet = ["md5","sha1","base64 encoded string"]
clear_screen.Clear()
baner.Banner()
EntradaUser = sys.argv
if len(EntradaUser) == 2:
inicial = IdentifierHashAndDecrypt(hashes=sys.argv[1].strip())
hashest = inicial.ReturnTypeHashes()
if hashest != None:
if hashest.lower() == "md5":
inicial.DecryptMD5Hashes()
elif hashest.lower() == "sha1":
inicial.DecryptSHA1Hashes()
elif hashest.lower() == "base64 encoded string":
inicial.DecryptBase64Hashes()
elif hashest.lower() not in lista_separet:
inicial.DecryptOtherHashes()
else:
print("Use: python hash.py SUA HASH AQUI")