How to Prevent ASP trojans from webpage hacking

Source: Internet
Author: User








How to Prevent ASP trojans from webpage hacking 
-- By: 927955
-- Release Date: 1:05:22

-- How to Prevent ASP trojans from webpage hacking

Presumably, many VM users have experienced web page tampering and data deletion. In addition to suffering from such behavior, many customers suffer from ineffective preventive measures.

In view of the fact that most website intrusions are completed by using ASP Trojans, this article allows common VM users to better understand and prevent ASP Trojans. Only by taking preventive measures jointly between the space provider and the virtual host user can ASP Trojans be effectively prevented!

1. What is an ASP Trojan?

It is actually a website program written in ASP, and some asp Trojans are modified by the ASP Website management program.

There is no essential difference between ASP and other ASP programs, as long as the space that can run ASP can run it, this nature makes ASP Trojans very difficult to detect. The difference between ASP and other ASP programs is that ASP Trojans are ASP programs that intruders upload to the target space and help intruders control the target space. If you want to disable ASP Trojans, it is equivalent to disabling ASP. Obviously, this is not feasible. This is why ASP Trojans are rampant!

Ii. intrusion Principle

It is important to upload an ASP Trojan horse to the target space if you want to intrude!

How can intruders upload ASP Trojans?

It is ironic that most intruders use the existing ASP program with the upload function in the target space. Under normal circumstances, these ASP programs that can upload files have permission restrictions, most of which also limit the upload of ASP files. (For example, news publishing and image management programs that can upload images, and Forum programs that can upload more types of files) however, due to human ASP setup errors and vulnerabilities in ASP programs, intruders are allowed to upload ASP Trojans. As long as an ASP Trojan is uploaded to the target space, intruders can run it to control the target space.

Therefore, the focus of ASP Trojan prevention is on how to ensure the security of asp upload programs in your space!

To put it bluntly, the intruders are not allowed to upload files!

Here is an additional explanation:

Due to the unpredictable nature of the programs that virtual host users upload on their own sites, and whether each program has vulnerabilities, therefore, it is impossible to prevent intruders from using the client program vulnerability in the site to upload ASP Trojans.

The Space Provider can only prevent intruders from intruding other sites on the same server again using the intruded site.

This also indicates that to prevent ASP Trojans, Vm users must strictly control their own programs!

Iii. Preventive measures

First, you can evaluate the risk of your website being infiltrated by ASP Trojans based on the following security levels.

A. The website does not contain any upload or forum programs.

----- Very secure

B. There are upload programs or forum programs on the website. Only the administrator can upload the programs and take protective measures against the program database.

----- General Security

C. There are upload programs or forum programs on the website, and many users can upload programs without protection measures for the program database.

----- Very dangerous!

This security level only gives you a preliminary understanding of the security of your own space. Next we will talk about the specific preventive measures:

1. We recommend that you use ftp to upload and maintain webpages, and try not to install asp upload programs.

2. the asp upload program must be called for identity authentication, and only trusted users are allowed to use the upload program. This includes various news releases, malls, and Forum programs. All ASP files that can be uploaded must undergo identity authentication! In addition, you can rename or delete the ASP files that are uploaded without the upload function, such as upload. ASP, upfile. ASP and so on, and then restore the original name or re-upload through FTP when necessary.

3. the username and password of the ASP program administrator must be complex and cannot be too simple. Pay attention to regular change.

4. Download the ASP program on a regular website and modify the Database Name and storage path after the download. The database file name must also be complex. We recommend that customers of our company use the. mdb database file extension because our company server has set the. MDB file anti-download function.

5. Try to keep the program in the latest version.

6. Do not add a link to the background management program logon page on the webpage.

7. To prevent unknown vulnerabilities in the program, you can delete the background management program login page after maintenance, and then upload it through FTP during the next maintenance.

8. Always back up important files such as databases.

9. perform routine maintenance and check whether there are unknown ASP files in the space. This is especially used to store directories for uploaded files, such as uploadfile and uploadsoft *. ASP or *. EXE files should be deleted immediately, because 90% of these files may be infiltrated by programs. Remember: one minute of sweat, another minute of safety!

