brute force on my wireless network
I was trying to hack my own wireless network. I could write a code that
could generate all possible combinations of characters and numbers.
However, I don't know how to make my PC to implement the generated keys to
the wireless network. (I have no knowledge of network, wireless, etc.) How
am I supposed to connect to wireless and match each generated password??
Here's the code below:
def createAllPossibleCharacterList():
list = []
# append upper-case letters
for i in range(65,91):
list.append(chr(i))
# append lower-case letters
for i in range(97,123):
list.append(chr(i))
# append numbers
for i in range(10):
i = str(i)
list.append(i)
#return the list
return list
def recursivelyFindKeys(list, key, keyLength):
if keyLength == 0:
print key
# in this stage, a key has to be inserted to see if it matches the
real password
else:
for i in range(len(list)):
recursivelyFindKeys(list, key + list[i], keyLength-1)
def main():
# call create... function to get all possible characters
list = []
list = createAllPossibleCharacterList()
key = ""
n = raw_input("upto what length of passwords?")
n = int(n)
# get keys
for i in range(n, 0, -1):
recursivelyFindKeys(list, key, i)
if __name__ == "__main__":
main()
No comments:
Post a Comment