Thank you for reply,

Török Edwin, Very, very good web seminar!

I have 2 more questions:

1) I'd like to measure & compare performance of AC & BM algorithms.

clamscan displays in 'scan summary' a 'time'. Does this time include
disc access, signature tree building in AC(phase1) or BM
Just wonder If I can use this time or I should figure out new timestamps.

>Time: 2.189 sec (0 m 2 s)

2) I've downloaded Eicar Test Anti-Virus File and crated 10bytes file.
(See logs below) Then I've appended Eicar to this file. Why clamscan
doesn't find a signature in this file?



LOGS:
1. Creating 10bytes file

[EMAIL PROTECTED]
~/projects/aau/virus_scanner/clamav-0.94.1/database $ time dd
if=/dev/urandom of=../../testbox/new10bytes.com bs=10 count=1
1+0 records in
1+0 records out
10 bytes (10 B) copied, 4.8609e-05 s, 206 kB/s

real    0m0.001s
user    0m0.000s
sys     0m0.000s

2. Testbox folder contains:

[EMAIL PROTECTED] ~/projects/aau/virus_scanner/testbox $ ls -l
total 8
-rw-r--r-- 1 tomb tomb 68 Dec  3 22:26 eicar.com
-rw-r--r-- 1 tomb tomb 10 Dec  3 22:27 new10bytes.com
[EMAIL PROTECTED] ~/projects/aau/virus_scanner/testbox $ hexdump eicar.com
0000000 3558 214f 2550 4140 5b50 5c34 5a50 3558
0000010 2834 5e50 3729 4343 3729 247d 4945 4143
0000020 2d52 5453 4e41 4144 4452 412d 544e 5649
0000030 5249 5355 542d 5345 2d54 4946 454c 2421
0000040 2b48 2a48
0000044
[EMAIL PROTECTED] ~/projects/aau/virus_scanner/testbox $ hexdump
new10bytes.com
0000000 05b6 1256 0057 d6b2 9740
000000a

3.
 68bytes of  Eicar has been appended to the end of random generated
new10bytes.com

[EMAIL PROTECTED] ~/projects/aau/virus_scanner/testbox $ cat
eicar.com >> new10bytes.com
[EMAIL PROTECTED] ~/projects/aau/virus_scanner/testbox $ hexdump
new10bytes.com
0000000 05b6 1256 0057 d6b2 9740 3558 214f 2550
0000010 4140 5b50 5c34 5a50 3558 2834 5e50 3729
0000020 4343 3729 247d 4945 4143 2d52 5453 4e41
0000030 4144 4452 412d 544e 5649 5249 5355 542d
0000040 5345 2d54 4946 454c 2421 2b48 2a48
000004e

4.
Why signature is not found in this file?

[EMAIL PROTECTED] ~/projects/aau/virus_scanner/testbox $ clamscan
new10bytes.com

new10bytes.com: OK

----------- SCAN SUMMARY -----------
Known viruses: 455125
Engine version: 0.94.1
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.00 MB
Time: 2.194 sec (0 m 2 s)

-------
Thanks in advance,
Tom
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to