diff options
| author | WindowsAddict | 2024-07-23 02:03:45 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-07-23 02:03:45 +0000 |
| commit | 0b7cc3d8a015294175af2711de3c7be68a60d696 (patch) | |
| tree | 171e9709bddd26a463019d40c501c9d07964f313 /get | |
| parent | 7744a34ba7aa6e99ceadef58552b0b38339d2f32 (diff) | |
| download | massgravel.github.io-0b7cc3d8a015294175af2711de3c7be68a60d696.zip | |
Use GUID instead of random
Diffstat (limited to 'get')
| -rw-r--r-- | get | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" }
|