10. Once an intrusion is detected, all files must be deleted unless the customer can identify all trojan files. Before re-uploading a file, reset the user name and password of all ASP programs, and re-Modify the Database Name and storage path of the program and the path of the background management program.

11. install necessary intrusion detection systems and update anti-virus software in a timely manner.

If you take the above preventive measures, your space can only be said to be relatively safe, and you must not neglect it because intrusion and anti-intrusion are an eternal war!

-- By: 927955
-- Release Date: 1:35:59

--
You do not need many tools to check Trojans. An FTP software and Windows built-in search functions are required. A text editor, such as a Windows notepad, is ready.
We recommend that you use flashfxp for FTP software. It has some useful functions in trojan detection.

Step 1:

Check whether the website is the latest component. (log on to the system background and the "dynamic and easy components support" version number is displayed at the bottom of the page. Use the latest component whenever possible ).

The image of this topic is as follows:

Step 2:

Check whether the install. asp file is retained in the root directory of the website. If yes, delete it immediately. After your website is set up, the install. asp file must be deleted !!

Check whether "copyright information" in "system settings"> "website information configuration" contains "<script", "<iframe", and other script Inline code. If yes, delete it immediately.

1) website information configuration

The image of this topic is as follows:

In

The image of this topic is as follows:

Step 3:

Click the "system settings"-> "online comparison of website Files" link and use the online comparison tool provided by the system to check whether the file is abnormal. If FTP is used to check the file, to ensure that all the files that are easy to use are up-to-date.

The image of this topic is as follows:

Step 4:

Log on to FTP and carefully search for Trojan Files other than ease of use. You can select "Tools"> "find files on the FTP server" in "flashfxp" to find files:

The image of this topic is as follows:

Because Trojans are generally. asp files, you can enter *. asp for the FTP file search name to search for all websites:

The image of this topic is as follows:

Because Trojans uploaded by hackers are often from the latest date, because the system as a user does not frequently modify system files, click "Modify date" to check the order by the modified Date:

The image of this topic is as follows:

; Right-click the file on the latest date and choose View ":

The image of this topic is as follows:

In Windows, the notepad preview code is displayed, and you can see whether this file is a trojan file. If so, you can directly delete it using FTP.

If you do not know too many files, it is a waste of time to troubleshoot them one by one. You can download the entire website program to your local machine for troubleshooting.
Note:You do not need to download the database directory on the website. The database file powereasy2006.mdb in the database directory (or you have renamed it ). If you have checked the upload directories of uploadfiles in folders of various channels, you do not need to download these directories.
You can see the channel directory name in the system background, system settings, and website channel management:

The image of this topic is as follows:

The upload directory names of each channel can be viewed in the upload options managed by each channel:

The image of this topic is as follows:

After downloading to the local machine, you can use the Windows Search management function to query some offensive syntaxes. For example, if the mobile system does not have VBScript. encode, you can immediately delete this file once discovered.


The image of this topic is as follows:

The keywords provided for search here are not necessarily the most comprehensive. We hope that experienced users can continue to provide them and will update the keyword list at any time.

