diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-24 12:57:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-24 12:57:48 +0100 |
commit | 0b5f43d31ee401931d65e4627e0bcebab571be7c (patch) | |
tree | b04668880eb2fcbb48fc4709ba454c2d679ca7d1 /lualib/lua_magic/heuristics.lua | |
parent | 1a86679574a9fddd6c174d260c8b477834f5677c (diff) | |
download | rspamd-0b5f43d31ee401931d65e4627e0bcebab571be7c.tar.gz rspamd-0b5f43d31ee401931d65e4627e0bcebab571be7c.zip |
[Minor] Lua_magic: Add types for .jar and for .apk
Diffstat (limited to 'lualib/lua_magic/heuristics.lua')
-rw-r--r-- | lualib/lua_magic/heuristics.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua index 8fb83bb0d..700932051 100644 --- a/lualib/lua_magic/heuristics.lua +++ b/lualib/lua_magic/heuristics.lua @@ -244,7 +244,8 @@ local function detect_archive_flaw(part, arch, log_obj) jar = 0, odt = 0, odp = 0, - ods = 0 + ods = 0, + apk = 0, } -- ext + confidence pairs -- General msoffice patterns @@ -268,6 +269,8 @@ local function detect_archive_flaw(part, arch, log_obj) res.pptx = res.pptx + 30 elseif file == 'META-INF/MANIFEST.MF' then res.jar = res.jar + 40 + elseif file == 'AndroidManifest.xml' then + res.apk = res.apk + 60 end end |