Results 1 to 3 of 3
  1. #1

    Exclamation .htaccess injected help please

    I am on a linux box.

    I have been cleaning up a real bad mess on my server for the last week. After many days of removing and editing files that were injected added to the server I discovered all the htaccess files have been appended with the following:

    Options -MultiViews
    ErrorDocument 404 whatever bad file.php
    The whatever bad file above is the various location and file name for an infected file(s) we removed.

    Since there are about 15,000 of these files infected and the whatever bad file is different for all of them, what is the best way to remove these lines from the htaccess files?

    Thank you for your time

  2. #2
    Sorry to press this but I really need some help guys. Please!

  3. #3
    Join Date
    Oct 2008
    Chicago, IL
    You can use grep to search and replace the files. Although, you might just be better off deleting all those .htaccess files.

    grep -r -l 'Options -MultiViews' * | more

    Will give you a list of the files. You can redirect this to a file or another command that will delete those files.

    First, I would recommend that you determine how the compromise happened. Otherwise you might find that before you get all this cleaned up, you'll be re-infected with something else that might require even more work to clean.

    Do you have log files available?

Similar Threads

  1. my files getting file injected
    By 100mbhosting in forum Hosting Security and Technology
    Replies: 5
    Last Post: 01-28-2010, 08:42 AM
  2. .js file getting injected?
    By chasebug in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-14-2009, 07:36 AM
  3. Someone SQL'd injected my database. What can i do?
    By tearbleu in forum Hosting Security and Technology
    Replies: 3
    Last Post: 07-17-2008, 08:24 PM
  4. - Accepting offers.
    By Immolate in forum Domain Name Offers
    Replies: 3
    Last Post: 10-10-2007, 03:07 PM
  5. Script injected and need help to remove!
    By sameera in forum Employment / Job Offers
    Replies: 5
    Last Post: 11-14-2006, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts