aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic/heuristics.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-24 12:57:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-24 12:57:48 +0100
commit0b5f43d31ee401931d65e4627e0bcebab571be7c (patch)
treeb04668880eb2fcbb48fc4709ba454c2d679ca7d1 /lualib/lua_magic/heuristics.lua
parent1a86679574a9fddd6c174d260c8b477834f5677c (diff)
downloadrspamd-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.lua5
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