summaryrefslogtreecommitdiff
path: root/get
diff options
context:
space:
mode:
authorWindowsAddict2024-07-23 02:03:45 +0000
committerWindowsAddict2024-07-23 02:03:45 +0000
commit0b7cc3d8a015294175af2711de3c7be68a60d696 (patch)
tree171e9709bddd26a463019d40c501c9d07964f313 /get
parent7744a34ba7aa6e99ceadef58552b0b38339d2f32 (diff)
downloadmassgravel.github.io-0b7cc3d8a015294175af2711de3c7be68a60d696.zip
Use GUID instead of random
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" }