r/PHPhelp • u/threeway • Jan 22 '17
Can someone explain what this php malware does?
So this code was inserted into every single .php file on my webserver:
http://pastebin.com/CMSbWBaD
I've tried running it through unphp and this is what i got:
https://www.unphp.net/decode/a7a9198fc5cf7c7c53480448a36e388f/
Can someone with experience in PHP please explain to me what this malware does?
1
u/John0x00 Jan 22 '17
Similar to this, But using HTTP_REFERER
→ More replies (1)2
u/threeway Jan 22 '17
So in laymen terms, what can this malware do?
2
u/John0x00 Jan 22 '17
Depends how secure your server is... But they can do anything you can do in PHP
Get directory listings
Get file contents
Delete files, Write files
Anything you can do in PHP; they can do
1
u/threeway Jan 22 '17
Thank you for your response :). Unfortunately don't know anything about PHP. Guess I'll be reverting the files to an old backup.
→ More replies (1)
0
Jan 23 '17
[deleted]
1
u/threeway Jan 23 '17
Hi there, I'll be looking into this. It was a new WordPress site just set up so we can build it before going live. Guess I'll be limiting who can upload content on it ASAP when we recover. Thanks for the advice :).
0
3
u/iKevz Jan 22 '17
was this on a wordpress server?