Been working on a code that pulls information on the network, BSSID and system info. I would am going to be turning this into an .exe for work but I am having trouble adding user input to choose the path?
import subprocess
netinfo = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8').split('\n')
profiles = [i.split(":")[1][1:-1] for i in netinfo 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]),file=open(/Desktop/wlanpass.txt", "a"))
except IndexError:
print ("{:<30}| {:<}".format(i, ""))
input("")
I was thinking about adding an input option but not sure how this would work with user input? Do I need to add a Tkinter pop up or would it be the same as VBA where the file path opens up?
Thank you