Computer Hope

Software => Computer viruses and spyware => Topic started by: tornado_Saurabh on January 04, 2008, 12:43:43 AM

Title: Anti virus source code !!
Post by: tornado_Saurabh on January 04, 2008, 12:43:43 AM
Can any body help me in writing an anti virus source code ??
Title: Re: Anti virus source code !!
Post by: Deerpark on January 04, 2008, 08:28:28 AM
Well basically a traditional antivirus engine does nothing more than comparing file signatures against signatures of known viruses. (In real life it's more complex than that, but this is the basic idea.)
So in order to create an anti virus program you will need signatures of the viruses it should be able to detect.

But maybe you should get the basics down first. Like what programing language are you going to use to write the program? What operating system should it run under? What viruses should it detect and so on... Also what programming experience do you have? Because a project like this is not for beginners.
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 04, 2008, 10:27:03 PM
I am a final year Comp Science Student . I am fully determined to design an anti-virus engine . The OS is Windows . Language can be C++ or most probably Java .
Title: Re: Anti virus source code !!
Post by: Deerpark on January 05, 2008, 06:07:45 AM
Maybe you should take a look at an open source antivirus program then.
http://www.clamwin.com/

It is written in C++ and Python.
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 05, 2008, 09:49:57 PM
How can I get source code or even documentation . I went to the site but I am not able to get it ! Please help  >:(
Title: Re: Anti virus source code !!
Post by: Deerpark on January 06, 2008, 07:55:20 AM
You will have to check it out from their SVN repository (source control) here.
http://sourceforge.net/svn/?group_id=105508
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 08, 2008, 11:51:23 PM
how to retrieve the source code from the CVS or give some idea how to contribute to the source code ??
thanks for your help  :)
Title: Re: Anti virus source code !!
Post by: Deerpark on January 09, 2008, 03:03:26 AM
How to retrieve it is described on the page I linked to. Note that is not a CVS repository but a SVN repository. You will need a SVN client in order to do the checkout.
TortoiseSVN (http://tortoisesvn.tigris.org/) is a good standalone SVN client. if you're using MS Visual Studio you might want to take a look at AnkhSVN (http://ankhsvn.tigris.org/).

If you want to contribute to the source code you will need to contact the developers of Clamwin. I highly doubt they let anonymous people commit to the repository since that could seriously mess up the code.
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 09, 2008, 04:06:55 AM
In that link there are options for retrieving the exe file not the source code .. I can see the codes but I cant download them all at once ..      please help me in getting the code ..
Title: Re: Anti virus source code !!
Post by: Deerpark on January 09, 2008, 04:28:16 AM
Have you downloaded a SVN client yet? If yes which one?
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 10, 2008, 01:26:48 AM
I have downloaded TortoiseSVN and  ankhsvn .. these are msi files .. will try to work out
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 17, 2008, 11:29:42 PM
I have installed TortoiseSVN .. its telling to right click and create repository .. How to get the codes from net .. What URL to give ?? Please help ..
Title: Re: Anti virus source code !!
Post by: Deerpark on January 18, 2008, 02:36:43 AM
This is the url for the repository.
https://clamwin.svn.sourceforge.net/svnroot/clamwin

It is listed on the page I linked to earlier.
http://sourceforge.net/svn/?group_id=105508
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 18, 2008, 11:59:54 PM
I tried to work out in linux ..
svnadmin create /usr/svn/newrepos
svn checkout "https://clamwin.svn.sourceforge.net/svnroot/clamwin/"
I tried the above but it gave error as below ..
svn: PROPFIND request failed on '/svnroot/clamwin'
svn: PROPFIND of '/svnroot/clamwin': Could not resolve hostname `clamwin.svn.sou rceforge.net': Temporary failure in name resolution (https://clamwin.svn.sourcef orge.net)

How to resolve please help ..
Title: Re: Anti virus source code !!
Post by: Deerpark on January 19, 2008, 03:11:27 AM
What?
In your last post you have downloaded TortoiseSVN and needed help getting it to download the repository... now you're suddenly doing it in Linux? Sorry can't help you there. I'm only a Linux beginner myself.
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 19, 2008, 04:07:34 AM
I was not able to work with TortoiseSVN thats why I switched to Linux .. You can atleast help me in working with TortoiseSVN ..
Title: Re: Anti virus source code !!
Post by: Deerpark on January 19, 2008, 04:44:00 AM
In order to checkout a repository do the following.
Create a new folder somewhere and open it.
Right click it and select SVN Checkout...
In the new window type in the URL for the repository. I suggest you use the following URL, this way you only get the main development line:
https://clamwin.svn.sourceforge.net/svnroot/clamwin/trunk
Make sure the checkout directory is correct.
Press ok.
TortoiseSVN should now start downloading the repository, this might take a while.

I suggest you have a look at the TortoiseSVN manual in order to get familiar with TortoiseSVN's abilities and SubVersion repositories in general.
http://tortoisesvn.net/support
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 20, 2008, 09:40:05 PM
as per your instruction I tried the same but I am getting the error ..


Error: PROPFIND request failed on '/svnroot/clamwin/trunk' 
Error: PROPFIND of '/svnroot/clamwin/trunk': Could not resolve hostname `clamwin.svn.sourceforge.net': The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for.   (https://clamwin.svn.sourceforge.net) 


Please Help ..
Title: Re: Anti virus source code !!
Post by: Deerpark on January 21, 2008, 04:14:10 AM
Don't know what to tell you... it works fine here.
Make sure TortoiseSVN is allowed in any firewall you have installed.
Title: Re: Anti virus source code !!
Post by: tornado_Saurabh on January 21, 2008, 09:14:07 PM
Thanks for your help ... I am able to retrive now .. I had to change the proxy settings .. Thanks ..