Python to Get Wifi Password with Full Source Code

A simple python script that tells you the password of the wifi you’re connected with

Requirements:

just need to install python in your system.

Run the Code:

Run the file from your code editor or Ide or u can also run it from the command line.

(OR)

python wifi.py
Code language: CSS (css)

Source Code:

wifi.py

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 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: print("{:<30}| {:<}".format(i, results[0])) except IndexError: print("{:<30}| {:<}".format(i, ""))
Code language: PHP (php)

Leave a Comment