xxxxxxxxxx
from tkinter import *
import pyperclip
root = Tk()
root.geometry("800x500")
root.title('WIFI PASSWORD CHECKER')
root.resizable(0,0)
root.config(bg= '#b4c7da')
photo = PhotoImage(file=resource_path("wifip.png"))
root.iconphoto(True, photo)
pass_details = StringVar()
myList = []
def see_wifi_pass():
import subprocess
global myList
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
for i in profiles:
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8').split('\n')
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
try:
myList.append(i+'\t||\t '+results[0]+'\n')
except IndexError:
def listToString(s):
myStr = ""
for ele in s:
myStr = myStr + ele + "\n"
return myStr
myStr = listToString(myList)
pass_details.set(myStr)
def copytoclipboard():
password = pass_details.get()
pyperclip.copy(password)
Label(root, text="Wifi Password Checker", font="calibri 20 bold",bg= '#b4c7da' ).place(x = 300,y = 50)
Button(root, text="Check passwords", command=see_wifi_pass, relief='ridge', bg='#008CBA', fg="#f7f8fa",
activebackground="#c1daf5",
activeforeground="#392f3d").place(x = 60, y = 150)
lab2= Label(root, textvariable=pass_details, justify=LEFT,bg="white", font="calibri 10",
relief='solid').place(width=500, height=300, x = 200, y = 130)
Button(root, text="Copy to clipboard", command=copytoclipboard, relief='ridge',bg="#EF4B4C", fg="#f7f8fa",
activebackground="#efcccc",
activeforeground="#392f3d").place(x = 60, y = 320)
root.mainloop()
xxxxxxxxxx
import subprocess
import re
print('WIFI PASSWORD')
command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode()
profile_names = (re.findall("All User Profile : (.*)\r", command_output))
wifi_list = []
if len(profile_names) != 0:
for name in profile_names:
wifi_profile = {}
profile_info = subprocess.run(["netsh", "wlan", "show", "profile", name], capture_output = True).stdout.decode()
if re.search("Security key : Absent", profile_info):
continue
else:
wifi_profile["ssid"] = name
profile_info_pass = subprocess.run(["netsh", "wlan", "show", "profile", name, "key=clear"], capture_output = True).stdout.decode()
password = re.search("Key Content : (.*)\r", profile_info_pass)
if password == None:
wifi_profile["password"] = None
else:
wifi_profile["password"] = password[1]
wifi_list.append(wifi_profile)
for x in range(len(wifi_list)):
print(wifi_list[x])
xxxxxxxxxx
from tkinter import *
import pyperclip
root = Tk()
root.geometry("800x500")
root.title('WIFI PASSWORD CHECKER')
root.resizable(0,0)
root.config(bg= '#b4c7da')
photo = PhotoImage(file=resource_path("wifip.png"))
root.iconphoto(True, photo)
pass_details = StringVar()
myList = []
def see_wifi_pass():
import subprocess
global myList
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i]
for i in profiles:
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8').split('\n')
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b]
try:
myList.append(i+'\t||\t '+results[0]+'\n')
except IndexError:
def listToString(s):
myStr = ""
for ele in s:
myStr = myStr + ele + "\n"
return myStr
myStr = listToString(myList)
pass_details.set(myStr)
def copytoclipboard():
password = pass_details.get()
pyperclip.copy(password)
Label(root, text="Wifi Password Checker", font="calibri 20 bold",bg= '#b4c7da' ).place(x = 300,y = 50)
Button(root, text="Check passwords", command=see_wifi_pass, relief='ridge', bg='#008CBA', fg="#f7f8fa",
activebackground="#c1daf5",
activeforeground="#392f3d").place(x = 60, y = 150)
lab2= Label(root, textvariable=pass_details, justify=LEFT,bg="white", font="calibri 10",
relief='solid').place(width=500, height=300, x = 200, y = 130)
Button(root, text="Copy to clipboard", command=copytoclipboard, relief='ridge',bg="#EF4B4C", fg="#f7f8fa",
activebackground="#efcccc",
activeforeground="#392f3d").place(x = 60, y = 320)
root.mainloop()