home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form VIRUS_TEST
- Caption = "Anti-Virus Test Program"
- ClientHeight = 6300
- ClientLeft = 4455
- ClientTop = 2790
- ClientWidth = 6585
- Icon = "VIRUS_TEST.frx":0000
- LinkTopic = "Form1"
- ScaleHeight = 6300
- ScaleWidth = 6585
- Begin VB.CommandButton Command2
- Caption = "Repair-Check"
- Height = 615
- Left = 1320
- TabIndex = 5
- Top = 4320
- Width = 4095
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 1320
- TabIndex = 1
- Text = " "
- Top = 3720
- Width = 4095
- End
- Begin VB.CommandButton Command1
- Caption = "Press to create and trigger the Virus Test String"
- Height = 615
- Left = 1320
- TabIndex = 0
- Top = 2880
- Width = 4095
- End
- Begin VB.Label Label5
- Caption = "By Max L. Seim mlseim@mmm.com Oct. 1999"
- Height = 255
- Left = 1680
- TabIndex = 7
- Top = 6000
- Width = 3735
- End
- Begin VB.Label Label4
- Caption = "View your Anti-Virus Fault Log to see exactly how your software responded to the virus it encountered."
- Height = 375
- Left = 1440
- TabIndex = 6
- Top = 5280
- Width = 3975
- End
- Begin VB.Label Label3
- Caption = $"VIRUS_TEST.frx":030A
- Height = 735
- Left = 360
- TabIndex = 4
- Top = 2040
- Width = 5895
- End
- Begin VB.Label Label2
- Caption = $"VIRUS_TEST.frx":0403
- Height = 975
- Left = 360
- TabIndex = 3
- Top = 960
- Width = 5895
- End
- Begin VB.Label Label1
- Caption = $"VIRUS_TEST.frx":051D
- Height = 735
- Left = 360
- TabIndex = 2
- Top = 120
- Width = 5775
- End
- Attribute VB_Name = "VIRUS_TEST"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' Anti-Virus Test Program
- ' By: Max L. Seim mlseim@mmm.com
- ' For more information on the test string,
- ' goto: www.eicar.com/ducklin-html.htm
- ' I give credit to above site for use of the test string. Thank You!
- Dim OP As Integer
- Dim TSTR As String
- Dim VRSTR As String
- Private Sub Command1_Click()
- ' Create the text file and write the virus string
- Open "C:\VIRUSTEST.TXT" For Output As 1
- Print #1, VRSTR
- Text1 = "Virus Sring has been created"
- Close 1
- OP = 1
- End Sub
- Private Sub Command2_Click()
- ' Check to see if it was removed successfully ...
- If OP = 1 Then
- Open "C:\VIRUSTEST.TXT" For Input As 1
- Do While Not EOF(1)
- Input #1, TSTR
- Loop
- Close 1
- If TSTR = "" Then
- Text1 = "Virus detected and removed successfully!"
- Else
- Text1 = "Virus not removed! Check your Anti-Virus Software!"
- End If
- Kill "C:\VIRUSTEST.TXT"
- Text1 = "You must create the Virus String first!"
- End If
- OP = 0
- End Sub
- Private Sub Form_Load()
- ' This is the virus string ... created by connecting two different
- ' strings so that the anti-virus software won't recognize it until
- ' the entire complete string is written into the text file.
- VRSTR = "X5O!P%@AP[4\PZX54(P^)7CC)7}"
- VRSTR = VRSTR + "$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*"
- OP = 0
- End Sub
-