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