$ErrorActionPreference = 'Stop' $ProgressPreference = 'SilentlyContinue' $api = 'https://go.leetint.lol' function Line { param($t = '') Write-Host $t } function Step { param($t) Write-Host ":: $t... " -NoNewline } function Ok { param($t = 'OK') Write-Host "[ $t ]" -ForegroundColor Green } function Fail { param($why) Write-Host '[ Failed ]'; Line "error: $why" } try { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 } catch {} Line Line ':: LeetINT AutoScan' Step "Connecting to $api" try { Invoke-RestMethod -Uri "$api/api/status" -TimeoutSec 20 | Out-Null Ok 'Connected' } catch { Fail 'could not reach the server. Check your connection and try again.' return } Line $code = (Read-Host ':: Enter access code').Trim() if (-not $code) { Line 'error: no code entered. Nothing was run.'; return } $machine = '' try { $nameBytes = [Text.Encoding]::UTF8.GetBytes("$env:COMPUTERNAME".ToLower()) $machine = 'pc-' + (-join ([Security.Cryptography.SHA256]::Create().ComputeHash($nameBytes) | Select-Object -First 5 | ForEach-Object { $_.ToString('x2') })) } catch {} Step 'Verifying access code' try { $claim = Invoke-RestMethod -Uri "$api/api/autoscan/claim" -Method Post -TimeoutSec 30 ` -ContentType 'application/json' ` -Body (@{ code = $code; machine = $machine } | ConvertTo-Json -Compress) Ok } catch { $msg = 'That code could not be used. Ask for a new one with /autoscan.' try { $msg = ($_.ErrorDetails.Message | ConvertFrom-Json).message } catch {} Fail $msg return } Line Line ":: Request from $($claim.requester)" Line ' Read-only check for traces of cheats and exploits. None of your files are changed or deleted.' Line ' It reads system logs, program history, browser history, running programs and the names of files on this PC.' Line ' It notes which Roblox accounts have played on this PC, and whether Discord on this PC has been in a known cheat server.' Line ' Names and fingerprints of unsigned programs and of this PC''s hardware are sent with the result and kept for up to 180 days.' Line ' The check usually takes 20 to 30 minutes, and up to 45 on a slow or very full PC. Leave the window open until it says the result was sent.' Line " $($claim.requester) receives the list of findings, not access to this PC." Line ' Needs admin permission to read system logs.' Line $ok = Read-Host ':: Proceed with PC check? [y/N]' if ($ok.Trim().ToUpper() -ne 'Y') { Line ':: Cancelled. Nothing was run.'; return } Line Step 'Downloading checker' $dir = Join-Path $env:TEMP ("leetint_" + [guid]::NewGuid().ToString('N')) New-Item -ItemType Directory -Path $dir -Force | Out-Null $target = Join-Path $dir 'leetint-pccheck.ps1' try { Invoke-WebRequest -Uri "$api/api/autoscan/script" -Headers @{ Authorization = "Bearer $($claim.token)" } -OutFile $target -TimeoutSec 120 -UseBasicParsing Ok } catch { Fail 'could not download the checker. Try again shortly.' Remove-Item -LiteralPath $dir -Recurse -Force -ErrorAction SilentlyContinue return } Step 'Requesting admin permission' $tokenFile = Join-Path ([IO.Path]::GetTempPath()) ('leetint_' + [guid]::NewGuid().ToString('N') + '.tok') try { $pathsJson = if ($claim.paths) { $claim.paths | ConvertTo-Json -Compress } else { '' } [IO.File]::WriteAllLines($tokenFile, [string[]]@("$($claim.token)", $api, $pathsJson)) Start-Process powershell.exe -Verb RunAs -ArgumentList @( '-NoProfile', '-NoExit', '-ExecutionPolicy', 'Bypass', '-STA', '-File', "`"$target`"", '-TokenFile', "`"$tokenFile`"" ) Ok Line ':: Starting PC check... you can close this window.' } catch { Fail 'the admin prompt was declined. Nothing was run.' Remove-Item -LiteralPath $tokenFile -Force -ErrorAction SilentlyContinue Remove-Item -LiteralPath $dir -Recurse -Force -ErrorAction SilentlyContinue }