WARNING: I believe this code is malicious....
I recently had a webserver hacked and have identified the suspect code. However it has clearly been obfuscated to hide what it does.
I want to understand what code the script was executing on my server, and also the process used to decode the code.
This is the original code (sorry can't work out how to display it over more than one line):
// Code removed by mod
Which following guidance in these forums, by converting 'eval' to 'print' a couple of times I got to this code.... (hopefully I've decoded it correctly this far).
// Code removed by mod
However, I suspect if I run this resultant code it will still execute something nasty so I'm not sure how to decode from here. Please help!
Thanks in advance.