Keywords Possibility Solution Files that easily contain this keyword
VBScript. encode 100% Delete None
Ocean 100% Delete None
Daoxiang 100% Delete None
Freezing Point 100% Delete None
0d43fe01-f093-11cf-8940-00a0c9054228 100% Delete None
093ff999-1ea0-4079-9525-9614c3504b74 100% Delete None
72c24dd5-d70a-438b-8a42-98417b88afb8 100% Delete None
Createtextfile 100% Delete Install. asp, admin_rootclass_menu.asp, user_saveflash.asp
Eval (R 100% Delete None
Execute request 100% Delete or replace Generally, execute request ("X") is added to a normal file to execute abnormal code.
Execute session 100% Delete or replace None, same as above
Opentextfile 100% Delete Admin_createother.asp, user_saveflash.asp
Writeline 100% Delete None
Wscript 100% Delete None
5 xsoft 100% Delete None
Scripting. Dictionary 100% Delete None
Request. binaryread 100% Delete None
Deletefile 90% Delete or replace Install. asp, user_saveflash.asp
Movefile 90% Delete or replace Reg. asp
GetFile 90% Delete or replace Top. asp, admin_createother.asp, index. asp

Note:Do not delete the content contained in the mobile system. For example, user_saveflash.asp (used for System camera image capturing and uploading). It is not recommended to delete it immediately.

Step 5:

Check the IIS ing on the server.
If you have your own server, you need to check the IIS website properties-home directory-configuration option button- ing and delete the extension CDX and Cer.

The image of this topic is as follows:

So far, the trojan check work has come to an end. Summarize three methods and one note:

Method:

1,Comparison Method: Please pay attention to the online comparison tools provided by the system background to check whether there are any exceptions in the mobile files. If necessary, use the comparison function of the FTP tool for comparison.
2,Time Comparison Method: Remember the time when you last updated the file. The executable script may be faulty after this time. However, note that the database update time is always the latest. Do not delete it by mistake.
3,Keyword Search Method: Search for files based on the keywords provided by me. You can determine the Trojan.

Note:

After configuring the website, remember to delete the install. asp file in the root directory of the website.

Finally, "anti-DDoS" is better than "Killing". Please make it easy to use the latest official components in a timely manner and try to be uneasy or less secure. This is the best rule to ensure the normal operation of your website.
It should be noted that if a trojan is found, all types of accounts with administrative permissions should be modified after the process is completed. This includes Forum accounts, database accounts, server operating system accounts, and FTP accounts.

-- By: 927955
-- Release Date: 2:26:58

--

The solution for version 3.62 is the same. After FTP opens the server directory, it compares the time and file size with the original easy-to-use program. It pays special attention to the homepage and upload directory and finds changes, replace with the original file! And delete unknown programs in the upload directory folder.

If the IP address is repeatedly attacked, back up all the evidence according to relevant laws and report it to the relevant public security department. If the problem cannot be solved, the following methods can be used to counter attacks:

1. Anti-attack: Generally, unknown programs are uploaded with a program sent to the hacker's mailbox. You can add a formatter and attacker to the file to cause the computer to crash.

2. Modify the trojan file: add the trojan file to the hacker's mailbox program to run it in the background, feed it back to your mailbox, and thoroughly control the hacker's mailbox or computer, in contrast.

3. for popular websites, we can call on everyone to use the Aladdin flood attacker to attack the hacker's IP address (the IP address must be confirmed repeatedly) to cause the system to crash.

The above is a counterattack method, which is for your reference only when it cannot be solved by the relevant departments. Please solve the problem yourself in detail and do not discuss it here. I hope you will use it with caution! Self-paid by law!

If you believe that this post violates the posting principles, you can delete it separately!

-- By: 927955
-- Release Date: 2:34:54

--

Methods for manually clearing common network Trojans (1)

The emergence of Trojans has caused great harm to our system. However, because Trojans are usually embedded with concealment and are difficult to be completely deleted, we will introduce some common methods to remove Trojans.

1. Network bull (netbull)

The Network bull is a Chinese Trojan and the default connection port is 23444. After the service end program newserver.exeis run, it will automatically become checkdll.exe, which is located in C: // windows // system. the next time checkdll.exe is enabled, it will automatically run, so it is hidden and harmful. At the same time, the server automatically binds the following files after running:

Win2000: notepad.exe1_regedit.exe,reged32.exe1_drwtsn32.exe1_winmine.exe.

After the server is running, it is bound to a third-party software (such as realplay.exe, QQ, and ICQ) that automatically runs at startup. in the Registry, the network Bull also quietly takes the root.

The Network bull uses the file bundle function, which is associated with the files listed above. It is very difficult to clear them. This also has a disadvantage: it is easy to expose yourself! As long as you have a little experience, you will find that the file length has changed, and thus suspect that you are in the Trojan.

Clear method:

1. Delete the self-starting program C: // windows // system // checkdll.exe of the network bull.

2. delete all the key values created by the Network bull in the registry:
3. Check the files listed above. If the file length changes (about 40 k is increased, you can delete them by comparing them with normal files on other hosts! Click "Start> attachment> System Tools> system information> Tools> System File Checker". In the displayed dialog box, select "extract a file from the installation floppy disk (E )", enter the files to be extracted in the box (the files you deleted earlier), click "OK", and then press the on-screen prompt to restore the files. If a third-party software such as realplay.exe, QQ, and ICQ is bound during startup, delete the files and reinstall them.

2. NetSpy (Network genie)

NetSpy, also known as the network genie, is a Chinese Trojan. The latest version is 3.0, and the default connection port is 7306. In this version, the registry editing and browser monitoring functions are added. The client can now perform remote monitoring through IE or navigate without using NetMonitor. After the server program is executed, the netspy.exe file is generated in the C: // windows // systemdirectory. At the same time, in the Registry HKEY_LOCAL_MACHINE // software // Microsoft // windows // CurrentVersion // run //, set the key value C // windows // system // netspy.exe, this function is used to automatically load and run data when the system starts.

Clear method:

1. Restart the machine and press F5 to enter the command line status when prompted by staring windows. Run the following command in the C: // windows // system // Directory: del netspy.exe;

2. Enter HKEY_LOCAL_MACHINE //

Software // Microsoft // windows // CurrentVersion // run //, delete the key value of NetSpy to safely clear NetSpy.

3. SubSeven

Compared with bo2k, SubSeven has never been used. The latest version is 2.2 (the default connection port is 27374), and the server side is only 54.5 kb, so it is easy to bind it to other software without being discovered. The latest anti-virus software such as Kingsoft drug overlord cannot find it. Server-side program server.exe, and client-side program subseven.exe. After the SubSeven server is executed, the names of processes started every time change, making it difficult to query.

Clear method:

1. open registry regedit and click: HKEY_LOCAL_MACHINE // software //

Microsoft // windows // CurrentVersion // run and runservice. If a file is loaded, delete the project on the right: loader = "C: // windows // system //***". Note: The loader and file name are randomly changed.

2. Open the win. ini file and check whether an executable file name is added after "run =". If yes, delete it.

3.open the system.ini file and check whether the file has been followed by mongoshell‑policer.exe. If yes, delete the file.

4. restart Windows and delete the corresponding trojan program. Generally, in C: // windows // system, the file name is vqpbk.exe when I perform an experiment on the local machine.

4. Glaciers

Here we will introduce its standard edition. It is easy to know how to clear the Standard Edition and deal with variant glaciers. The ice server program is g-server.exe, the client program is g-client.exe, and the default connection port is 7626. Once you run g-server, the program will generate kernel32.exeand sysexplr.exe in the C: // windows // systemdirectory and delete itself. Kernel32.exeruns automatically when the system starts, and sysexplr.exe is associated with the TXT file. .

Clear method:

1. Delete the kernel32.exeand sysexplr.exe files under C: // windows // system;

2. the glacier will be in the Registry hkey_local _

Machine // software // Microsoft // windows // CurrentVersion // run takes root and the key value is C: // windows // system // Kernel32.exe. Delete it;

3. hkey_local _ in the Registry _

Machine // software // Microsoft // windows // CurrentVersion // runservices, which has a key value of C: // windows // system // Kernel32.exe, also need to be deleted;

4. Finally, modify the Registry hkey_classes _

Root // txtfile // shell // open // command. The default value is changed from C: // windows // system // sysexplr.exe % 1 after the Trojan horse in the table to C: // windows // notepad.exe % 1 to restore the TXT file association Function

-- By: 927955
-- Release Date: 2:35:47

--
5. Network theft (nethief)

Network stealing is a bounce Port Trojan. What is a "bounce port" Trojan? Opposite to a general Trojan, the server (the controlled side) of the bounce Port Trojan uses the active port and the client (the control side) uses the passive port. For the sake of concealment, the listening port of the client is usually opened at 80. In this way, even if you use the port scanning software to check your own port, it is similar to the "TCP Server IP Address: 1026 Client IP Address: 80 established.

Clear method:

1. the hacker will be in the Registry HKEY_LOCAL_MACHINE // software //

Microsoft // windows // CurrentVersion // The value of the initial key of run“internet”, with the value of “internet.exe/S. Delete the key value;

2. Delete the self-starting program C: // windows // system ///Internet. EXE.

6. girls outside China

"Girl from the Internet" is a new remote monitoring tool, which is highly destructive. It can be used to remotely upload, download, delete files, modify the registry, and so on. It is terrible that after the "girl from the Internet" server is executed, it will automatically check whether the process contains the words "Kingsoft drug overlord" and "Skynet". If it finds out, it will terminate the process, that is to say, make the firewall completely ineffective!

Clear method:

1. Start to pure DOS mode, find diagfg. exe in the system directory, and delete it;

2.let's find the Registration Table editor named regedit.exe in the Windows directory and change it to "regedit.com ";

3. Return to Windows mode and run the regedit.com program under the Windows directory (the file we renamed );

4. Find hkey_classes_root //

Exefile // shell // open // command, and change its default key value to "% 1" % *;

5. Delete the key value named "Diagnostic configuration" in the registry;

6.disable the register table Editor, go back to the Windows directory, and change regedit.com.pdf to “regedit.exe ".

7. way2.4

Way2.4 is a Chinese Trojan program. The default connection port is 8011. The registry operations of way2.4 are indeed characteristic. Reading and writing the controlled registry is as convenient as reading and writing the local registry! After the way2.4 server is run, the msgsvc.exe file is generated under C: // windows // system. the icon is a text file icon, which is hidden. Refer to figure out how to overwrite the System File msgsvc32.exe. At the same time, way2.4 creates a serial value msgtask in the Registry HKEY_LOCAL_MACHINE // software // Microsoft // windows // CurrentVersion // run.

Clear method:

You can use the process management tool to view the process cway. You only need to delete the key value in the Registry, and then delete the msgsvc.exe file under C: // windows // system.

To delete msgsvc.exe directly under Windows, you can use the process management tool to terminate the process and then delete it. You can also delete msgsvc.exe from the drop-down list in dos. If the server is already bound with an executable file, it will only delete that executable file. Note that before deletion, please renew your products ??????????????? Back up data

-- By: 927955
-- Release Date: 2:37:39

--
Search for the top ten locations where Trojans are found

A Trojan is a remote-controlled virus program that is highly concealed and harmful. It can control you or monitor you without knowing it. Some people say that, since the trojan is so powerful, I can leave it far!

However, this trojan is really "naughty". No matter whether you are welcome or not, as long as it is happy, it will try to come to your "home! Oh, that's enough. Hurry up and check if there are any Trojans in your computer. Maybe it's just a waste of time in the family! So how do I know where the trojan is? I believe that cainiao who are not familiar with the trojan will want to know such a problem. The following are some tips for Trojans. Do not forget to take these tricks to deal with them!

1. integrate into the program

In fact, a Trojan is also a server-client program. To prevent users from easily deleting it, it is often integrated into the program. Once the user activates the trojan program, then, the trojan file is bundled with an application and uploaded to the server to overwrite the original file. Even if the trojan is deleted, you only need to run the application bound with the Trojan, the trojan will be installed again. Bind to an application. If it is bound to a system file, every Windows Startup starts a Trojan.

2. Hide it in the configuration file

The trojan is really tricky. I know that cainiao usually use a graphical interface operating system. Most configuration files that are not very important are ignored, this provides a hiding place for Trojans. In addition, with the special functions of the configuration file, Trojans can easily run and attack on everyone's computers to gain a peek or monitor everyone. However, this method is not very concealed and easy to detect. Therefore, loading Trojans in autoexec. BAT and config. sys is rare, but it cannot be ignored.

3. lurking in win. ini

To control or monitor a computer, a Trojan must run. However, no one is stupid enough to run it on his own computer. Of course, Trojans are also prepared to know that humans are highly intelligent animals and will not help them. Therefore, they must find a safe and automatic place to run during system startup, so it lurks in win. INI is a pleasant place for Trojans. You may wish to open win. INI. In its [windows] field, the startup commands "load =" and "run =" are included. In general, "=" is followed by a blank space, for example, run = C: // windows // file.exe load = C: // windows // file.exe

At this time, you have to cancel it. This file.exe may be a Trojan.

4. Disguise in common files

This method appeared late, but it is very popular now. It is easy to be fooled by unskilled windows operators. The specific method is to disguise the executable file as an image or text-change the icon to the default image icon for windows in the program, and then change the file name to * .jpg.exe, because the default value of Win98 is "do not display the known file suffix", the file will be displayed *. JPG. If you don't pay attention to it, this icon will be a Trojan (if you embed an image in the program, it will be more perfect ).

5. built-in to the Registry

The above method made the trojan really comfortable for a while. No one can find it and it can run automatically. It's so fast! However, it is not a long time for humans to immediately hack it out and severely punish it! However, after summing up the lessons of failure, he thought that the hiding place above was easy to find. Now he must hide in a location that is not easy to be found, so he thought of the Registry!

Indeed, due to the complexity of the Registry, Trojans often like to hide in the fun. Check out what programs are under them and read them carefully with wide eyes. Don't let the Trojans go: HKEY_LOCAL_MACHINE // software // Microsoft // all key values starting with "run" in Windows // CurrentVersion; HKEY_CURRENT_USER // software // Microsoft // windows // CurrentVersion ??????????????? Key Value starting with "run"; all key values starting with "run" in the HKEY-USERS //. Default // software // Microsoft // windows // CurrentVersion.

6. Hiding in system. ini

Trojans are everywhere! There is nothing left to do, so it will drill somewhere! This is not the case. system. ini in the Windows installation directory is also a place where Trojans like to hide. When file.exe, if such content exists, you are not lucky, because the file.exe here is a Trojan server program! In addition, in the [Program ENH] field of system. ini, check "driver = path \ program name" in this section, which may also be used by Trojans.

Then, in system. the [MIC], [Drivers], and [drivers32] fields in INI also play the role of loading drivers, but they are also a good place to add Trojans, now you should know that you should also pay attention to this.

7. invisible to the Startup Group

Sometimes a Trojan does not care about its whereabouts. It pays more attention to whether it can be automatically loaded into the system, because once the trojan is loaded into the system, in any way you use, you cannot rush it (ah, this trojan face is too thick). Therefore, according to this logic, the Startup Group is also a good place for Trojans to hide, this is indeed a good place for automatic loading and running.

The folder corresponding to the animation group is C: // windows // Start Menu // programs // startup. The location in the registry is as follows:

HKEY_CURRENT_USER // software // Microsoft // windows // CurrentVersion // Explorer

// Shellfolders startup = "C: // windows // Start Menu // programs // startup ". Check the Startup Group frequently!

8. Hidden in winstart. bat

According to the above logic theory, all Trojans are fond of staying where Trojans can be automatically loaded. This is not the case, winstart. bat is also a file that can be automatically loaded and run by windows. It is automatically generated for applications and windows in most cases, after win.com is executed and most drivers are loaded, run the command. (you can press the F8 key at startup and select the start mode to track the startup process step by step ). Because the autoexec. Bat function can be replaced by winstart. bat, the Trojan can be loaded and run as it is in autoexec. bat, which is dangerous.

9. bundled in the Startup File

That is, the application startup configuration file. The control end uploads the file with the same name as the trojan startup command to the server to overwrite the file with the same name, in this way, the Trojan can be started.

10. Set it in the super connection

The trojan owner places malicious code on the webpage to lure users into clicking. The user clicking result is self-evident: the door is stolen! I advise you not to click the link on the webpage unless you understand it, trust it, and want to wait for it to die.

 

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.