I am thinking to create a loop that allows me to output different values. By that I mean something like this:
list = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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, 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]
for i in range(0,len(list)):
n = list[i]
con_1 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_2 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_3 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_4 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_5 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_6 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_7 = chr(n)
for i in range(0,len(list)):
n = list[i]
con_8 = chr(n)
con = con_1 + con_2 +con_3 + con_4 + con_5 + con_6 + con_7 + con_8
f = open("wifi_8sf.txt","a+")
f.write(con+"\n")
f.close()
print(con)
This is a code I made for an 8 digit wifi decoder (I know it is the least efficient way to crack the code but just doing it for practice).
However, this is only 8 digit and it takes that long, imagine 50 digit or anything above.
So I am thinking a way to achieving it is by using globals()
, for example, I need 50 digits of output, so I will use globals()
to define 50 different variables, and each of them going to loop as individual and add up as a string in the end.
According to this idea, anyone got any way to solve it?