# Kuntur — free AI scanner for Windows (runs locally, sends nothing) # Usage (PowerShell, no Administrator required): # irm https://app.kuntur.io/scan.ps1 | iex $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" # the progress bar makes Invoke-WebRequest many times slower on Windows PowerShell 5.1 $Server = 'https://app.kuntur.io' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" } $dir = Join-Path $env:TEMP ("kuntur-scan-" + [guid]::NewGuid().ToString("N").Substring(0, 8)) New-Item -ItemType Directory -Force -Path $dir | Out-Null $exe = Join-Path $dir "kuntur-agent.exe" # Expected SHA-256 of each scanner binary, filled in by the server from the # exact files it serves (also listed at $Server/downloads/SHA256SUMS). $want = @{ "amd64" = 'e49a20a567db742879b06f59b4c301b61667b02fea6d3a0ac5ed58d798b3a6cd'; "arm64" = 'f01aeebccc8dc9eda97a271631e2e483141d10af5987bfcaeee5ee10399ade65' }[$arch] $url = "$Server/downloads/kuntur-agent-windows-$arch.exe" $out = Join-Path ([Environment]::GetFolderPath("Desktop")) ("kuntur-ai-report-" + (Get-Date -Format "yyyyMMdd-HHmm") + ".html") try { if (-not $want) { throw "Kuntur: the server publishes no scanner for windows/$arch" } Write-Host "Kuntur: downloading the scanner..." try { # one retry; on failure say what happened instead of a raw web exception try { Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $exe } catch { Start-Sleep -Seconds 2; Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $exe } } catch { throw "Kuntur: could not download the scanner from $url (check your internet connection or proxy): $($_.Exception.Message)" } $got = (Get-FileHash -Algorithm SHA256 -Path $exe).Hash.ToLowerInvariant() if ($got -ne $want) { Remove-Item -Force $exe -ErrorAction SilentlyContinue throw "Kuntur: checksum mismatch for the downloaded scanner, aborting (expected $want, got $got). The file was deleted and nothing was run. A proxy or antivirus may have altered it; try again." } Write-Host "Kuntur: SHA-256 verified ($got)" Write-Host "Kuntur: scanning this computer for AI tools (nothing is sent)..." try { $env:KUNTUR_LANG = (Get-Culture).TwoLetterISOLanguageName } catch {} & $exe scan --out $out if ($LASTEXITCODE -ne 0) { throw "Kuntur: scan failed ($LASTEXITCODE)" } Write-Host "Kuntur: report saved to $out" Start-Process $out Write-Host "Kuntur: nothing was sent to our servers." Write-Host "" Write-Host "To keep this inventory for every computer in your company, free for up to 5:" Write-Host " https://kuntur.io/signup?utm_source=free-scan&utm_medium=terminal" } finally { Remove-Item -Recurse -Force $dir -ErrorAction SilentlyContinue }