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:
- People are becoming AI Engineer with this free course in 2025: Here is how to join this…Artificial Intelligence (AI) has become a cornerstone of technological advancement, shaping industries and transforming careers. If you’ve been looking to upskill or dive into the fascinating world of AI, freeCodeCamp.org has released an incredible resource: the AI Foundations Course on YouTube. This 11-hour video, created by @LunarTech_ai, is not just another crash course – it’s…
- Apply to Google’s Student Training in Engineering Program (STEP) Intern, 2025Google’s Student Training in Engineering Program (STEP) Intern, 2025, is a fantastic opportunity for students passionate about programming and software development. Designed to support skill-building and career growth, this program offers a chance to work with one of the world’s leading tech companies. Here’s everything you need to know about this internship opportunity. What Is…
- Self-Driving Car Saves Falling Pedestrian, Showcases Promise of Autonomous TechnologyIn a dramatic demonstration of the potential for self-driving technology to enhance road safety, a Waymo’s autonomous vehicle recently avoided a serious accident when a scooter rider, startled by a pothole, lost balance and fell onto the road. The incident, captured on video, highlights the advanced capabilities of modern driverless technology. As the rider tumbled…
- Instant Karma: Employer Fires Tech Team with AI, Faces Backlash on LinkedIn While Seeking New DevelopersIn a bold—and controversial—move, Canadian software developer Wes Winder has sparked heated online debates after replacing his entire development team with Artificial Intelligence (AI). Winder, who took to LinkedIn to announce his decision, has been met with a wave of criticism and ridicule, with many questioning the practicality and ethics of his approach. The Controversial…
- LinkedIn’s COO Reveals the AI Interview Question That Could Land You the Job in 2025In a world where Artificial Intelligence (AI) is reshaping the workplace and redefining job roles, LinkedIn’s Chief Operating Officer, Dan Shapiro, believes there’s one interview question that could set you apart from the competition. During a recent keynote on the future of work, Shapiro emphasized the growing importance of AI in both personal and professional…