01-21-2019, 01:31 AM
this should do it for ya
Function GetSSIDandPassword
Function GetSSIDandPassword
str wlpassword wlname cl="cmd.exe /C NETSH WLAN SHOW INTERFACE | findstr /r ''^....SSID''"
RunConsole2 cl wlname
wlname.trim
wlname.replacerx("SSID :" "")
out wlname
cl=F"cmd.exe /C netsh wlan show profile name={wlname} key=clear | findstr Key"
RunConsole2 cl wlpassword
wlpassword.trim
wlpassword.replacerx("Key Content :" "")
out wlpassword