Add Windows XP and Vista to start the kill function (1)

  

Now many vicious viruses need to use the kill tool to kill, but some viruses will automatically disable the kill tool. For these stubborn viruses, we often use other systems (such as DOS or PE) to kill. In fact, the killing tool is a batch file that can delete virus files. It is not difficult to understand and write. This article takes everyone to understand and write a special killing tool, you can directly enter the anti-virus menu and kill the virus when the system starts.
First, for Windows XP system users

For such system users, we can use Vfloppy and other virtual floppy software to add DOS anti-virus system for Windows XP, and then use the automatic batch file under DOS (Autoexec. Bat) can easily remove the virus. Here is an example of automatic removal of the dog virus.

Step 1: Go online to find the dog virus information, make a batch file according to the virus characteristics or directly download the batch file made by the netizen.

Step 2: Start Notepad, enter the following code, save as kill.bat, and place it in the root directory of the D drive (Rem statement is a comment, no need to enter).

Rem removes hidden, read-only, system attributes of virus files

attrib -h -r -s C:/WINDOWS/IGM.exe

rem deletes specified virus files

del C:/WINDOWS/IGM.exe

rem Create a directory with the same name as the virus file at the source location to prevent virus recurrence

md C:/WINDOWS/IGM. Exe

Note: For the convenience of description, only one of the virus files C:/WINDOWS/IGM.exe is deleted in the batch processing. For the command to delete other virus files, please refer to the above format.

Step 3: Download Vfloppy, download and unzip Vfloppy.exe, select the "bookdisk.img" file in the decompression directory, and display the text as "DOS Auto Antivirus". Others take the default settings and finally Click Apply and the program prompts that the boot image file is successful. Do not choose to restart and exit Vfloppy at this time.

Step 4: Now modify the batch file in Bootdisk.img to start the anti-virus. After running WinImage, click "File → Open", open C:/boot/bootdisk.img, then select "AUTOEXEC.BAT" in the file list, right click on it and select "Expand" to release AUTOEXEC.BAT to d:/.

Step 5: Open d:/autoexec.bat with Notepad, find the line "echo The diagnostic tools were successfully loaded to drive %RAMD%.", then add the following line under "echo." Content: call d:/kill.bat

Tip: The function of the above command is to automatically delete the virus after calling DOS to make the batch file kill.bat.

Step 6: Run WinImage again to open C:/boot/bootdisk.img, click “Image→Add”, and follow the prompts to add the modified AUTOEXEC.BAT file. If the program prompts to overwrite, click "Yes", then save bootdisk.img and exit the program. By modifying AUTOEXEC.BAT, the purpose of automatically calling the killing batch file to delete the virus after booting to DOS is realized. If you encounter other viruses next time, just modify the code in d:/kill.bat to implement the new kill function.

Second, Windows Vista system users

Because Windows Vista uses NTFS partition, it is inaccessible under DOS, so we can not use the above method to achieve automatic antivirus. However, we can also use Windows PE2.0 (hereinafter referred to as PE) to achieve automatic anti-virus.

Step 1: Make a special kill batch file and save it as d:/kill.bat. Since the command line under Windows supports more parameters, our code changes as follows:

attrib -h -r -s C:/WINDOWS/IGM.exe

rem No need to confirm the direct deletion of virus files

del /f/q/s C:/WINDOWS/IGM.exe

md C:/WINDOWS/IGM.exe

rem Automatic restart after disinfection is completed

shutdown -r

Step 2: Download PE. Unzip to get an ISO file, then use WinRAR to extract all the files to d:/PE.

Step 3: Download WimTool, extract the downloaded WimTool, run the "WimTool runtime.exe" as an administrator, then run WimTool as an administrator and click "Browse". Select the Wim file to be unzipped d:/pe/sources/boot.wim, select the target folder to be unpacked and select d:/PE1 (D is the NTFS partition). Check all options under the image volume number and click Mount Image.


Copyright © Windows knowledge All Rights Reserved