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.
============================================