SlideShare une entreprise Scribd logo
1  sur  4
Télécharger pour lire hors ligne
ClamAV For Windows
               Free Anti-Virus Software For Windows Servers

Author: Brian Bruns <bruns@2mbit.com>
Date: 4/22/2005
Version: 1.0d

About ClamAV For Windows
ClamAV For Windows is a port of the popular and powerful ClamAV for UNIX/Linux
machines to Win32 systems. It is known to support Windows NT 4 SP6, Windows
2000 SP4, Windows XP SP2, and Windows 2003. It may also properly work on Win9x
(including Windows ME) systems as well, but is completely unsupported.

About The SOSDG
The SOSDG <http://www.sosdg.org> is a group of individuals that work towards
common goals for the benefit of the Internet community. These goals include the
inexpensive/free hosting of Open Source/Free Software projects, other not-for-
profit/non-profit groups, porting of useful applications to other platforms to encourage
further use, and more.

What Is ClamAV Best Used For?
ClamAV For Windows is best used on servers when integrated with programs that
properly recognize it. There is a list of programs that support ClamAV for Windows on
the main SOSDG website page for the program <http://www.sosdg.org/clamav-
win32>.

What Separates ClamAV From Other Antivirus Programs?
ClamAV is open source and 100% completely free, including definition updates.
There is no fee now or ever for using ClamAV, and is released under the GPL. For
more information on the license regarding ClamAV For Windows, see
<http://www.sosdg.org/clamav-win32/copying.txt>.

Is ClamAV For Windows Really Free?
Yes, there's no catches what-so-ever with using it other then following the GPL
license if you use this program in your own program or distribute it to other people.
However, if you would like to show your appreciation, you can

How Can I Use ClamAV?
Scanning for viruses is fairly simple and straight forward. Start a ‘cmd’ prompt and
type:

C:clamav-develbinclamscan.exe <path to file to scan>
Please note that because of oddities between Windows and UNIX/Linux standards,
you must do one of the following with your paths you specify to ClamAV:

1. Replace  with / in your paths - ie: C:/clamav-devel/test/clam.exe
2. Double your backslashes - ie: C:clamav-develtestclam.exe
3. Use Cygwin Cygdrive notation - ie: /cygdrive/c/clamav-devel/test/clam.exe
4. Quote your normal Windows paths - ie: “C:clamav-develtestclam.exe” -
Note that this does not work right in the configuration files!

When run correctly, you will see an output like the following:

C:clamav-develtestclam.exe: ClamAV-Test-File FOUND

----------- SCAN SUMMARY -----------
Known viruses: 31322
Engine version: devel-20050302
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Time: 3.250 sec (0 m 3 s)

As you can see from the above output, ClamAV has detected one of the test files as a
virus successfully.

Updating Your Virus Definitions
To update your virus definitions, all you need to do is run the ‘freshclam’ program.
You can do this by going to the ClamAV menu item in the Start Menu under Programs,
by double clicking on the exe file in C:clamav-develbin, or on the command line:

C:clamav-develbinfreshclam.exe

Please remember that you need to have an active Internet connection in order to
update the definitions! You can also run this every few hours using the Task Manager
which ensures that you always have the latest virus definitions. Please do not check
more then once every 2-3 hours though, as this will put unnecessary load on the
ClamAV file servers!

Editing Misc Settings For FreshClam and the clamd Daemon
All configuration files are located in the C:clamav-develetc directory and can be
edited with MetaPad, or any other text editor that can write plain text files with standard
UNIX/Linux linefeeds. Please do not use WordPad, Microsoft Word, or other Word
Processing applications to edit these files, as it will add extra junk to the file that will
cause ClamAV to stop functioning.

If you would like to learn more about the settings, you can read the PDF document
which is included with the ClamAV documentation:

C:clamav-develdocsclamdoc.pdf

That document also contains full details on how to use the more advanced features of
ClamAV.

