Welcome folks today in this post we will be getting wifi saved passwords
inside your pc or laptop using python. All the full source code of the application is shown below.
Get Started
In order to get started you need to create an app.py
file and copy paste the following code
app.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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, "")) |
And now you can run this python script
using the below command
python app.py
So now it will list all your wifi
saved passwords inside the console as shown below