-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
import subprocess
meta_data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles'])
data = meta_data.decode('utf-8', errors ="backslashreplace")
data = data.split('\n')
profiles = []
for i in data:
if "All User Profile" in i:
i = i.split(":")
i = i[1]
i = i[1:-1]
profiles.append(i)
print("{:<30}| {:<}".format("Wifi Name Davemondragon" "Password"))
print("-------------------------------------------")
for i in profiles:
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles', i, 'key = clear'])
results = results.decode('utf-8', errors="backslashreplace")
results = results.split('\n')
password = [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, ""))
except subprocess.CalledProcessError:
print("Encoding Error Occurrsd")
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels