Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- import pyperclip
- root = Tk()
- root.geometry("400x400")
- 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)
- myList.append("--")
- myList.append(results[0])
- myList.append("|")
- except IndexError:
- myList.append(i)
- myList.append("--")
- myList.append("")
- def show_wifi_pass():
- pass_details.set(myList)
- def copytoclipboard():
- password = pass_details.get()
- pyperclip.copy(password)
- Label(root, text="Gui Wifi Password Checker", font="calibri 20 bold").pack()
- Button(root, text="Initiate Process Now", command=see_wifi_pass).pack(pady=10)
- Button(root, text="Show wifi pass details", command=show_wifi_pass).pack(pady=10)
- Entry(root, textvariable=pass_details, width=50).pack(pady=10)
- Button(root, text="Copy to clipbord", command=copytoclipboard).pack(pady=10)
- root.mainloop()
Add Comment
Please, Sign In to add comment