Benign linux Download

install.sh

AArch64 (ARM64) architecture stringReferences curl flags and HTTP URL
SHA-25636da0ebaf3b9ff3cdfed261d6fa3505178d7289b712f1504ba4c0a538da9a8f3

Evidence

Text contains curl piped to sh lines 1–14
1#!/bin/sh
2# Loctree CLI installer (stable registry lane)
3#
4# Usage:
5# curl -fsSL https://loct.io/install.sh | sh
6#
7# Env overrides:
8# LOCTREE_VERSION exact release version (default: live registry current)
9# INSTALL_DIR where binaries/wrappers are placed (default: ~/.local/bin)
10# CARGO_HOME cargo home for the EXPLICIT source fallback (default: ~/.cargo)
11# LOCTREE_BASE_URL release base URL (default: https://loctree.com/releases)
12# LOCTREE_GPG_KEY_URL release signing public key URL (default: https://loctree.com/loctree-signing.asc)
13# LOCTREE_GPG_FINGERPRINT expected release key fingerprint
14# LOCTREE_REQUIRE_GPG=1 fail if the GPG key or .sig sidecar i …
.zshrc shell profile filename lines 20–24
20:62… ra layer on macOS)
21# LOCTREE_NO_PROFILE_UPDATE=1 do not edit ~/.zshrc when PATH is missing
22#
23# Design notes (0.12.3 hardening, vs the 0.10.2 installer):
24# - NO silent cargo fallback: any download …
Code-signing terminology or command reference lines 25–32
25:24… ists ONLY behind LOCTREE_ALLOW_CARGO_FALLBACK=1 and is
26# clearly labelled as an unverified install.
27# - GPG is the trust root and is NOT substitutable: macOS codesign verify is
28# an ADDITIONAL layer on darwin, never a replacement for GPG.
29# - Artifact names are resolved from the release manifest.json (artifacts
30# carry the suite commit SHA in the file name, e.g.
31# loctree-0.12.3-g45cf015-<target>.tar.gz). Legacy name format is used only
32# when no manifest is ava …
Command emits terminal control sequences lines 53–60
53:36… al summary.
54LOCTREE_COMMIT=""
55INSTALLED_VIA="prebuilt"
56
57red() { printf '\033[0;31m%s\033[0m\n' "$*"; }
58green() { printf '\033[0;32m%s\033[0m\n' "$*"; }
59yellow() { printf '\033[0;33m%s\033[0m\n' "$*"; }
60blue() { print …
Shell invokes the curl command lines 60–82
60:22… [0;34m%s\033[0m\n' "$*"; }
61
62need_cmd() {
63 if ! command -v "$1" >/dev/null 2>&1; then
64 red "missing required command: $1"
65 exit 1
66 fi
67}
68
69resolve_version() {
70 if [ -z "$VERSION" ]; then
71 need_cmd curl
72 index_url="$BASE_URL/index.json"
73 if ! index_json="$(curl -fsSL "$index_url" 2>/dev/null)"; then
74 red "release index unavailable: $index_url"
75 exit 1
76 fi
77 VERSION="$(printf '%s' "$index_json" \
78 | tr '\n' ' ' \
79 | sed -n 's/.*"current"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')"
80 if [ -z "$VERSION" ]; then
81 red "release index has no current version: $index_url"
82 exit …

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.