$ clamscan Mdsr.1200970448.1465831.Q00073802
Mdsr.1200970448.1465831.Q00073802: Oversized.Zip FOUND
----------- SCAN SUMMARY -----------
Known viruses: 194517
Engine version: 0.91.2
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Time: 8.390 sec (0 m 8 s)
Mdsr.1200970448.1465831.Q00073802: Oversized.Zip FOUND
----------- SCAN SUMMARY -----------
Known viruses: 194517
Engine version: 0.91.2
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 0.00 MB
Time: 8.390 sec (0 m 8 s)
원인 : 정확하지는 않지만... 압축 파일의 압축률이 문제가 되는듯함.
조치사항:
Clamd
/usr/local/etc/clamd.conf 파일의
#ArchiveMaxCompressionRatio 300
을
ArchiveMaxCompressionRatio 500
와같이 주석을 제거한후 500으로 변경
#ArchiveMaxCompressionRatio 300
을
ArchiveMaxCompressionRatio 500
와같이 주석을 제거한후 500으로 변경
Clamscan
$clamscan --max-ratio=500 Mdsr.1200970448.1465831.Q00073802
PyClamav
vi pyclamav.c 파일을 다음과 같이 수정
/* set up archive limits */
memset(&limits, 0, sizeof(struct cl_limits));
limits.maxfiles = 1000; /* max files */
limits.maxfilesize = 10 * 1048576; /* maximal archived file size == 10 Mb */
limits.maxreclevel = 5; /* maximal recursion level */
limits.maxratio = 500; /* maximal compression ratio */
limits.archivememlim = 0; /* disable memory limit for bzip2 scanner */
/* set up archive limits */
memset(&limits, 0, sizeof(struct cl_limits));
limits.maxfiles = 1000; /* max files */
limits.maxfilesize = 10 * 1048576; /* maximal archived file size == 10 Mb */
limits.maxreclevel = 5; /* maximal recursion level */
limits.maxratio = 500; /* maximal compression ratio */
limits.archivememlim = 0; /* disable memory limit for bzip2 scanner */
"프로그래밍 / Python" 분류의 다른 글
[python] Python에서 MSSQL 사용하기 (0) | 2008/03/06 |
[python] mod_python 오류 (0) | 2008/02/25 |
[python] Python C Module 만들기 (0) | 2006/11/28 |
[python] eclipse에서 python 작업하기 (0) | 2006/08/16 |
[python] 함수 포인터 (0) | 2006/06/21 |
[python] Python으로 작성된 Hellow, World! (0) | 2006/05/16 |