Skip to content

DaveloreV1 #20

@lagmaymark109-creator

Description

@lagmaymark109-creator

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions