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:

  • Aya Expanse supports multiple languages for diverse global applications
    Snapshot Aya Expanse is a cutting-edge multilingual model that has achieved exceptional performance across 23 different languages, setting a new benchmark for language understanding and generation capabilities. Why this matters The implications of Aya Expanse are significant, as it enables developers to create more inclusive and effective applications that can cater to diverse user bases…
  • Alibaba releases Page Agent on GitHub for public access
    Snapshot GitHub’s trending page has highlighted Page Agent, an open-source project by Alibaba. This innovative tool allows for efficient and simplified web page analysis, providing developers with valuable insights into page performance and structure. Why this matters Page Agent’s ability to analyze web pages and provide actionable data has significant implications for developers. By leveraging…
  • Google Sheets Gemini reaches new levels of performance and accuracy
    Gemini in Google Sheets has achieved state-of-the-art performance, with a 70.48% success rate in autonomously manipulating complex, real-world spreadsheets on the full SpreadsheetBench dataset. This milestone marks a significant advancement in AI-powered spreadsheet capabilities, positioning Gemini as a leader in the field. Situation The recent announcement of new beta features for Gemini in Sheets has…
  • Artificial intelligence boosts cardiac care in rural Australian communities
    Google is partnering with leading Australian health organizations to bring new AI tools to regional communities, with a $1 million investment from Google Australia’s Digital Future Initiative. This project aims to identify heart health risks early, making proactive care possible for more people, particularly in rural Australia where individuals are 60% more likely to die…
  • NVIDIA GTC 2026 Offers Insights into Future Artificial Intelligence Developments
    NVIDIA’s GTC 2026 conference is now underway, bringing together 30,000 attendees from 190 countries to explore the latest advancements in AI, with a focus on engineering implications. This year’s event introduces OpenClaw, the fastest-growing open source project in history, allowing attendees to build and deploy their own proactive, always-on AI assistants. What’s New with OpenClaw…


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