Small question. I'm trying to figure out what a piece of code does that I came across on a website I visited.
The website has obviously been hacked into, as there's a bunch of minified PHP code up the top of the file. The file (the site's index.php
) is showing server-side code, but appears to not execute, as all is shown in plain-text.
I just (20 minutes ago) send the/a owner and a generic email a message saying their site is most likely hacked, but should take it down nonetheless due to server-side code showing.
All that beside the question: what does the code do?
Partial & not complete screen snippet of said code:
Some important questions before I post any code though:
- Can I just post this code here? Got no idea what it does, though have gone as far as to paste it in my own editor and comment out the final executing bit of PHP code (so there's the assumption it now does not function)
- Is it even allowed to post possibly (very likely I think) malicious code?
- Would a screen snippet of the code be an idea/alternative?