mirror of
https://github.com/massgravel/get.activated.win.git
synced 2024-11-23 17:30:52 +07:00
Use GUID instead of random
This commit is contained in:
parent
7744a34ba7
commit
0b7cc3d8a0
2
get
2
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" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user