-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBruteforce.py
41 lines (36 loc) · 1.14 KB
/
Bruteforce.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
'''
Simple Python Bruteforce scripts for n digits/alphabets
to crack file(zip) encryption or passwords.
---------------VAD3R
{Use responsibly}
'''
import zipfile
import os
import itertools
import time
start_time = time.time()
passw ='' # for cracking zipped files
zfile = zipfile.ZipFile('secret.zip')
for combination in itertools.product(range(10), repeat=2): # repeat=3,4,5,6 (Pin)
passw = ''.join(map(str, combination))
try:
zfile.extractall(pwd=passw)
print ('password = ' + passw + '\n')
print("--- %s seconds ---" % (time.time() - start_time))
exit(0)
except Exception as e:
pass
'''
passw =''
start_time = time.time()
s = 'ABCDEFGHIJKLMNOPQRSTUVWXZY'
for combination in itertools.product(s, repeat=5): # repeat=3,4,5,6 (UPPERCASE alphabets)
passw = ''.join(map(str, combination))
try:
if passw == 'VADER':
print ('passwword found :' + passw + '\n')
print("--- %s seconds ---" % (time.time() - start_time))
exit(0)
except Exception as e:
pass
'''