Site I'm working on for client got hacked. PHP code injected into index.php, anyone know what it does?

Title of the post says it all, here's a link to the code:

php hack code - Pastebin.com

Obviously, it's something fucky to say the least.

Edit:

Pastebin took it down pretty quickly, let's try github now

https://gist.github.com/MichealPearce/3d3fdf659078f13635af49b631affd46

Edit Edit:

Here's the de-obfuscated code that runs from the main script

https://gist.github.com/MichealPearce/d459ede9c6a5ddcc022fdccf3a1d6060

Edit Edit Edit:

Also want to thank the hackers for making a backup copy of the index.php

submitted by /u/MichealPearce
[link] [comments]

from hacking: security in practice https://ift.tt/WQ5XJC3

Comments