Repository navigation
Expand file tree
/
Copy pathwordlistCreator.py
More file actions
82 lines (67 loc) · 1.98 KB
/
Copy pathwordlistCreator.py
File metadata and controls
82 lines (67 loc) · 1.98 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
74
75
76
77
78
79
80
81
82
alphabet='abcdefghijklmnopqrstuvwxyz'
numbers = '0123456789'
upperAlpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
with open("test2.txt", "a") as myfile:
for l1 in alphabet:
final1 = l1+'\n'
myfile.write(final1)
for l2 in alphabet:
final2 = l1+l2+'\n'
myfile.write(final2)
for l3 in alphabet:
final3 = l1+l2+l3+'\n'
myfile.write(final3)
for l4 in alphabet:
final4 = l1+l2+l3+l4+'\n'
myfile.write(final4)
for l5 in alphabet:
final5 = l1+l2+l3+l4+l5+'\n'
myfile.write(final5)
for l6 in alphabet:
final6 = l1+l2+l3+l4+l5+l6+'\n'
myfile.write(final6)
for l7 in alphabet:
final7 = l1+l2+l3+l4+l5+l6+l7+'\n'
myfile.write(final7)
for l8 in alphabet:
final8 = l1+l2+l3+l4+l5+l6+l7+l8+'\n'
myfile.write(final8)
import hashlib
fh = open ('test2.txt')
fw = open ('sha1Hashed.txt', 'w')
for i in range(10000):
password = fh.readline().strip()
hex = hashlib.sha1(password).hexdigest()
fw.write(password+','+hex+'\n')
fh.close
fw.close
'''
# terrible code to generate 8 char wordlist
alphabet='abcdefghijklmnopqrstuvwxyz'
numbers = '0123456789'
for l1 in alphabet:
for l2 in alphabet:
for l3 in alphabet:
for l4 in alphabet:
for l5 in alphabet:
for l6 in alphabet:
for l7 in alphabet:
for l8 in alphabet:
final1 = l1+'\n'
final2 = l1+l2+'\n'
final3 = l1+l2+l3+'\n'
final4 = l1+l2+l3+l4+'\n'
final5 = l1+l2+l3+l4+l5+'\n'
final6 = l1+l2+l3+l4+l5+l6+'\n'
final7 = l1+l2+l3+l4+l5+l6+l7+'\n'
final8 = l1+l2+l3+l4+l5+l6+l7+l8+'\n'
with open("test.txt", "a") as myfile:
myfile.write(final1)
myfile.write(final2)
myfile.write(final3)
myfile.write(final4)
myfile.write(final5)
myfile.write(final6)
myfile.write(final7)
myfile.write(final8)
'''