Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C (http://www.programmingforums.org/forum60.html)
-   -   need some technical guidence (http://www.programmingforums.org/showthread.php?t=14772)

arpitt Dec 19th, 2007 3:28 PM

need some technical guidence
 
please help me

i want to make utility programs in c. so i need some guidence about functions and libraries that can be used for that task.

and if any one have an example code than its my pleasure to see it

i have a normal background in c, java, foxpro type of simple languages .

this is my first post, please dont ignore

Narue Dec 19th, 2007 3:38 PM

Re: need some technical guidence
 
>please dont ignore
I won't ignore you, but I can't answer your question either. It's waaaay to broad.

Sane Dec 19th, 2007 5:10 PM

Re: need some technical guidence
 
You want to make "utility programs"? Pick up any C book and start reading ...

arpitt Dec 20th, 2007 1:54 PM

Re: need some technical guidence
 
thanks to both of you for answering my question
actually both of you are right ...my question has great scope to answer
ok...........
now i will try to make it brief

i want to make an antivirus program ...can anyone please give me a sample algorithm or whatever that can be helpfull

i know the concept of antivirus is something like this ' if a file changes its size abnormally then it can be infected '
the question is how can i impliment it in a program

Sane Dec 20th, 2007 3:01 PM

Re: need some technical guidence
 
There's a huge number of levels involved with a virus scanner.

Many aspects exist. Some of these are:
  • Removing black-listed files. Which can be mantained by you and synchronized with the program routinely. Websites also exist that give out free lists of blacklisted filenames.
  • Removing potentially dangerous looking files.
  • Removing dangerously behaving files.
  • Protecting yourself from viruses. As some viruses will attempt to knock out the very virus scanner that's intended to detect it.

There of course many more aspects, but these are the fundamentals I know of. All of these aspects of a virus scanner are not implemented in any special way. It's using C code that you should know if you are an experienced C programmer. For instance, synchronizing a blacklist involves sockets. Removing these files involves a basic directory walk and clean. So pick up a book and start reading.

The finer details, like how to make the program protect itself, and how to recognize a virus by behaviour, would involve some more specific algorithms. I can't help you there, but I'd suspect most of these algorithms are secrets within the market, and wouldn't be publicly accessible for many reasons. A large consideration is the fact that it would be helping viruses stay a step ahead of the virus scanners...

MiKuS Dec 20th, 2007 7:03 PM

Re: need some technical guidence
 
if you're planning on writing an av program this might be useful:
http://www.clamav.net/

clam av is an open source virus scanner written in C.

Game_Ender Dec 21st, 2007 2:49 AM

Re: need some technical guidence
 
If you are looking for something to add, I believe clamav lacks a client which does the normal on-demand scanning of typical commercial virus scanners.


All times are GMT -5. The time now is 3:38 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC