Hostile 94% powershell Download

install.ps1

Invokes PowerShell HTTP request cmdletInvokes PowerShell REST request cmdlet
SHA-2569d8de06bc31e7b9e68fc7bb32caafe5bb34c881368ef3b96d0f02bd62e668c86

Evidence

Comment line documents piped eval lines 1–12
1# Vite+ CLI Installer for Windows
2# https://vite.plus/ps1
3#
4# Usage:
5# irm https://vite.plus/ps1 | iex
6#
7# Environment variables:
8# VP_VERSION - Version to install (default: latest)
9# VP_HOME - Optional pin for the monolithic layout. If unset, Vite+ reuses an
10# existing %USERPROFILE%\.vite-plus install. Otherwise, the complete
11# VP_*_DIR group or Windows Local and Roaming folders select the roots.
12# VP_BIN_DIR / VP_DATA_DIR / VP_CACHE_DIR - Complete group …
HTTP URL string literal lines 25–28
25:32… FIG_REGISTRY) { $env:NPM_CONFIG_REGISTRY.TrimEnd('/') } else { "https://registry.npmjs.org" }
26# Local tarball for development/testing
27$LocalTgz = $env:VP_LOCAL_TGZ
28# Local binary path (set by install-global-cli.ts for …
URL ends in .cmd, .ps1 or .dll lines 36–58
36:8… a coherent, clearly-defined test build.
37$BridgeDownloadBase = "https://registry-bridge.viteplus.dev/voidzero-dev/vite-plus"
38$BridgeRegistry = "https://registry-bridge.viteplus.dev/"
39$SupportedProvenancePredicateTypes = @(
40 "https://slsa.dev/provenance/v1",
41 "https://slsa.dev/provenance/v0.2"
42)
43
44$script:InstallStopSignal = 'VP_INSTALL_STOP'
45$script:PackageMetadata = $null
46# Legacy is published beside this bootstrap; preview builds rewrite this origin.
47$LegacyInstallerUrl = if ($env:VP_LEGACY_INSTALLER_URL) { $env:VP_LEGACY_INSTALLER_URL } else { 'https://viteplus.dev/install-legacy.ps1' }
48$InstallerDirectory = $PSScriptRoot
49
50function Write-Info {
51 param([string]$Message)
52 Write-Host "info: " -ForegroundColor Blue -NoNewline
53 Write-Host $Message
54}
⋯4 lines
PowerShell executable name or command options lines 64–79
64:66… hell should keep the
65 # session alive. CI, script files, and `powershell -Command "..."` must exit non-zero.
66 if ($env:CI -eq "true") {
67 return $false
68 }
69 if ($PSCommandPath) {
70 return $false
71 }
72 if (-not [Environment]::UserInteractive) {
73 return $false
74 }
75 try {
76 $commandLine = (Get-CimInstance Win32_Process -Filter "ProcessId=$PID").CommandLine
77 if ($commandLine -match '(^|\s)-Command(\s|$)') {
78 return $false
79 …
PowerShell writes colored terminal output lines 92–104
92:36…
93}
94
95function Write-Error-Exit {
96 param([string]$Message)
97 Write-Host "error: " -ForegroundColor Red -NoNewline
98 Write-Host $Message
99 Exit-Installer
⋯5 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.