I am very new to code in general and especially python. I have created the code below just as a basic test (credit goes to youtuber https://www.youtube.com/watch?v=sI5zo1ZElCc) and was wondering how I could make it so that I can get a wifi password with it?
Here is what I tried:
import random
import pyautogui
import platform
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
allchar = list(chars);
pwd = pyautogui.password('Enter a password: ');
sample_pwd = "";
while (sample_pwd != pwd):
sample_pwd = random.choices(allchar, k=len(pwd))
print('<====' + str(sample_pwd) + '====>')
if (sample_pwd == list(pwd)):
print('The password is: ' + ''.join(sample_pwd))
break
It works, but I would like it to be able to let me input network names and then crack the password for that network. Keep in mind I am very new and my methods probably suck.
Jack Fickes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.