GUI Application To See wifi password in Python

GUI Application To See wifi password in Python

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.

assignment advertisement

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:

  • You Can Now Run AI Fully Offline on Your Phone — Google’s Gemma 4 Just Changed Everything
    What if your smartphone could run a powerful AI assistant without internet, without cloud, and without API costs? That’s now possible. Google recently introduced a new generation of compact AI models designed specifically for on-device use, and they can run entirely offline on consumer phones using the AI Edge Gallery app. This marks a major…
  • I Built a 24×7 AI Blogging System for WordPress Using Python (Free) — Full Code Inside
    In this article, I will show you how I built a powerful Python-based system that automatically generates and publishes articles to WordPress — completely free and running 24×7. This project handles everything: All you need to do is provide keywords. What This System Actually Does This is not just a script—it’s a complete automation pipeline….
  • This Reddit User “Hacked” AI With Simple Tricks… And The Results Are Insane
    What if you could get dramatically better answers from AI—without any advanced prompting skills, tools, or coding? A recent Reddit post is going viral for exactly this reason. The user claims they’ve been “manipulating” AI models using simple psychological tricks—and surprisingly, the results are much better. Now, this isn’t some technical exploit or hidden feature….
  • One “rm -rf” Command Almost Wiped Out $100 Million Worth of Toy Story 2
    In software, a single command can make or break everything. But in the late 1990s, one mistake at Pixar nearly erased months of work—and potentially $100 million worth of production—on Toy Story 2. This isn’t a myth. It’s a real incident that developers still talk about today. What Actually Happened During production, the team was…
  • How to Make Money with ChatGPT in 2026: A Real Guide That Still Works
    There’s a silent thought many people are carrying right now. It doesn’t always get said out loud, but it’s there: “AI has made everything too competitive… maybe it’s too late now.” It feels like everyone is doing something online. Everyone has access to tools like ChatGPT. Content is everywhere. Freelancers are everywhere. Ideas are everywhere….


Share:

Author: Harry

Hello friends, thanks for visiting my website. I am a Python programmer. I, with some other members, write blogs on this website based on Python and Programming. We are still in the growing phase that's why the website design is not so good and there are many other things that need to be corrected in this website but I hope all these things will happen someday. But, till then we will not stop ourselves from uploading more amazing articles. If you want to join us or have any queries, you can mail me at admin@copyassignment.com Thank you

Related Articles