[clamav-users] Can clamscan report the file extension?

Rishabh Shah rishabh420 at gmail.com
Thu Mar 12 03:00:26 EDT 2015


Hi Clamav Team,

Can clamscan detect the file type/extension as well?

root at fwuser-virtual-machine:/home/file_capture/tmp# clamscan
67792ACE824606664CE51973800D6B952CA4733CAF6F03CCF5F636768EFB39B1 --verbose
Scanning 67792ACE824606664CE51973800D6B952CA4733CAF6F03CCF5F636768EFB39B1
67792ACE824606664CE51973800D6B952CA4733CAF6F03CCF5F636768EFB39B1: OK

----------- SCAN SUMMARY -----------
Known viruses: 3764910
Engine version: 0.98.6
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.04 MB
Data read: 0.02 MB (ratio 1.80:1)
Time: 14.291 sec (0 m 14 s)

The reason I am asking is in my case, my file name generated is SHA256 of
the original file. I lose the file extension as well. After clamav detects
the file as clean/virus, I need to report the file extension along with
it's detection result.
Thanks in advance!

Regards,
Rishabh Shah.



More information about the clamav-users mailing list