How To Make A Real Virus File Scanner

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
19 posts Page 1 of 2
User avatar
flashsight
New Member
New Member
Posts: 19
Joined: Fri Jun 18, 2010 7:42 am

How To Make A Real Virus File Scanner

Stuff You Will Need:
Visual Basic 2005/2008/2010
.NET Framework 2.0 or Higher

Buttons Or TexBoxes etc.
3 Buttons
2 TextBox

1)First, Arrange TextBox1 Where Ever You Like And Put It Multiline

2)For Button1, Type "Scan". For Button2, Type "Browse". For Button3, Type "Delete"

Now For The Code
Right Click On Form1 And Click View Code
Code: Select all
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text.Contains("VIRUS") Then

            MsgBox("Virus Detected.", MsgBoxStyle.Critical)
        Else
            MsgBox("File Safe", MsgBoxStyle.Information)
        End If
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim alltext As String = "", lineoftext As String = ""
        OpenFileDialog1.Filter = "All Files|*.*"
        OpenFileDialog1.ShowDialog()
        If OpenFileDialog1.FileName <> "" Then
        End If
        Try
            FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input)

            Do Until EOF(1)
                lineoftext = LineInput(1)
                alltext = alltext & lineoftext & vbCrLf
            Loop
            TextBox1.Text = alltext
        Catch
        Finally
            FileClose()
        End Try
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Kill(OpenFileDialog1.FileName)
    End Sub

    Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
        TextBox2.Text = OpenFileDialog1.FileName
    End Sub
End Class


3)That's About All! :D
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

This is not really the best way to do a AV, this is more like fake, cuz there is no virus with the code 'virus', one of the best way is through MD5 hash, but good anyways
Top-notch casual Dating
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

So here is the thing, im a hacker and every virus i make contains the word virus, i do this so i get caught? - Doesnt sound right, Nice try though
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

agust1337 wrote:
This is not really the best way to do a AV, this is more like fake, cuz there is no virus with the code 'virus', one of the best way is through MD5 hash, but good anyways
how would u make one like that?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
MrBrockWalker
VIP - Donator
VIP - Donator
Posts: 171
Joined: Mon Jul 05, 2010 10:30 am

If anti virus products used this way to detect virus's I'd want a better anti-virus lol, not bad though
Visit BW Photography and check out my photos!
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

zachman61 wrote:
agust1337 wrote:
This is not really the best way to do a AV, this is more like fake, cuz there is no virus with the code 'virus', one of the best way is through MD5 hash, but good anyways
how would u make one like that?
I have made one antivirus with that just look in Full Software for App Scanner or Show Room/Work in progress
Top-notch casual Dating
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

how can you make it work like that?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Moayad
Just Registered
Just Registered
Posts: 8
Joined: Tue Jul 13, 2010 5:14 am

this is fake
User avatar
reececlarke
VIP - Donator
VIP - Donator
Posts: 245
Joined: Tue Dec 08, 2009 6:47 pm

zachman61 wrote:
how can you make it work like that?
look at my anti virus
for a e.g it uses MD5 data base
Image
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

well that is pretty much advertising because its just a software not a tutorial or a source.
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
19 posts Page 1 of 2
Return to “Tutorials”