summaryrefslogtreecommitdiff
path: root/get
diff options
context:
space:
mode:
Diffstat (limited to 'get')
-rw-r--r--get2
1 files changed, 1 insertions, 1 deletions
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" }