Page 1 of 3

*Very* Basic Anti-Virus

Posted: Wed Nov 11, 2009 11:43 pm
by GoodGuy17
NOTE: THIS IS NOT A FULL ANTIVIRUS. THIS IS A START CODE OF WHAT YOU CAN EDIT TO MAKE YOUR OWN!
Hello,
I am going to show you all how to make a basic antivirus! Most people think it would be extremely hard, but with the way I'm going to show you, you won't believe your eyes :D lol.
OK, let's get down to business.
First:
Add 2 Buttons
Add 1 Listbox
Next:
Name 1 button: btnScan, and make it's caption Scan
Name the other button: btnRemove, and make it's caption Remove Selected Item
Name the listbox: lstViruses
Then,
Arrange the controls as shown in this picture:
Image
Finally,
Use this code for the btnScan click event:
Code: Select all
        If My.Computer.FileSystem.FileExists("E:\Program Files\Activity Keylogger\akeylogger.exe") Then
            lstViruses.Items.Add("Keylogger.AKeyLogger")
        End If
Use this code for the btnRemove click event:
Code: Select all
        If lstViruses.SelectedItem = ("Keylogger.AKeyLogger") Then
            My.Computer.FileSystem.DeleteFile("E:\Program Files\Activity Keylogger\akeylogger.exe")
            MsgBox("Deleted.")
            lstViruses.Items.Remove("Keylogger.AKeyLogger")
        End If
If you want to add more to your "database", then google "Viruses" and they should tell you the directory and virus name. If you change the code, it should be like this:
The scan button:
Code: Select all
If My.Computer.FileSystem.FileExists(Directory of virus) Then
            lstViruses.Items.Add(Virus name)
        End If
The remove button:
Code: Select all
If lstViruses.SelectedItem = (Virus name) Then
            My.Computer.FileSystem.DeleteFile(Directory of virus)
            MsgBox("Deleted.")
           lstViruses.Items.Remove(Virus name)
        End If
Congratulations on your antivirus!
~GoodGuy17~ :D

Re: *Very* Basic Anti-Virus

Posted: Thu Nov 12, 2009 7:26 pm
by Nery
You would need a database of harmful programs :D

Re: *Very* Basic Anti-Virus

Posted: Sat Nov 14, 2009 12:34 am
by hungryhounduk
Excellent Tutorial Reboh, and you was only saying to me the other day that you were thinking of giving up programming........ Well Done

Re: *Very* Basic Anti-Virus

Posted: Sat Nov 14, 2009 11:03 am
by Nery
He said he was thinking of giving up programming?!

No way! You can play Football and Program, there's no problem on that!

Re: *Very* Basic Anti-Virus

Posted: Wed Nov 25, 2009 7:49 am
by Miutubevids
i love my sport and i love my computer and i got a hot GF
no problem with that

Re: *Very* Basic Anti-Virus

Posted: Wed Nov 25, 2009 10:19 pm
by Normall
Thanks this is cool

Re: *Very* Basic Anti-Virus

Posted: Wed Nov 25, 2009 10:20 pm
by Normall
Thanks this is cool

Re: *Very* Basic Anti-Virus

Posted: Sun Dec 06, 2009 1:23 pm
by Diazepa
Nice! but i doubt anyone would call their program "akeylogger" :P Instead you should punish suspicious behaviour :D

Re: *Very* Basic Anti-Virus

Posted: Tue Dec 08, 2009 11:19 pm
by Robby
Good Job reboh this is really awesome but you will surely need a database od al lthe viruses in the word which is the hardest part of making an antivirus but good job on creating tghe first part :D


Nice Job Mate :)

Re: *Very* Basic Anti-Virus

Posted: Wed Dec 09, 2009 11:37 pm
by Miutubevids
good job