ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
need help with zip/archive files scan with command line
orel86


Joined: 10 Jun 2013
Posts: 0
Reply with quote
Hi all ,
i am try to scan a zip file with the clamwin command line ,
when i do the scaning it start to scan and after 3 seconds it stops the scaning and i see it count only 1 file the scanner did not scan the files inside the zip file.
what can i do?? please help me

beast regards
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 9
Location: USA
Reply with quote
See if you can scan the zip files from the GUI or the Windows explorer right context menu. If you can, then there is something wrong with your command line script.

Regards,
View user's profileSend private message
no the same issue:(
orel86


Joined: 10 Jun 2013
Posts: 0
Reply with quote
i scaned the same zip file with the gui and the same problem is happens,(sorry for my bad english)
and the most frastrating issue that i did not see the files that the clam command line scaner is scan i just see 0 files mayby something with my config file? or my script command?
this is my commanddd script:
clamscan.exe --scan-archive --max-recursion=7 --database="C:\Program Files\ClamWin\db" --recursive c:/test

this is what the gui show after the scan:
------- SCAN SUMMARY -----------
Known viruses: 2380292
Engine version: 0.97.8
Scanned directories: 0
Scanned files: 1
Infected files: 0

Data scanned: 45.43 MB
Data read: 29.78 MB (ratio 1.53:1)
Time: 24.825 sec (0 m 24 s)

--------------------------------------
Completed
--------------------------------------




and this is my config file :

[EmailScan]
scanoutgoing = 1
scanincoming = 1
showsplash = 1

[Schedule]
path =

[ClamAV]
infectedonly = 1
maxfilesize = 100
showprogress = 1
excludepatterns = *.dbx|CLAMWIN_SEP|*.tbb|CLAMWIN_SEP|*.pst|CLAMWIN_SEP|*.dat|CLAMWIN_SEP|*.log|CLAMWIN_SEP|*.evt|CLAMWIN_SEP|*.nsf|CLAMWIN_SEP|*.ntf|CLAMWIN_SEP|*.chm
kill = 1
priority = Low
logfile = C:\Program Files\ClamWin\log\ClamScanLog.txt
freshclam = C:\Program Files\ClamWin\bin\freshclam.exe
scanarchives = 1
ArchiveMaxRecursion = 10
MaxRecursion = 10

clamscan = C:\Program Files\ClamWin\bin\clamscan.exe
maxscansize = 1500
includepatterns =
maxfiles = 500
scanole2 = 1
quarantinedir = C:\Program Files\ClamWin\log\quarantine
maxlogsize = 1
moveinfected = 0
freshclamparams =
enablembox = 0
scanrecursive = 1
database = C:\Program Files\clamwin\db

clamscanparams =
debug = 0
removeinfected = 0

[UI]
reportinfected = 1
traynotify = 1
version = 0.97.8
standalone = 0

[Proxy]
host =
password =
port = 3128
user =

[EmailAlerts]
enable = 0
from = clamwin@yourdomain
to = admin@yourdomain
smtppassword =
smtpuser =
smtphost =
smtpport = 25
subject = ClamWin Virus Alert

[Updates]
checkversion = 1
checkversionurl = https://clamwin.sourceforge.net/clamwinver.php
warnoutofdate = 1
enable = 1
dbupdatelogfile = C:\Program Files\ClamWin\log\ClamUpdateLog.txt
dbmirror = database.clamav.net
updateonlogon = 0
frequency = Daily
weekday = 2
time = 11:51:00
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 9
Location: USA
Reply with quote
Your script is clamscan.exe --scan-archive --max-recursion=7 --database="C:\Program Files\ClamWin\db" --recursive c:/test . Try this: clamscan.exe --scan-archive --max-recursion=7 --database="C:\ProgramData\.ClamWin\db" --recursive c:/test . I think you have the wrong location for the database, and the dot before \clamwin\db is missing.

Regards,
View user's profileSend private message
i changed the db link at the config file
orel86


Joined: 10 Jun 2013
Posts: 0
Reply with quote
it is more comftable that the db will be in the same folder that the clam installation is.. anyway this is the same.. i used the debugigng tool and see that the zip file for examle is unzipe the file .
View user's profileSend private message
need help with zip/archive files scan with command line
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  

  
  
 Reply to topic