In this tutorial we’ll create a test virus on our desktops to test our various antivirus that are installed on our various computers.
This test virus is only meant for the test and will not cause any damage to your computer.
How to create the test virus
1. Create a new text file using Notepad or any text editor.
2. Open the text file and enter the below code as the text of the file.(You may copy and paste)
3. After the above code has been entered save the file as an .exe file instead of a .txt file. For example, name the file test.exe instead of test.txt. Alternatively you can save the file as a .txt file and then rename the file after it has been saved.
Note: In order for this to work you must have Windows showing the file extensions. By default Windows may be trying to save the file as a .txt file even if you end your file with .exe. For example, the file may be saving as test.exe.txt instead of test.exe. If after saving or renaming the file the icon still looks like a notepad, it is not being saved as an executable file.
4. After the file has been saved the anti-virus should immediately prompt for action, similar to what is shown below. If you do not receive a prompt try highlighting the file, and then right-click and choose the option to scan the file with your scanner.
If after following all of the above steps you do not receive any type of warning, your virus scanner is either not enabled or not working properly. We highly recommend either re-installing the installed antivirus scanner or trying an alternative virus scanner.