Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 17, 2013 4:37 pm 
Offline
Senior Member

Joined: Tue Aug 14, 2012 5:55 pm
Posts: 82
Hello,

Server got hacked and all php files in all website contain the following code in the beginning.

http://pastebin.com/3PUgfwju

As I am hardening the server and trying to find culprit issues;

Can someone please find me a script which i can run to remove this code from all php files on the server.

Will be very grateful


Top
   
PostPosted: Tue Dec 17, 2013 6:06 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Scrub entire server, start fresh, reload files from backup.

It's not worth the risk in trying to "fix" hacked files, you'll NEVER be sure you got them all, and then all of your work in rebuilding your server is once again rubbish.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Wed Dec 18, 2013 6:43 am 
Offline
Senior Member

Joined: Tue Aug 14, 2012 5:55 pm
Posts: 82
vonskippy wrote:
Scrub entire server, start fresh, reload files from backup.

It's not worth the risk in trying to "fix" hacked files, you'll NEVER be sure you got them all, and then all of your work in rebuilding your server is once again rubbish.


Yeah, thats the way to go about it. Thanks

Still if anyone find himself in the same boat, use this;

http://pastebin.com/UyAR3nCr


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group