I'm doing some testing on executing remote PHP via PHP hidden inside a PNG file. I've got a PNG file on my server with the following PHP code stored inside the PNG file.
The idea being is that I pass a GET request with shell_exec OR exec function, followed by POST data 1 = the command to run.
I have been trying to use curl without success. I keep getting HTTP/1.1 404 not found.
curl http://192.168.0.6/phppng.png?0=shell_exec' -i -d "1=id"
Any ideas what can I use to send the GET request and include the POST data?