News About Features Documentation FAQ ChangeLog Mailinglist Download GIT Screenshots RRDtool MRTG WebQ Logwatch Reporter Latest stable: 2.0.2-1 Latest devel: 2.0.3-0.beta5 |
file_magic() File magic test (like "file -i command"). This scanner can be used to test file content for a special type. You need a python module "magic", which is by default in file's source, but in most distributions it is not compiled in package. Usage: file_magic({'VirName': 'regexp_pattern', ..}, flags=0, raw=True) Where: 'VirName' is a string, which identifies defined virus 'regexp_pattern' is a regular expression pattern flags is an int, which defines regular expression flags, like re.I to ignore it's case. raw is a boolean, when True, use MAGIC_RAW instead of MAGIC_MIME |