davidbombal / red-python-scripts

MIT License
1.99k stars 1.58k forks source link

windows10-wifi.py displays command prompt windows #44

Open fluffydolphin opened 1 year ago

fluffydolphin commented 1 year ago

Depending on how you run this script it can end up showing command prompt windows due to the fact it is using subprocess so you can add shell = True to these to lines to hind the windows.

profile_info = subprocess.run(["netsh", "wlan", "show", "profile", name], shell = True, capture_output = True).stdout.decode()

profile_info_pass = subprocess.run(["netsh", "wlan", "show", "profile", name, "key=clear"], shell = True, capture_output = True).stdout.decode()