Make anti-virus program in VB.NETAntivirus
32 Replies - 48815 Views - Last Post: 11 August 2011 - 06:19 PM
#16
Re: Make anti-virus program in VB.NET
Posted 29 January 2009 - 11:17 PM
Hmm I think he means like folders that the OS will not alow you to see at all.
#17
Re: Make anti-virus program in VB.NET
Posted 31 January 2009 - 02:00 PM
thanks all
Ändrew
can you give me the advice on DB please
Ändrew
can you give me the advice on DB please
#18
Re: Make anti-virus program in VB.NET
Posted 31 January 2009 - 08:56 PM
Ok so lets say you have made you Database called viruses,
we will have the 'name', 'exefile', 'id'.
We will put those feilds into our db then when we open the program or when we press like a update button if you upload this database to like a webhost we can download them to were we want it. And then when we go searching we search for the things in the database.
we will have the 'name', 'exefile', 'id'.
We will put those feilds into our db then when we open the program or when we press like a update button if you upload this database to like a webhost we can download them to were we want it. And then when we go searching we search for the things in the database.
#19
Re: Make anti-virus program in VB.NET
Posted 31 January 2009 - 09:03 PM
Quote
We will put those feilds into our db then when we open the program or when we press like a update button if you upload this database to like a webhost we can download them to were we want it. And then when we go searching we search for the things in the database.
It's not that easy as it seems. Malicious software is not searched by the name of the executable. It is searched by a specific signature. Also, you need to know the algorithms of these specific pieces of software so you know how to find and remove them.
#20
Re: Make anti-virus program in VB.NET
Posted 02 February 2009 - 01:15 AM
Yeah but this is for easy ones
#21
Re: Make anti-virus program in VB.NET
Posted 02 February 2009 - 05:58 AM
Yes, you are right we want only for the easy ones!
#22
Re: Make anti-virus program in VB.NET
Posted 12 January 2010 - 12:19 AM
Gebriel, on 27 Jan, 2009 - 08:12 AM, said:
I will post the code soon.
my antivirus removes viruses like
adobeRD9.0.exe
autorun.inf
picture.exe
folder.exe
scene.exe
i want to make anti-virus for the virus that is highly affecting computers
in my country Ethiopia it is "DULLA"
please help
after i post the code
my antivirus removes viruses like
adobeRD9.0.exe
autorun.inf
picture.exe
folder.exe
scene.exe
i want to make anti-virus for the virus that is highly affecting computers
in my country Ethiopia it is "DULLA"
please help
after i post the code
hai can u help me to know how to do it , i want to project for my college,my email id is ** removed**
Gebriel, on 2 Feb, 2009 - 04:58 AM, said:
Yes, you are right we want only for the easy ones!
#23
Re: Make anti-virus program in VB.NET
Posted 14 January 2010 - 11:00 AM
Im just going to say the obvious:
Making an effective antivirus in VB is near impossible without a large number of active developers and a fair amount of cash!
There are certain codes which i know which will force-delete a file on a computer reboot. Unfortunately I can't give them to you on this forum because someone might use them to destroy an OS. Also, loads of files will be in use so you won't be able to scan them.
Making an effective antivirus in VB is near impossible without a large number of active developers and a fair amount of cash!
There are certain codes which i know which will force-delete a file on a computer reboot. Unfortunately I can't give them to you on this forum because someone might use them to destroy an OS. Also, loads of files will be in use so you won't be able to scan them.
#24
Re: Make anti-virus program in VB.NET
Posted 09 February 2010 - 01:08 PM
How to scan for files? it's simple:
First Define the Code:
Then to scan the whole pc:
Then to scan a separate folder:
first add a FolderBrowserDialog
then
First Define the Code:
Public Sub MapDirectory(ByVal dir As String) With My.Computer.FileSystem Try For Each file As String In .GetFiles(dir) Label1.Text = My.Computer.FileSystem.GetFileInfo(file).FullName My.Application.DoEvents() Try Me.ListBox1.Items.Add(file) Catch ex As Exception End Try Next file Try For Each folder As Object In .GetDirectories(dir) MapDirectory(folder) Next folder Catch ex As Exception End Try Catch EX As Exception End Try End With End Sub
Then to scan the whole pc:
Public Sub RunFullSystemScan() For Each DRV As IO.DriveInfo In My.Computer.FileSystem.Drives MapDirectory(DRV.Name) Next End Sub
Then to scan a separate folder:
first add a FolderBrowserDialog
then
Public Sub RunFolderScan()
FolderBrowserDialog1.Reset()
FolderBrowserDialog1.ShowDialog()
If FolderBrowserDialog1.SelectedPath = Nothing Then
Else
MapDirectory(FolderBrowserDialog1.SelectedPath)
End If
End Sub
This post has been edited by JackOfAllTrades: 27 February 2010 - 08:20 AM
Reason for edit:: Added code tags
#25
Re: Make anti-virus program in VB.NET
Posted 09 February 2010 - 03:16 PM
1: That will take loads of time
2: No progress
£: You would need to retreive information about every file, and to get your information you'd probably need OS calls, as VB wouldn't be able to perform all the functions of an antivirus on its own; such as force-deleting a file regardless of priveleges.
2: No progress
£: You would need to retreive information about every file, and to get your information you'd probably need OS calls, as VB wouldn't be able to perform all the functions of an antivirus on its own; such as force-deleting a file regardless of priveleges.
#26
Re: Make anti-virus program in VB.NET
Posted 27 February 2010 - 03:42 AM
Hey people,
That code actually works. I have changed it, but it looks based on filenames. It uses the
snippet.
I'll finalise it, then make a new thread for it. I will put a link under this post!
That code actually works. I have changed it, but it looks based on filenames. It uses the
if label1.text.contains("virus")
snippet.
I'll finalise it, then make a new thread for it. I will put a link under this post!
#27
Re: Make anti-virus program in VB.NET
Posted 27 February 2010 - 04:32 AM
In fact, forget that.
I have played around with the code and have now created a program which scans for all files on the disk(s) and opens them, then checks for malicious code.
CODE WILL BE UP SOON
I have played around with the code and have now created a program which scans for all files on the disk(s) and opens them, then checks for malicious code.
CODE WILL BE UP SOON
#28
Re: Make anti-virus program in VB.NET
Posted 27 February 2010 - 07:24 PM
#29
Re: Make anti-virus program in VB.NET
Posted 27 February 2010 - 07:38 PM
irfan_4f : Please don't ask people to contact you off the site. The purpose of Dream In Code is to share solutions & information.
To the OP. You can't just remove viruses by finding their file name & deleting it. Most common viruses have a method of protecting themselves, or some sort of 2nd program that will check to make sure the virus exists. Thus when a virus is removed you must reboot, because something could still be functioning in memory. After reading over this topic it's clear to me that you have quite a bit more research as to program functionality, detecting virus activity, & overall Operating System functionality before writing an anti-virus program.
I'm not suggesting that you don't write one, I just think before you write a single line of code you need to understand the difference between having & not having admin privileges, running a program as a service, how to scan the Windows registry, & looking at process ID's that are currently loaded into memory. After that you'll have an easier time understanding how a virus loads itself, how to stop the process & how to remove the virus from the machine.
To the OP. You can't just remove viruses by finding their file name & deleting it. Most common viruses have a method of protecting themselves, or some sort of 2nd program that will check to make sure the virus exists. Thus when a virus is removed you must reboot, because something could still be functioning in memory. After reading over this topic it's clear to me that you have quite a bit more research as to program functionality, detecting virus activity, & overall Operating System functionality before writing an anti-virus program.
I'm not suggesting that you don't write one, I just think before you write a single line of code you need to understand the difference between having & not having admin privileges, running a program as a service, how to scan the Windows registry, & looking at process ID's that are currently loaded into memory. After that you'll have an easier time understanding how a virus loads itself, how to stop the process & how to remove the virus from the machine.
#30 Guest_SpYk3*
Re: Make anti-virus program in VB.NET
Posted 27 February 2010 - 08:18 PM
First, writing "antiVirus" in .net ... hold on (roflmao)
Second, these first 2 things on your "virus list" way up there, ARE NOT VIRUS OR MALWARE
the adobe one is a member of the adobe reader application
autorun.inf is a file often used on removable media (like cd's) and programs made to be redistributed
Third (ROFLAMAO)
Second, these first 2 things on your "virus list" way up there, ARE NOT VIRUS OR MALWARE
the adobe one is a member of the adobe reader application
autorun.inf is a file often used on removable media (like cd's) and programs made to be redistributed
Third (ROFLAMAO)
|
|

New Topic/Question
Reply



MultiQuote










|