
This program is the advanced or you can say GUI version of “See connected wifi passwords using Python“. So if you want to understand the logic of how to see wifi password using Python then we suggest you go to the “See connected wifi passwords using Python”. Where we have explained all about how can we see the previously connected wifi passwords.
So, this is the program where you can see the previously connected wifi passwords just by clicking the buttons, and also you can copy them to clipboard as well.

We are using tkinter
for GUI and pyperclip
to copy the extracted passwords to the clipboard.
Code
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()
You can copy our code if you are facing any issues while running your code, and below is the output of our code GUI Application To See wifi password in Python:-
Updated Version:
from tkinter import * import pyperclip root = Tk() root.geometry("900x900") 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] myList.append("------------------------") 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("Wifi-->" + i) # myList.append("--") myList.append("Password-->" +results[0]) myList.append("------------------------") except IndexError: myList.append("Wifi-->" +i) # myList.append("--") myList.append("") def show_wifi_pass(): def listToString(s): # initialize an empty string myStr = "" # traverse in the string for ele in s: myStr = myStr + ele + "\n" # return string return myStr myStr = listToString(myList) pass_details.set(myStr) def copytoclipboard(): password = pass_details.get() pyperclip.copy(password) Label(root, text="Gui Wifi Password Checker", font="calibri 20 bold").place(x = 60,y = 50) Button(root, text="Initiate Process Now", command=see_wifi_pass).place(x = 60, y = 90) Button(root, text="Show wifi pass details", command=show_wifi_pass).place(x = 60, y = 130) Entry(root, textvariable=pass_details).place(width=800, height=50, x = 60, y = 160) Button(root, text="Copy to clipbord", command=copytoclipboard).place(x = 60, y = 220) root.mainloop()
Also read:
- The system of the binary conversionThe binary number system defines a number in a binary system. You only find the number in a two-number system the 1 and the 0. The binary number system is an alternative system of representation to the decimal number system. The decimal number system is from (0 to 9) and has a base of 10…
- What is web development for beginners?Introduction In web development, we refer to website so web development refers to website development. “Web” word has been taken from the spider’s web because of the analogy that like a web is connected similarly websites are also connected to each other through the Internet. History of web development 3 Pillars of web development HTML…
- Guide to Proxy Servers: How They Work and Why You Need Them?What is a web proxy? During our college days, we often heard the term “proxy” which referred to the act of someone else marking our attendance, allowing us to be present in a class even if we were not physically there. In the context of the Internet, a web proxy works similarly, acting as an…
- Python | Check Armstrong Number using for loopAn Armstrong number is a number that is equal to the sum of its own digits raised to the power of the number of digits. Consider 153. It has 3 digits, so we raise each digit to the power of 3(the number of digits) and sum them up:1^3 + 5^3 + 3^3 = 1 +…
- Python | Factorial of a number using for loopThe factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. The factorial of 0 is defined to be 1. The factorial formula can be expressed as: n! = 1 * 2 * 3 * … * n Code to calculate factorial of…