-
Notifications
You must be signed in to change notification settings - Fork 13
/
xfinity-keyspace.py
35 lines (32 loc) · 930 Bytes
/
xfinity-keyspace.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
#!/usr/bin/python
# example xfinity wifi password: fever7538harbor
import os
print("Creating temp list... Stand by.")
templist = open("temp.txt", "w")
with open("wordlists/5list.txt") as fivelist:
with open("wordlists/numbers.txt") as numblist:
flist = fivelist.readlines()
nlist = numblist.readlines()
for fword in flist:
for numb in nlist:
comb = fword.strip() + numb.strip() + "\n"
templist.write(comb)
fivelist.close()
numblist.close()
templist.close()
print("\tdone")
print("Creating final keyspace... Grab a beer.")
keyspace = open("keyspace.txt", "w")
with open("temp.txt") as templist:
with open("wordlists/6list.txt") as sixlist:
tlist = templist.readlines()
slist = sixlist.readlines()
for tword in tlist:
for sword in slist:
comb = tword.strip() + sword.strip() + "\n"
keyspace.write(comb)
templist.close()
sixlist.close()
keyspace.close()
os.remove("temp.txt")
print("\tdone")