From 0b7cc3d8a015294175af2711de3c7be68a60d696 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Tue, 23 Jul 2024 07:33:45 +0530 Subject: [PATCH] Use GUID instead of random --- get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get b/get index c1dde3a..6143704 100644 --- a/get +++ b/get @@ -18,7 +18,7 @@ catch { $response = Invoke-WebRequest -Uri $RandomURL2 -UseBasicParsing } -$rand = Get-Random -Maximum 99999999 +$rand = [Guid]::NewGuid().Guid $isAdmin = [bool]([Security.Principal.WindowsIdentity]::GetCurrent().Groups -match 'S-1-5-32-544') $FilePath = if ($isAdmin) { "$env:SystemRoot\Temp\MAS_$rand.cmd" } else { "$env:TEMP\MAS_$rand.cmd" }