 | SEND MAIL WITH CLAMSCAN COMMAND LINE |  |
pascalvp
Joined: 15 Apr 2010 |
Posts: 0 |
Location: france |
|
 |
Posted: Tue Apr 27, 2010 9:29 am |
|
 |
 |
 |
 |
Bonjour
J’utilise actuellement Clamwin sur des serveurs multi utilisateurs (TSE)
L’interface g?©n?re un profil par utilisateur, ce n’est pas tr?s pratique je sais que la version actuelle n’est pas pr?©vu pour fonctionner dans un tel environnement, alors je contourne en utilisant Clamwin en mode Standalone
J’ai cr?©?© un script pour effectuer un scan quotidien avec une maj de la base de donn?©es.
Il y a beaucoup de directive en ligne de commandes toutes ne sont pas document?©es,
Je voulais savoir si il existe une documentation des directives de la ligne de commande je souhaite savoir si il existe une possibilit?© d’utiliser les options d’envoi de mails en ligne de commande
Je mets une copie du script pour ceux que ?§a int?©resse
Merci
---------
Hello
I currently use Clamwin on multi-user servers (TSE)
The interface generates a profile for each user, it is not very practical I know that the current version is not designed to operate in such an environment, so I bypassed using Clamwin Standalone mode
I created a script to do a scan every day with a maj in the database.
There are many command line directive, not all are documented,
I wanted to know if there is a documentation of directives on the command line I want to know if there is a possibility to use the option of sending mail from the command line
I put a copy of the script for those interested
Thanks you
@rem "CREATION DES VARIABLES ET DES LOGS"
@SET SESO=C:\EXPLOIT
@call %SESO%\SCRPT\DATETIME.CMD
if not exist %SESO%\CLAMWIN\TMP\nul md %SESO%\CLAMWIN\TMP
SET TMPCLAM=%SESO%\CLAMWIN\TMP
SET DBCLAM=%SESO%\CLAMWIN\DB
SET QTCLAM=%SESO%\CLAMWIN\QUARANTINE
@rem SET DRVSCAN="C:\\" "D:\\" exemple
SET DRVSCAN="%systemdrive%\\"
SET DBLOGS=%SESO%\CLAMWIN\LOG\ClamScanLog%DATETIME%.log
SET CNFFRESH="%ProgramFiles%\ClamWin\Bin\freshclam.conf"
SET LOGCLAM=%SESO%\CLAMWIN\LOG
@Cscript %SESO%\SCRPT\PURGELOG.VBS //NOLOGO %SESO%\CLAMWIN\LOG 2
"%ProgramFiles%\ClamWin\Bin\freshclam.exe" --datadir=%DBCLAM% --config-file=%CNFFRESH% --log=%LOGCLAM%\ClamUpdateLog.txt
"%ProgramFiles%\ClamWin\bin\clamscan.exe" --tempdir "%TMPCLAM%" --keep-mbox --stdout --database="%DBCLAM%" --log="%DBLOGS%" --infected --max-files=500 --max-scansize=200M --max-recursion=50 --max-filesize=100M --show-progress --move="%QTCLAM%" --recursive --exclude="[^\]*\.dbx$" --exclude="[^\]*\.tbb$" --exclude="[^\]*\.pst$" --exclude="[^\]*\.dat$" --exclude="[^\]*\.log$" --exclude="[^\]*\.evt$" --exclude="[^\]*\.nsf$" --exclude="[^\]*\.ntf$" --exclude="[^\]*\.chm$" --exclude="[^\]*\.mdb$" --exclude="[^\]*\.ldb$" --exclude="[^\]*\.mdf$" --exclude="[^\]*\.ldf$" --memory --kill %DRVSCAN%
|
|
 |
 | |  |
sherpya
Joined: 22 Mar 2006 |
Posts: 0 |
Location: Italy |
|
 |
Posted: Wed Apr 28, 2010 3:53 pm |
|
 |
 |
 |
 |
you can use this tool
https://www.blat.net/ https://www.blat.net/
by checking the errorlevel
clamscan returns
0 : No virus found.
1 : Virus(es) found.
2 : An error occured.
you can decide to send email only if return code is not 0
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by
phpBB © phpBB Group
Design by
phpBBStyles.com |
Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.