Jump to content

Virus in my downloads folder!


Recommended Posts

I have discovered two php files in my Downloads folder.

One is called kopet.php and the other is newmailer.php

 

Looks like som kind of spamming file and perhaps an attempt to hijack and/or dump my database.

 

Does anyone know anything about this stuff?

 

And the best protection against it happening again.

 

Thank you

Link to comment
Share on other sites

I have disabled execute .php/cgi/pl scripts in downloads folders by adding in .htaccess:

 

RemoveHandler .php .php3 .php4 .php5 .php6 .pl .cgi

AddType application/x-httpd-php-source .php .phtml .php3 .php4 .php5 .phps .pl .cgi

 

if any php shell will be uploaded and someone will try to run in from web, he will see just source code of this php file.

 

i've put this .htaccess in any '777' folder.

Link to comment
Share on other sites

Sorry guys, i did mistake in my last reply.

Here is my actual .htaccess

<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
   RemoveHandler application/x-httpd-php .inc .php .php3 .php4 .php5 .php6 .phtml
   AddHandler application/x-httpd-php-source .inc .php .php3 .php4 .php5 .php6 .phtml .phps
</FilesMatch>

RemoveType php
Options -ExecCGI -Indexes

 

revolutionstudios, if you try to open any php file from browser it will not run by apache (mod_php), instead you will see just its content like in notepad. Just try and you will see.

 

ps. don't put this code in whmcs root folder :)

Edited by hiddenko
Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated