Benign powershell Download

install.ps1

Invokes PowerShell HTTP request cmdletInvokes PowerShell REST request cmdlet
SHA-2566501ee6d341816a388d98bf3fcbef3b2c445a9ecf0dbf4d9d6770d8fc6d32be4

Evidence

Block comment documents IWR piped to IEX lines 1–11
1#Requires -Version 5.1
2<#
3.SYNOPSIS
4 OpenCrabs installer for Windows.
5
6.DESCRIPTION
7 iwr -useb https://opencrabs.com/install.ps1 | iex
8
9 Resolves the latest release, verifies the SHA-256 against the release's own
10 SHA256SUMS file, and installs every exe and DLL the archive ships (the
11 binary, the rtk helper, and the MSVC runtime beside them) into …
PowerShell creates a ScriptBlock lines 14–18
14:20… build a script block instead of piping straight into iex:
15 & ([scriptblock]::Create((iwr -useb https://opencrabs.com/install.ps1))) -Version v0.5.11
16
17.PARAMETER Version
18 Install a specific release tag (default: th …
LOCALAPPDATA env-var path reference lines 21–31
21:52… y archive from v0.6.0
22 carries both clients; this picks which one is installed.
23
24.PARAMETER Dir
25 Install directory (default: %LOCALAPPDATA%\OpenCrabs\bin).
26
27.PARAMETER DryRun
28 Print the plan and exit without downloading anything.
29
30.PARAMETER NoPathUpdate
31 Install the binaries but …
PowerShell script sets stop-on-error behavior lines 45–56
45:8… itch]$NoPathUpdate,
46 [switch]$NoLaunch,
47 [switch]$Help
48)
49
50$ErrorActionPreference = 'Stop'
51$ProgressPreference = 'SilentlyContinue'
52
⋯4 lines
Executable URL inside a longer literal lines 58–83
58:9… Write-Say {
59 param([string]$Message)
60 Write-Host $Message
61}
62
63function Write-Warn {
64 param([string]$Message)
65 Write-Host "warning: $Message" -ForegroundColor Yellow
66}
67
68function Die {
69 param([string]$Message)
70 Write-Host ''
71 Write-Host "error: $Message" -ForegroundColor Red
72 throw 'OpenCrabs install failed.'
73}
74
75function Show-Usage {
76 Write-Host @'
77OpenCrabs installer for Windows.
78
79 iwr -useb https://opencrabs.com/install.ps1 | iex
80
81Resolves the latest release, verifies the SHA-256 against the release's own
82SHA256SUMS file, and installs every exe and DLL the archive ships (the binary,
83the rtk helper, and the MSVC runtime beside them) into a di …

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.