diff --git a/python/wifipassword.py b/python/wifipassword.py new file mode 100644 index 00000000..25ba40fe --- /dev/null +++ b/python/wifipassword.py @@ -0,0 +1,10 @@ +import subprocess +a=subprocess.check_output(['netsh','wlan','show','profiles']).decode('utf-8').split('\n') +a=[i.split(":")[1][1:-1] for i in a if "All User Profile" in i] +for i in a: + results=subprocess.check_output(['netsh','wlan','show','profiles',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,""))