mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-04-29 19:24:25 -04:00
Adds the following ClamScan CLI options: * --hash-hint The file hash so that libclamav does not need to calculate it. The type of hash must match the '--hash-alg'. * --log-hash Print the file hash after each file scanned. The type of hash printed will match the '--hash-alg'. * --hash-alg The hashing algorithm used for either '--hash-hint' or '--log-hash'. Supported algorithms are 'md5', 'sha1', 'sha2-256'. If not specified, the default is 'sha2-256'. * --file-type-hint The file type hint so that libclamav can optimize scanning. E.g. 'pe', 'elf', 'zip', etc. You may also use ClamAV type names such as 'CL_TYPE_PE'. ClamAV will ignore the hint if it is not familiar with the specified type. See also: https://docs.clamav.net/appendix/FileTypes.html#file-types * --log-file-type Print the file type after each file scanned. Will NOT be adding this for ClamDScan, as we don't have a mechanism in the ClamD socket API to receive scan options or a way for ClamD to include scan metadata in the response.