How to make a Fake Virus | Fake Virus with VB Script
How to make a Fake Virus | Fake Virus with VB Script
In this article I will show you how you can make a fake virus. A fake virus that is totally harmless. You can share this fake virus to prank you siblings or friends. They might think that it is a virus and they are in trouble itโs your responsibility to tell them that there is no virus but a bunch of message box which does not harm the computer and you just tricked them.
This fake virus is made using VB-script to show custom prompts. So letโs create an awesome fake virus prank.
About VB-Script
Before we go ahead letโs know something about VB-Script. VB script actually one of the most underused scripting languages in computing today, VB script is a great programming language to start programming for your very first time because you can learn all the various programming techniques in VB script without ever having to install new software.
VB script is the scripting language that's available to you on your Windows PC that all you have to do is write a little script in a text file and then you can run your file. VB script is Microsoft's lightweight version of Visual Basic it's an active scripting language that allows you to do a lot of things on your Windows machine a lot of manipulation of files and folders you know renaming them moving them around etc even changing usernames and passwords stuff like that.
Is VBScript still used?
VBScript is not used now. VBScript was once used head to head with JavaScript in the Web Browsers but is now disabled by default in Internet Explorer on all supported versions of Windows after a recent Windows update. Read this article to know more.
How to create a fake virus?
We will be using VBScript commands to prompts with different scary messages to user. Here is how we will be doing this. Letโs learn about different commands of VBScript.
To display the message box prompt use:
X=MsgBox(โYour message content textโ,0+16,โTitle of the promptโ)
Understand the parameters of the Code:
-
To display other buttons use the following digits in the second parameter
- 0 = OK Button,
- 1 = OK / Cancel Button,
- 2 = Abort / Retry / Ignore Button,
- 3 = Yes / No / Cancel Button,
- 4 = Yes / No Button,
- 5 = Retry / Cancel Button
And use 16, 32, 48 and 64 to change the types of message use the following in the second parameter.
- 16 = Critical Icon,
- 32 = Help Icon
- 48 = Warning Icon
- 64 = Information Icon
Make changes as you desire and simply use multiple message prompts with different scary messages and save the file with .vbs extension, like this:
X=MsgBox(โYour computer has acquired a remote connectionโ,0+16,โNetwork Devicesโ)
X=MsgBox(โUser H@ck3r420 is copying your filesโ,1+48,โCopying filesโ)
Here is the sample code:
Simply copy this code in a notepad file and save the file as โVirus.vbsโ.
Or you can simply download the code from the below link.The file is in '.txt' format so After downloading rename the file with .vbs extension.
DownloadHave fun doing pranks on friends and others.
Comments