Today, we will teach you to create your harmless virus, that you can use to prank your friends. No Dr Evil stuff, just fun tips to have fun days with friends. Now let’s discuss the procedure. This trick is straightforward to execute, only things you need is a Windows PC and Notepad installed in it.

We are creating a VB script, which will run some commands on your PC (or your friends’), this commands will act like that your PC is infected with a dangerous virus or hacker, which is the perfect tool to fool your friends.

Note: This is not a real virus, this is for educational and entertainment propose only.Do this at your risk. Your friend may not take this as fun as you think.

 The full script is in this link click here to download the VB script, and you can use this as you want. But before that, we will teach the basics of this script and how to implement this.

Creating a Virus, to prank your friends

Step 1: Open up the Notepad, on your PC.

Step 2: Just paste the entire script into notepad carefully without messing up with it

Customising the script

In this part, we will make familiar with the code inside.

Section 1:

X = MsgBox(“Your System Can’t be accessed anymore, it is corrupted”,0+16,”Fatal Error”)

X = MsgBox(“Some Malware is trying to sniff into your data, do you want to stop it?”,48+3,”Warning”)

 

 

This is the 1st part of the script, in this, you can change anything inside the brackets, all strings can be modified according to your wish so that you can prank your friend in your terms.

 

The terms 0+16 or 48 +3 denotes different symbols and button. There are few more that you can add. Respective numbers are given below. You can use this accordingly

 

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

16 = Critical Icon
32 = Help Icon
48 = Warning Icon
64 = Information Icon

Section 2: 

set speechobject=createobject(“sapi.spvoice”)

speechobject.speak “Attention! Your computer is being hacked”

 

This code is used to make your PC speak whatever in the statement. In this case, it is “Attention! Your computer is being hacked”. You can add any dialogue instead of this.

 

Section 3:

 

WScript.Sleep 10

WScript.Sleep 10

Set WshShell = WScript.CreateObject(“WScript.Shell”)

WshShell.Run “notepad”

WScript.Sleep 10

WshShell.AppActivate “Notepad”

WScript.Sleep 500

WshShell.SendKeys “Hel”

WScript.Sleep 500

WshShell.SendKeys “lo “

WScript.Sleep 500

WshShell.SendKeys “, ho”

WScript.Sleep 500

WshShell.SendKeys “w a”

WScript.Sleep 500

WshShell.SendKeys “re “

WScript.Sleep 500

WshShell.SendKeys “you”

WScript.Sleep 500

WshShell.SendKeys “? “

WScript.Sleep 500

WshShell.SendKeys “Th”

WScript.Sleep 500

WshShell.SendKeys “is”

WScript.Sleep 500

WshShell.SendKeys ” comp”

WScript.Sleep 500

WshShell.SendKeys “uter”

WScript.Sleep 500

WshShell.SendKeys ” is”

WScript.Sleep 500

WshShell.SendKeys ” now “

WScript.Sleep 500

WshShell.SendKeys “hacked “

WScript.Sleep 500

WshShell.SendKeys “my name “

WScript.Sleep 500

WshShell.SendKeys “is.. “

WScript.Sleep 500

WshShell.SendKeys “try “

WScript.Sleep 500

WshShell.SendKeys “to “

WScript.Sleep 500

WshShell.SendKeys “fi”

WScript.Sleep 500

WshShell.SendKeys “nd “

WScript.Sleep 500

WshShell.SendKeys “out “

Dim j

j=0

 

This part of the code will make your notepad type automatically whatever you need, just replace the text in the double quotation marks.

 

Section 4:

 

Set oWMP = CreateObject(“WMPlayer.OCX.7”)

Set colCDROMs = oWMP.cdromCollection

do

if colCDROMs.Count >= 1 then

For i = 0 to colCDROMs.Count – 1

colCDROMs.Item(i).Eject

Next

For i = 0 to colCDROMs.Count – 1

colCDROMs.Item(i).Eject

 

The code above will make the CD tray of your friend’s PC automatically open every 5 seconds.

 

Note: The above description is just to give you a brief idea about the code. We recommend using the code in the link above. And watch the video provided below for the demonstration. That will help you understand much better.

Final touch up

To make your friend believe it is real and to make him click on the script. You need to bring the script file to the desktop.

Then right-click on it and open “send to” option.

From the sub options click on “desktop(shortcut)“. Which will create a shortcut icon on the desktop.

Now you need to hide the main file by right-clicking on it and choosing “properties”. From properties check “hide” and apply.

 

Now again right click on the shortcut icon and from properties > customise and change the folder icon to my computer icon from default library of icons and apply.

The final step is to rename the shortcut icon to just my computer and you are done.

To end the process

To disable the actions of the scripts, you need to go to task manager, then click on details tab and End the process called wscript.exe

Watch the video tutorial for better understanding.Share and support us for more contents.

Amal Lukose

Amal Lukose

Author @ Tech Raj Blog

Doing bachelor's degree in pure science, physics

Contact Email: amallukose2@gmail.com

Share This

Share This

Share this post with your friends!

Subscribe To Our Newsletter and Never Miss an Update!

Subscribe To Our Newsletter and Never Miss an Update!

Leave us your Email ID and we will notify you whenever we release new Videos, Articles or Apps.

You have Successfully Subscribed!