Ever fancied coding your own virus and showing it off in front of your family and friends? Well, of course, but always the fear of it becoming an actual virus has been pulling you back? How about we create a fake matrix virus today? A fake matrix virus that will keep printing random numbers till you stop it? Sounds cool? We are as excited as you are!
Read on, to learn how you can easily create your own fake matrix virus with some simple batch scripting. Hope you enjoy reading!
Steps to Create a Fake Matrix Virus
Step 1: Go to Desktop by pressing the keys WIN + D together.
Right click on any empty space on the Desktop, click on New and then click on Text Document.
Step 2: Now you will be able to give a name to your new text document. Give any name of your choice, do not change the extension though. I have given the name of my file as GeekPage Matrix Virus.txt.
Once you have given the name, double click on the file to open it on Notepad.
Note: If you are unable to give the name straight away, you can right click on the file, click on Show more options and then click on Rename option. Or you can simply click on the file and then press the F2 key to rename your file.
Step 3: Once the file opens up in Notepad, copy and paste the following code snippet onto it.
@echo off color 0a title Geekpage Matrix Virus :top echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% goto top
Code Explanation:
The code simply prints some random numbers. The printing random numbers part is put inside an infinite loop using goto statement. The infinite loop ends when you close the CMD window.
Step 4: As next, hit the File tab at the top and then click on the Save button.
Step 5: After that, click on the Close button at the top right corner to close the file.
Step 6: Now go back to Desktop again and then click on the file and then press the F2 key to rename it.
Simply change the extension from .txt to .bat.
Step 7: When the rename confirmation window comes up, click on the Yes button.
Step 8: Finally, your file should have its name in the following format:
<file_name_you_gave>.bat
Double click on the file to execute it.
Step 9: OOPS! Did you double click? We forgot to add one step in between!! Your system seems to be infected with an actual virus now!
Just kidding, you have your fake matrix virus right in front of your eyes! Enjoy!
You can close the CMD window anytime by clicking on the Close button at the top right corner of the window.
Remember, this is a totally harmless program that simply prints random numbers.
Hope you enjoyed the article. Thank you!
super good