Create your own Professional Antivirus Program [ 2 Tutorials]



First Tutorial

Have you ever wanted to create your own antivirus software? Follow this tutorial and you will have your own antivirus program that scans your files using an MD5 hash scanning technique in a short time.
In this guide I am going to show you how to create a professional antivirus program that scans for MD5 hashes. To get a better look on what you are going to make I will explain some things about MD5 hashes.





Every unique file on your computer has an MD5 hash. The MD5 hash can be used for different things such as
  • Identifying the file as a virus by an antivirus
  • Checking for duplicate files
An MD5 hash looks like this: 098f6bcd4621d373cade4e832627b4f6, it contains a total of 32 letters and numbers.
In this guide we will be creating a piece of software that compares the MD5 hash of a file with known MD5 hashes of bad files such as viruses, and will report to you if a match has been found. In no way should you use this software as a replacement of your real, commercial security software such asPC Tools IS 2011 or Kaspersky IS 2011.
To start the creation of your very own antivirus program you are going to need programming software. In this guide I will be giving you code that can be used in the programming software "Visual Basic 2010 Express Edition". This programming software can be downloaded from the following URL:http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express. After you have installed it please take your time to get used to the programming environment by watching a couple of videos. I am not going to give away the full code in this guide because of possible errors so you will need to do some things by yourself. After you have gotten used to the coding software you can continue with the guide.
Your antivirus program has a few parts which should be coded:
  • You will need to get the MD5 hash of a file, the coding for this part is located at this URL.
  • Your antivirus should compare the MD5 hash of the file with known bad MD5 hashes, so you will need to enter the MD5 hash found in the above step into a textbox, and then you should compare that textbox with known bad MD5 hashes by using: "If textbox.text = XXXXX then ... "
  • If a match is found your antivirus should report it to you with a messagebox: Msgbox "Virus Found"
The layout of your antivirus is entirely up to you and I suggest you to watch a few videos on YouTube containing self made (fake) antivirus software that have a nice layout, to get some ideas:http://www.youtube.com/watch?v=-5VZj-yaVtw and http://www.youtube.com/watch?v=CQx-T3JtJg4&feature=related.


Second Tutorial


Ever wanted to create your own anti-virus program? Follow this tutorial and you will got your own anti-virus in a few minutes.
Visual basic 2008 express edition needed!

Hello everyone, I’ve written and published a better tutorial than this one at this url:

http://factoidz.com/create-your-own-professional-antivirus-program-using-the-programming-software-visual-basic/

In this tutorial i will learn you to create an anti-virus that scans for files and processes.
First, let’s start a new project and put a listbox and a button on your form. Insert the following code in the click event of your button:
—–
Private
If My.Computer.FileSystem.DirectoryExists(”c:Program Files180search Assistant”) Then ListBox1.Items.Add(”Adware.180Search”)
—–
‘ This will add the item ‘Adware.180search to the listbox if c:Program files180search Assistant exists. If you want to search for a file you will have to do this:
—–
If My.Computer.FileSystem.FileExists(”c:Program Files180search Assistantsomething”) Then ListBox1.Items.Add(”Adware.180Search”)

 So if you want to search for a directory you have to use DirectoryExists, and if you want to search for a file you have to use FileExists.—–
Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Congratulations! You created an anti-virus that scans for files or folders. If you want to have an anti-virus that scans for processes, you will have to use this code: (Remember to type the process with uppercase characters!)
—–
strFoundProcess =
Dim AllProcessDim ProcessDim strFoundProcessFalse
AllProcess = GetObject(
“winmgmts:”)
strFoundProcess =
For Each Process In AllProcess.InstancesOf(”Win32_process”) If (InStr(UCase(Process.Name), “THEPROCESS.EXE“) = 1) Then ListBox1.Items.Add(”THENAMEOFTHEVIRUS“) True Exit For End If Next If strFoundProcess = False Then End If
AllProcess =
Nothing
—–
strFoundProcess =
False
AllProcess = GetObject(
“winmgmts:”)
If (InStr(UCase(Process.Name), “THEPROCESS.EXE“) = 1) Then
ListBox1.Items.Add(
strFoundProcess =
THENAMEOFTHEVIRUS“)True Exit For End If Next If strFoundProcess = False Then End If
AllProcess =
Nothing
For Each Process In AllProcess.InstancesOf(”Win32_process”)
You only need to that once! After you did that once, you can use this code:
False
AllProcess = GetObject(
“winmgmts:”)
‘create object For Each Process In AllProcess.InstancesOf(”Win32_process”)
‘Get all the processes running in your PC If (InStr(UCase(Process.Name), “AUPDATE.EXE”) = 1) Then
‘Made all uppercase to remove ambiguity. Replace TASKMGR.EXE with your application name in CAPS.
ListBox1.Items.Add(
“Spyware.W32.123bar”
)
strFoundProcess =
TrueExit
ForEnd
If
NextIf strFoundProcess = False
ThenEnd
If
AllProcess =
Nothing
Congrats! You completed this tutorial and know how to create your own anti-virus!

Share on Google Plus

About Unknown

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments :

Post a Comment