PHP Trojan cleaning process

Source: Internet
Author: User
PHP Trojan cleaning process a friend's website, there are unknown files, let me view.

After reading it, I found that there were a lot of files, and the advertisement pages were inexplicably displayed.

First, the redundant page was deleted, and thought it was okay, but the ad link was still found,

Find the ad address and find that it is written in the. htaccess file and points to a txt file as a web page.

Disable the. htaccess file.

======================================


How to disable suffix in apache:

Here we will only demonstrate how to disable php execution. the others will be slightly changed. create a. htaccess file in the directory you want to disable. the content is:
The code is as follows:


Order Allow, Deny
Deny from all


Or

Create a. htaccess file in the required directory and write a line in it
The code is as follows:

Php_flag engine off {

}

==================================

However, it was found that a large number of files were uploaded in a few days.

Therefore, upload of some directories is prohibited. However, some directories are still uploaded in large quantities. it seems that this hacker is not dead-hearted.

The hacker must have used a Trojan program to upload files. he must find this Trojan,

Since he can upload files, he should use the file read/write function, so he looks

Grep-color-I-r-n "fwrite"/opt/FTP/root

It turns out that there is a trojan file. you are completely operating the service to upload files .. After it is killed, the system becomes stable.

============================================

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.