Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 08:04:59 PM

Pages: [1]   Go Down
  Print  
Author Topic: Website hacked, need help using cpanel to view logs..  (Read 1920 times)
Pllasma
Newbie
*
Offline Offline

Posts: 1


« on: June 10, 2009, 02:20:12 PM »

All of my index.php and index.html files have been hacked with the following:





which logs in cpanel would I used to find out who did this?
Logged
JamesYap
Intergalactic Superstar
*****
Offline Offline

Posts: 167



WWW
« Reply #1 on: June 10, 2009, 02:46:51 PM »

Isn't this suppose to be Google Analytics tracking code?  I could only think of 1 reason why they would do that, that you run a very popular site and they want to track your traffic source! Or maybe it is a plugin of your site that insert the code?

You can't find it in the log file unless you know the hacker ip address. Or if it uploads some other files to your server that has a special name. Or else, nothing to trace with.
Logged

Why LunarPages is the best web hosting? Read our LunarPages Review to find out now.
PremiereWebDesign
Professional Web Development at an Affordable Price
Trekkie
**
Offline Offline

Posts: 10


WWW
« Reply #2 on: June 13, 2009, 04:48:34 PM »

That is a Google analytics script, but it isn't right....There are some characters in there that should not be in a Google Analytics script.
Logged

Mitch
Berserker Poster
*****
Offline Offline

Posts: 12838


WWW
« Reply #3 on: June 15, 2009, 06:26:39 AM »

I would also be interested in what scripts/services you might be running.  I would suggest scanning your PC for viruses/malware/spyware, cleaning off your hosting account, and make sure you are using the latest version of any scripts you have installed.  Also checking folder/file permissions is something you'll want to do - and check through all your web site files to make sure no other files have been compromised.  Also, I'd toss in to change all your passwords too.
Logged

New to Web Site Hosting? Check Out the Lunarpages Blog Hosting Guide!


Follow us @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
Mitch
Berserker Poster
*****
Offline Offline

Posts: 12838


WWW
« Reply #4 on: June 15, 2009, 11:31:46 AM »

Also found this news story, which might be related to your issue:

Quote
About 40,000 Web sites appear to have been compromised with rogue JavaScript code that redirects Web surfers to a fake Google Analytics site, after which they get passed onto a site that tries to exploit Internet Explorer or Firefox vulnerabilities to infect that PC with malware, according to a Websense researcher quoted by Computerworld. Just for good measure, if the site can't find a browser vulnerability, it tries to trick the user into downloading a Trojan.

via New malware attack infecting Web sites
Logged

New to Web Site Hosting? Check Out the Lunarpages Blog Hosting Guide!


Follow us @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
MarkCale aka Madscape
Spaceship Navigator
*****
Offline Offline

Posts: 78



« Reply #5 on: October 27, 2009, 12:14:21 AM »

AWESOME MITCH!!  Thumbs Up  also note that rogueware is rampant is extremely difficult to remove off your PC as well. There are some rogueware scanners out there that can do the job, but best thing anyone can do always keep your content secure, which is bottom line. If, I am not mistaken you also want to ensure that you have your logs archived as the server only keeps logs for 24 hours. Unfortunately if you have not archived your logs then it would be impossible to retrieve the information past 24 hours. Also, during your audit you will want to look for excessive hits from a given IP as this may be the attacker. Using the IP deny manager to block them is a good measure as well. Also, checking with the script developers on how to secure your script even more is greatly increasing the security of your content as well.
Logged

Forum Lurker and Former Galactic Tekkie, mostly a jack of trades and master of none!  Mark H. Cale
Pages: [1]   Go Up
  Print  
 
Jump to: