Boasta Topic Starter
Posts: 4
|
 |
« on: August 19, 2009, 09:56:05 AM » |
|
Can someone pliz who know how to create an antivirus using C# help me because i want to create an antivirus 
|
|
|
|
|
|
|
|
|
|
|
BC_Programmer
Thanked: 697 Posts: 15,881
Computer: Specs Experience: Beginner OS: Windows 7

Pinkie Pie is best pony
|
 |
« Reply #4 on: August 19, 2009, 12:18:36 PM » |
|
well, you probably could, but parts of it will surely need to be lower level.
now, my parlance was wrong. I use the term "on-demand" not to mean started by the user but rather "on-demand" when programs are executed.
a program that fits the common, if not altogether misleading, "on-demand" scanner, such as malwarebytes, is possible via C#.
(heck, MBAM itself is written in Visual Basic 6...)
|
|
|
|
Boasta Topic Starter
Posts: 4
|
 |
« Reply #5 on: August 21, 2009, 09:31:31 AM » |
|
Can someone pliz who know how to create an antivirus using C# help me because i want to create an antivirus 
I am still learning
|
|
|
|
|
|
|
|
|
smeezekitty
Thanked: 44 Posts: 0
|
 |
« Reply #8 on: August 21, 2009, 12:05:23 PM » |
|
i think teh orig poster only wants to make a AV that you manually start the scan and the program terminates the hard part is, is recursive directory search i also think this is homework
|
Acer extensa 463oz 2 gb ram 160gb hdd 2ghz processor and desk fan sitting next to it for cooling 
|
|
|
|
|
smeezekitty
Thanked: 44 Posts: 0
|
 |
« Reply #10 on: August 21, 2009, 12:39:26 PM » |
|
err, no... the hard part is scanning each file... where will he get the database? how will he generate it?
Recursive directory search is fairly easy.
C#:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[] args) {
DirectoryInfo currdir = new DirectoryInfo(System.IO.Directory.GetCurrentDirectory()); viewdir(currdir);
} static void viewdir(DirectoryInfo argument) { foreach (FileInfo fileuse in argument.GetFiles()) { Console.WriteLine(fileuse.FullName);
} foreach (DirectoryInfo dir in argument.GetDirectories()) { Console.WriteLine(dir.FullName); viewdir(dir);
}
} } }
but does it go back to the root directory when done scanning subs?
|
Acer extensa 463oz 2 gb ram 160gb hdd 2ghz processor and desk fan sitting next to it for cooling 
|
|
|
|
|
smeezekitty
Thanked: 44 Posts: 0
|
 |
« Reply #12 on: August 21, 2009, 12:57:43 PM » |
|
i mean does it return back to root directory to continue scanning after its scaned all sub directorys? i could never get that righht
|
Acer extensa 463oz 2 gb ram 160gb hdd 2ghz processor and desk fan sitting next to it for cooling 
|
|
|
|
|
Boasta Topic Starter
Posts: 4
|
 |
« Reply #14 on: August 22, 2009, 04:07:04 AM » |
|
I am still learning programming and i would be happy if someone could show me some samples or either some documents about the creation of an antivirus
|
|
|
|
|