Use GUID instead of random

This commit is contained in:
WindowsAddict 2024-07-23 07:33:45 +05:30
parent 7744a34ba7
commit 0b7cc3d8a0

2
get
View File

@ -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" }