A Good Text Editor For ClamAV Config Files
Because ClamAV is a UNIX/Linux application at the core, reads and writes its config
files with standard <LF>, while Windows uses <CR><LF> to indicate end of lines.
The default Windows editor, Notepad, doesn’t handle UNIX/Linux text files very well.

I recommend the free excellent and powerful MetaPad application from Alexander
Davidson (see http://www.liquidninja.com/metapad/ to download it).

Starting And Stopping The clamd Daemon
The clamd daemon is used for higher speed scanning, and is commonly used when
ClamAV is scanning for viruses on a mail server.

The recommended way to start clamd is by running the start-clamd.bat batch file in
the C:clamav-devel directory. You can do this quickly by using the ‘Start Clamd’
item under ClamAV in the Start Menu. You can also stop clamd in the same way (by
selecting Stop Clamd or using the stop.clamd.bat batch file).

With the clamd daemon running, you can now use clamdscan.exe instead of
clamscan.exe, which will scan using the clamd daemon. This is a much more
efficient way of scanning when you have a large amount of files or e-mail to scan.

Using ClamAV In Other Directories Besides C:clamav-devel
ClamAV will not run properly in other directories besides C:clamav-devel unless you
specify full paths on the command line to the directory where you moved ClamAV.
clamscan.exe --database=e:ClamAVshareclamav
--tempdir=e:clamavtmp --log=e:ClamAVlogclamav.log

This is a limitation of Windows, mostly due to the fact that Windows does not follow
directory standards that UNIX/Linux follow (there are no ‘a’ or ‘c’ drives on UNIX/Linux,
just drives mounted directly to paths such as /usr/local/bin).

Please note that moving ClamAV is completely unsupported and not recommended.
Also, ClamAV may not work right if the directory path has spaces in it.

A Final Note
Obviously, this is not full documentation on how ClamAV For Windows works, but it
will help give you a starting point. Please check <http://www.sosdg.org/clamav-
win32/> for more updates in the future!

Contenu connexe

Similaire à Clamav qs1

Cd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solarisCd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solarisBui Van Cuong
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...Jim Birch
 
SugarCE For Small And Medium Enterprises
SugarCE For Small And Medium EnterprisesSugarCE For Small And Medium Enterprises
SugarCE For Small And Medium EnterprisesDashamir Hoxha
 
Pet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & NmapPet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & NmapMatt Vieyra
 
Ubuntu And Parental Controls
Ubuntu And Parental ControlsUbuntu And Parental Controls
Ubuntu And Parental Controlsjasonholtzapple
 
Take Home Your Very Own Free Vagrant CFML Dev Environment
Take Home Your Very Own Free Vagrant CFML Dev Environment Take Home Your Very Own Free Vagrant CFML Dev Environment
Take Home Your Very Own Free Vagrant CFML Dev Environment ColdFusionConference
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Gavin Pickin
 
CHAPTER 3 BASIC DYNAMIC ANALYSIS.ppt
CHAPTER 3 BASIC DYNAMIC ANALYSIS.pptCHAPTER 3 BASIC DYNAMIC ANALYSIS.ppt
CHAPTER 3 BASIC DYNAMIC ANALYSIS.pptManjuAppukuttan2
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway ServerDashamir Hoxha
 
CDS Filtering Program - User Manual
CDS Filtering Program - User ManualCDS Filtering Program - User Manual
CDS Filtering Program - User ManualYoann Pageaud
 
install k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitinstall k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitWORLD OBD2
 
Creating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with VagrantCreating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with VagrantArtefactual Systems - AtoM
 
Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testersMaksim Kovalev
 
Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009Chris Sinjakli
 
Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guidejasembo
 
Wampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaWampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaAjay Di Sharma
 

Similaire à Clamav qs1 (20)

Cd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solarisCd rom mounting cdro-ms on solaris
Cd rom mounting cdro-ms on solaris
 
Command line for the beginner - Using the command line in developing for the...
Command line for the beginner -  Using the command line in developing for the...Command line for the beginner -  Using the command line in developing for the...
Command line for the beginner - Using the command line in developing for the...
 
SugarCE For Small And Medium Enterprises
SugarCE For Small And Medium EnterprisesSugarCE For Small And Medium Enterprises
SugarCE For Small And Medium Enterprises
 
Pet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & NmapPet Pen Testing Tools: Zenmap & Nmap
Pet Pen Testing Tools: Zenmap & Nmap
 
Ubuntu And Parental Controls
Ubuntu And Parental ControlsUbuntu And Parental Controls
Ubuntu And Parental Controls
 
Take Home Your Very Own Free Vagrant CFML Dev Environment
Take Home Your Very Own Free Vagrant CFML Dev Environment Take Home Your Very Own Free Vagrant CFML Dev Environment
Take Home Your Very Own Free Vagrant CFML Dev Environment
 
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
 
Macdoored
MacdooredMacdoored
Macdoored
 
CHAPTER 3 BASIC DYNAMIC ANALYSIS.ppt
CHAPTER 3 BASIC DYNAMIC ANALYSIS.pptCHAPTER 3 BASIC DYNAMIC ANALYSIS.ppt
CHAPTER 3 BASIC DYNAMIC ANALYSIS.ppt
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
 
CDS Filtering Program - User Manual
CDS Filtering Program - User ManualCDS Filtering Program - User Manual
CDS Filtering Program - User Manual
 
install k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bitinstall k+dcan cable standard tools 2.12 on windows 10 64bit
install k+dcan cable standard tools 2.12 on windows 10 64bit
 
Creating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with VagrantCreating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with Vagrant
 
Dspace
DspaceDspace
Dspace
 
Android tools for testers
Android tools for testersAndroid tools for testers
Android tools for testers
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009
 
Squid proxy-configuration-guide
Squid proxy-configuration-guideSquid proxy-configuration-guide
Squid proxy-configuration-guide
 
Wampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharmaWampserver installation ajay-di-sharma
Wampserver installation ajay-di-sharma
 

Clamav qs1

  • 1. ClamAV For Windows Free Anti-Virus Software For Windows Servers Author: Brian Bruns <bruns@2mbit.com> Date: 4/22/2005 Version: 1.0d About ClamAV For Windows ClamAV For Windows is a port of the popular and powerful ClamAV for UNIX/Linux machines to Win32 systems. It is known to support Windows NT 4 SP6, Windows 2000 SP4, Windows XP SP2, and Windows 2003. It may also properly work on Win9x (including Windows ME) systems as well, but is completely unsupported. About The SOSDG The SOSDG <http://www.sosdg.org> is a group of individuals that work towards common goals for the benefit of the Internet community. These goals include the inexpensive/free hosting of Open Source/Free Software projects, other not-for- profit/non-profit groups, porting of useful applications to other platforms to encourage further use, and more. What Is ClamAV Best Used For? ClamAV For Windows is best used on servers when integrated with programs that properly recognize it. There is a list of programs that support ClamAV for Windows on the main SOSDG website page for the program <http://www.sosdg.org/clamav- win32>. What Separates ClamAV From Other Antivirus Programs? ClamAV is open source and 100% completely free, including definition updates. There is no fee now or ever for using ClamAV, and is released under the GPL. For more information on the license regarding ClamAV For Windows, see <http://www.sosdg.org/clamav-win32/copying.txt>. Is ClamAV For Windows Really Free? Yes, there's no catches what-so-ever with using it other then following the GPL license if you use this program in your own program or distribute it to other people. However, if you would like to show your appreciation, you can How Can I Use ClamAV? Scanning for viruses is fairly simple and straight forward. Start a ‘cmd’ prompt and type: C:clamav-develbinclamscan.exe <path to file to scan>
  • 2. Please note that because of oddities between Windows and UNIX/Linux standards, you must do one of the following with your paths you specify to ClamAV: 1. Replace with / in your paths - ie: C:/clamav-devel/test/clam.exe 2. Double your backslashes - ie: C:clamav-develtestclam.exe 3. Use Cygwin Cygdrive notation - ie: /cygdrive/c/clamav-devel/test/clam.exe 4. Quote your normal Windows paths - ie: “C:clamav-develtestclam.exe” - Note that this does not work right in the configuration files! When run correctly, you will see an output like the following: C:clamav-develtestclam.exe: ClamAV-Test-File FOUND ----------- SCAN SUMMARY ----------- Known viruses: 31322 Engine version: devel-20050302 Scanned directories: 0 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Time: 3.250 sec (0 m 3 s) As you can see from the above output, ClamAV has detected one of the test files as a virus successfully. Updating Your Virus Definitions To update your virus definitions, all you need to do is run the ‘freshclam’ program. You can do this by going to the ClamAV menu item in the Start Menu under Programs, by double clicking on the exe file in C:clamav-develbin, or on the command line: C:clamav-develbinfreshclam.exe Please remember that you need to have an active Internet connection in order to update the definitions! You can also run this every few hours using the Task Manager which ensures that you always have the latest virus definitions. Please do not check more then once every 2-3 hours though, as this will put unnecessary load on the ClamAV file servers! Editing Misc Settings For FreshClam and the clamd Daemon All configuration files are located in the C:clamav-develetc directory and can be edited with MetaPad, or any other text editor that can write plain text files with standard UNIX/Linux linefeeds. Please do not use WordPad, Microsoft Word, or other Word
  • 3. Processing applications to edit these files, as it will add extra junk to the file that will cause ClamAV to stop functioning. If you would like to learn more about the settings, you can read the PDF document which is included with the ClamAV documentation: C:clamav-develdocsclamdoc.pdf That document also contains full details on how to use the more advanced features of ClamAV. A Good Text Editor For ClamAV Config Files Because ClamAV is a UNIX/Linux application at the core, reads and writes its config files with standard <LF>, while Windows uses <CR><LF> to indicate end of lines. The default Windows editor, Notepad, doesn’t handle UNIX/Linux text files very well. I recommend the free excellent and powerful MetaPad application from Alexander Davidson (see http://www.liquidninja.com/metapad/ to download it). Starting And Stopping The clamd Daemon The clamd daemon is used for higher speed scanning, and is commonly used when ClamAV is scanning for viruses on a mail server. The recommended way to start clamd is by running the start-clamd.bat batch file in the C:clamav-devel directory. You can do this quickly by using the ‘Start Clamd’ item under ClamAV in the Start Menu. You can also stop clamd in the same way (by selecting Stop Clamd or using the stop.clamd.bat batch file). With the clamd daemon running, you can now use clamdscan.exe instead of clamscan.exe, which will scan using the clamd daemon. This is a much more efficient way of scanning when you have a large amount of files or e-mail to scan. Using ClamAV In Other Directories Besides C:clamav-devel ClamAV will not run properly in other directories besides C:clamav-devel unless you specify full paths on the command line to the directory where you moved ClamAV. clamscan.exe --database=e:ClamAVshareclamav --tempdir=e:clamavtmp --log=e:ClamAVlogclamav.log This is a limitation of Windows, mostly due to the fact that Windows does not follow directory standards that UNIX/Linux follow (there are no ‘a’ or ‘c’ drives on UNIX/Linux, just drives mounted directly to paths such as /usr/local/bin). Please note that moving ClamAV is completely unsupported and not recommended.
  • 4. Also, ClamAV may not work right if the directory path has spaces in it. A Final Note Obviously, this is not full documentation on how ClamAV For Windows works, but it will help give you a starting point. Please check <http://www.sosdg.org/clamav- win32/> for more updates in the future!