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:

  1. 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
  2. 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:

X=MsgBox("Error while opening Computer. Do want you reopen?",4+64,"My Computer") X=MsgBox("Local Disk C crashed. System32 folder missing, Recheck?",3+48,"Computer") X=MsgBox("File system corrupted? ",3+16,"Alert!") X=MsgBox("Incoming Remote connection. Do want to allow this connection",4+64,"Remote Login") X=MsgBox("Username H@ck3r420 joinned",4+64,"Critical Error") X=MsgBox("User-H@ck3r420 transferring files into your PC........",1+64,"Critical Error") X=MsgBox("Alert ! Virus Detected Virus name: Trojan. Delete Virus? ",3+16,"Alert!") X=MsgBox("Unable to delete this Virus",1+64,"Critical Error") X=MsgBox("Virus Is activated",2+16,"Alert") X=MsgBox("Deleting System Files.....",2+16,"File Deletion") X=MsgBox("Trojan Virus transfering files to user-H@ck3r420 started",2+48,"Virus Alert") X=MsgBox("Please Wait, Uploading your data to Server. Do you want to Stop it?",4+64,"File Transfer") X=MsgBox("File Transfer Completed",1+16,"Completed") X=MsgBox("Your Computer is Hacked",0+64,"Alert") X=MsgBox("LOL! This is a fake virus",0+64,"Prank")

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.

Download

Have fun doing pranks on friends and others.

Comments