*Very* Basic Anti-Virus

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.
30 posts Page 1 of 3
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

*Very* Basic Anti-Virus
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
Last edited by GoodGuy17 on Wed Mar 24, 2010 9:57 pm, edited 1 time in total.
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: *Very* Basic Anti-Virus
Nery
You would need a database of harmful programs :D
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

Re: *Very* Basic Anti-Virus
hungryhounduk
Excellent Tutorial Reboh, and you was only saying to me the other day that you were thinking of giving up programming........ Well Done
Image
User avatar
Nery
Co-Admin Moderator
Co-Admin Moderator
Posts: 1117
Joined: Mon Sep 07, 2009 8:11 pm

Re: *Very* Basic Anti-Virus
Nery
He said he was thinking of giving up programming?!

No way! You can play Football and Program, there's no problem on that!
User avatar
Miutubevids
VIP-Member
VIP-Member
Posts: 293
Joined: Mon Nov 23, 2009 11:39 am

Re: *Very* Basic Anti-Virus
Miutubevids
i love my sport and i love my computer and i got a hot GF
no problem with that
Don't BS the BSer

RePlay V1.0 - Record your Mouse Clicks, Mouse Movments and Keystrokes
AutoClicker v1.0
SnowScreen
Reaction Timer Game V1.0
User avatar
Normall
Member
Member
Posts: 49
Joined: Wed Nov 25, 2009 9:25 pm

Re: *Very* Basic Anti-Virus
Normall
Thanks this is cool
User avatar
Normall
Member
Member
Posts: 49
Joined: Wed Nov 25, 2009 9:25 pm

Re: *Very* Basic Anti-Virus
Normall
Thanks this is cool
User avatar
Diazepa
VIP - Donator
VIP - Donator
Posts: 70
Joined: Sat Sep 12, 2009 11:38 pm

Re: *Very* Basic Anti-Virus
Diazepa
Nice! but i doubt anyone would call their program "akeylogger" :P Instead you should punish suspicious behaviour :D
User avatar
Robby
VIP - Donator
VIP - Donator
Posts: 417
Joined: Mon Aug 03, 2009 4:01 am

Re: *Very* Basic Anti-Virus
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 :)
My current Projects Listed Below:
Toixt++ Text Editor Just 10 or less more features to go!
Image
Image
User avatar
Miutubevids
VIP-Member
VIP-Member
Posts: 293
Joined: Mon Nov 23, 2009 11:39 am

Re: *Very* Basic Anti-Virus
Miutubevids
good job
Don't BS the BSer

RePlay V1.0 - Record your Mouse Clicks, Mouse Movments and Keystrokes
AutoClicker v1.0
SnowScreen
Reaction Timer Game V1.0
30 posts Page 1 of 3
Return to “Tutorials”