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.
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
3)That's About All!
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!

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
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
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 anywayshow 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 

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!
zachman61 wrote:I have made one antivirus with that just look in Full Software for App Scanner or Show Room/Work in progressagust1337 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 anywayshow would u make one like that?
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 

zachman61 wrote:how can you make it work like that?look at my anti virus
for a e.g it uses MD5 data base
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 

Copyright Information
Copyright © Codenstuff.com 2020 - 2023