How to quickly find and filter suspected trojan/backdoor files on a cloud server
Published: 2023-04-20
This tutorial is only applicable to batch scanning of backdoors, and maliciously injected files on servers. Note: According to the scan results, manual analysis and judgment are required, and then clean up the malicious injection; be cautious when deleting files!!!
Linux Cloud Server:
1. Use ssh to remotely log in to the server, use wget to download http://download.myhostadmin.net/FileScan/hm-linux-amd64.tgz , and extract with tar xzf hm-linux-amd64.tgz.
2. Run the command:./hm update to update the virus database.
3. Run the command: ./hm scan /home/wwwroot/ #(/home/wwwroot/ is the site root directory).
4. After the scan is complete, the results will be saved as the result.csv file. Download this file locally and open it with EditPlus to view the results.

5. The prerequisite is that the server network is working properly; if the server is disconnected from the network, scanning cannot be performed.
Windows Cloud Server:
1. First remotely connect to the server, download http://download.myhostadmin.net/FileScan/HwsKill.rar and extract it.
2. Open 护卫神, select custom scan (the site directory is generally the d:\wwwroot\ directory).

3. Analyze the scan results and clean up backdoor files.
4. Generally, we can also use this tool to clean backdoors on virtual hosts. When selecting remote scan, you can set ftp.
Note: The above method is for quickly finding and screening suspected maliciously injected and backdoor files. The files must be manually analyzed and reviewed again. Clean up malicious injections and perform other processing according to the actual situation. Be sure to be cautious when deleting files!!!
