From f33adc8f14521ac987fc0a2f0ec680f59fbd120f Mon Sep 17 00:00:00 2001 From: "Abdallah.Eldab3" <107326268+AbdallahEldab3@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:40:27 +0300 Subject: [PATCH 1/3] Create saved_wifi_password_retriever.py --- .../saved_wifi_password_retriever.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 saved_WiFi_Password_Retriever/saved_wifi_password_retriever.py diff --git a/saved_WiFi_Password_Retriever/saved_wifi_password_retriever.py b/saved_WiFi_Password_Retriever/saved_wifi_password_retriever.py new file mode 100644 index 0000000..b8a5717 --- /dev/null +++ b/saved_WiFi_Password_Retriever/saved_wifi_password_retriever.py @@ -0,0 +1,7 @@ +import subprocess + +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 profile in profiles: + results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', profile, 'key=clear']).decode('utf-8').split('\n') + print(f"{profile}: {[b.split(':')[1][1:-1] for b in results if 'Key Content' in b][0]}") From d1b5fb7fe86da0e192323f09909a595fa8386b6d Mon Sep 17 00:00:00 2001 From: "Abdallah.Eldab3" <107326268+AbdallahEldab3@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:44:31 +0300 Subject: [PATCH 2/3] Create README.me --- saved_WiFi_Password_Retriever/README.me | 58 +++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 saved_WiFi_Password_Retriever/README.me diff --git a/saved_WiFi_Password_Retriever/README.me b/saved_WiFi_Password_Retriever/README.me new file mode 100644 index 0000000..d4d82b5 --- /dev/null +++ b/saved_WiFi_Password_Retriever/README.me @@ -0,0 +1,58 @@ +Wi-Fi Password Retrieval 🔑📡 +A Python script to retrieve saved Wi-Fi passwords on Windows systems. Useful for network troubleshooting or recovering forgotten passwords. + +Features ✨ +Retrieves all saved Wi-Fi profiles on your machine. + +Displays SSID (network name) and password in clear text. + +Lightweight and no external dependencies (uses built-in subprocess). + +Prerequisites ⚙️ +Operating System: Windows 10/11. + +Python: 3.6+ (tested on 3.10). + +Installation & Usage 🚀 +----------------------- +1. Clone the repository (or download the script): +-->bash<-- +git clone https://github.com/DhanushNehru/Python-Scripts.git +cd Python-Scripts/Networking/WiFi_Password_Retriever +----------------------- +2. Run the script: +-->bash<-- +python wifi_password_retriever.py +----------------------- +3. Output Example: +Saved Wi-Fi Passwords: +Profile: Home_WiFi Password: FluffyBunny123 +Profile: Office_Network Password: Secure@2024 +Profile: Starbucks Password: LatteWithExtraShots +How It Works 🔍 +The script uses Windows' native netsh command to: + +List all saved Wi-Fi profiles. + +Extract passwords (requires admin privileges for decryption). + +Notes ⚠️ +Admin Rights Required: Run the script as Administrator to access passwords. + +Security: Passwords are stored in plaintext in the terminal output. Use responsibly! + +Linux/Mac: Not supported (uses Windows-specific netsh). + +License 📜 +MIT License - Use freely, but credit the original author. + +Contribution 🤝 +Found a bug? Want to improve it? + +Fork the repo. + +Create a PR with your changes. + +Follow the contribution guidelines. + +Disclaimer: Use only on networks you own or have permission to access. From 0aeff8e564da1c063341d0fd05c760dbbbcbf616 Mon Sep 17 00:00:00 2001 From: "Abdallah.Eldab3" <107326268+AbdallahEldab3@users.noreply.github.com> Date: Fri, 25 Apr 2025 21:49:56 +0300 Subject: [PATCH 3/3] Rename README.me to README.md --- saved_WiFi_Password_Retriever/{README.me => README.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename saved_WiFi_Password_Retriever/{README.me => README.md} (100%) diff --git a/saved_WiFi_Password_Retriever/README.me b/saved_WiFi_Password_Retriever/README.md similarity index 100% rename from saved_WiFi_Password_Retriever/README.me rename to saved_WiFi_Password_Retriever/README.md