Malware injection cleanup method for virtual hosts/databases.

Published: 2014-12-04

```html

Virtual Hosting AI Assistant.

Log in to the Management Center, enter the Virtual Hosting Control Panel, and find the “AI Assistant” entry in the left navigation bar to use it;

Scan and remove Trojan viruses, patch vulnerabilities, add new features, redesign the website... Open the hosting control panel and say what you need, and the AI Assistant will help you get it done online!

image.png


Prompt reference: Help me scan whether there are Trojan files in the website (including one-sentence Trojans, etc.), whether there are obvious injection vulnerabilities, file upload vulnerabilities, etc. First analyze and do not modify the code for now.Detailed introduction



General troubleshooting process:

  1. After entering the domain name in the browser and opening the webpage, click on a blank area, right-click the mouse, and view the source code/view the source file;

    If the program disables right-clicking, click Tools on the browser - View Source (IE browser - Page - View Source)

  2. Check the bottom of the source code for links as shown in the following screenshots

    1.jpg

    Or

    11.jpg


  3. Go to Business Management - Virtual Host Management - Manage - File Management, click wwwroot to enter, find your homepage, such as index.html, index.php, default.asp, home.html, etc., and double-click the homepage file to open it

2.jpg

Delete a piece of code in the screenshot and save the changes. Note: if the file is utf8-encoded, please download the file to your local computer via ftp and modify it with an editor

In addition, there is a "Replace" function in File Management

123.jpgNote: when replacing, you can keep a backup. The replace function can only replace a single line of code. You cannot directly copy all the links into the search string input box; you can only replace them one line at a time with blank

Our system is also automatically scanning and removing viruses for virtual hosting websites. To ensure the security of your website, please contact the software vendor to check and fix vulnerabilities. If it is official software, take measures such as upgrading and updating patches. Our hosting platform also provides related security setting functions to further strengthen website securityhttp://faq.myhostadmin.net/faq/listagent.asp?unid=748

Some injected malicious code may not be written directly into the homepage file. For example, the homepage calls the head/foot part, or it is in the template homepage; modify it in the same way


In some cases, code has also been added to database fields


Use phpmyadmin to enter the database and search

For virtual hosting, go directly to Business Management - Virtual Host Management - Manage - Database on the left, click Manage mysql (utf8 version or gb2312) to enter the phpmyadmin page

For servers, in our pre-installed environment, generally enter http://127.0.0.1/phpmyadmin  in the server browser to enter the phpmyadmin management page, enter the database account and password to log in. The following uses the shopex program as an example

(1). Click the database name on the left to enter the interface shown in the figure

01.jpg

(2). Click Search to enter the interface shown in the figure

12.jpg

Enter the keyword in the first input box. In the table below, check Select All. If there are too many tables, you can select table names in batches for search

After selecting, click Execute

(3). If the malicious code is in the database, relevant results will be found

13.jpg

(4). Click Edit to enter

14.jpg

You can see the added links in the database; delete the code and save it,

Note: only delete the code of the link part; do not clear all the content inside


If your website is shopex, please do not directly edit and clear the malicious link, otherwise it will cause unknown situations such as a blank website homepage. Please refer tohttp://www.west.cn/faq/list.asp?unid=760  to clean malicious links



```