Make anti-virus program in VB.NET

Antivirus

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

32 Replies - 55374 Views - Last Post: 11 August 2011 - 06:19 PM Rate Topic: -----

#16 Ändrew  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 312
  • Joined: 21-April 08

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.
Was This Post Helpful? 1

#17 Gebriel  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 23
  • Joined: 26-January 09

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
Was This Post Helpful? 0
  • +
  • -

#18 Ändrew  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 312
  • Joined: 21-April 08

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.
Was This Post Helpful? 1
  • +
  • -

#19 Core  Icon User is offline

  • using System.Linq;
  • member icon

Reputation: 774
  • View blog
  • Posts: 5,097
  • Joined: 08-December 08

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.
Was This Post Helpful? 0
  • +
  • -

#20 Ändrew  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 25
  • View blog
  • Posts: 312
  • Joined: 21-April 08

Re: Make anti-virus program in VB.NET

Posted 02 February 2009 - 01:15 AM

Yeah but this is for easy ones :)
Was This Post Helpful? 0
  • +
  • -

#21 Gebriel  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 23
  • Joined: 26-January 09

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!
Was This Post Helpful? 0
  • +
  • -

#22 irfan_4f  Icon User is offline

  • New D.I.C Head

Reputation: -6
  • View blog
  • Posts: 4
  • Joined: 12-January 10

Re: Make anti-virus program in VB.NET

Posted 12 January 2010 - 12:19 AM

View PostGebriel, 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


hai can u help me to know how to do it , i want to project for my college,my email id is ** removed**


View PostGebriel, on 2 Feb, 2009 - 04:58 AM, said:

Yes, you are right we want only for the easy ones!

Was This Post Helpful? 0
  • +
  • -

#23 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

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.
Was This Post Helpful? 0
  • +
  • -

#24 andrey_cool  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 7
  • Joined: 08-February 10

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

Was This Post Helpful? 0
  • +
  • -

#25 Jack Eagles1  Icon User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 183
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

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.
Was This Post Helpful? 0
  • +
  • -

#26 willcool52  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 27-February 10

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

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!
Was This Post Helpful? 0
  • +
  • -

#27 willcool52  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 27-February 10

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
Was This Post Helpful? 0
  • +
  • -

#28 RBSprogram101  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 38
  • Joined: 28-March 09

Re: Make anti-virus program in VB.NET

Posted 27 February 2010 - 07:24 PM

View PostGebriel, on 27 January 2009 - 11:22 PM, said:

How can i tell the diffrence between a malware and a virus?


Malware is the general term used for a program that can cause a computer system harm; virus,spyware,trojan horses,worms. My point is a virus is a type malware.
Was This Post Helpful? 0
  • +
  • -

#29 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5233
  • View blog
  • Posts: 27,024
  • Joined: 10-May 07

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.
Was This Post Helpful? 0
  • +
  • -

#30 Guest_SpYk3*


Reputation:

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)
Was This Post Helpful? -3

  • (3 Pages)
  • +
  • 1
  • 2
  • 3