I was browsing through another, non-PHP related forum when I came across this post:
Haha, then you get an HTML version, the only way to steal a php script is to dload the file, its simple if you know how, just dload Download Accelator + and then you write the url to the file
and then you dload it... Easy
and immediately after that:
I know this becouse i was playing a hacking game on this place:
try2hack.nl (i think it was something like that)
I was curious, and replied with:
I dont think that will work out, you'll just be downloading the html page that is served.
The user then told me:
NOt if you enter a url like.. http://www.blabla.com/file.php
Now, I was not convinced so I went to download download accelerator plus, and tried it out on my own PHP pages.
As expected, I only downloaded the parsed page, i.e. clientside code.
I challenged the user to provide a proof-of-concept, e.g. the source code of the messageboard we were posting in.
There was no reply.
I am still curious as to whether such an exploit is possible.
Anyone succeeded in such an attempt at obtaining serverside code this way?
We are, of course, assuming the webserver is properly configured to parse PHP scripts.