diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-06 18:44:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-06 18:44:02 +0100 |
commit | 859483618be3602ea3c405f944595f8c0d06e720 (patch) | |
tree | 222c5234742d61ea35a29dccf23de1c7878ec741 /lualib | |
parent | dcd82d5c4f99472e3c84743ae9cf5d30ef4c0c12 (diff) | |
download | rspamd-859483618be3602ea3c405f944595f8c0d06e720.tar.gz rspamd-859483618be3602ea3c405f944595f8c0d06e720.zip |
[Project] Lua_magic: Moar patterns
Diffstat (limited to 'lualib')
-rw-r--r-- | lualib/lua_magic/patterns.lua | 9 | ||||
-rw-r--r-- | lualib/lua_magic/types.lua | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index dd723f6e8..003073cab 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -202,6 +202,15 @@ local patterns = { }, } }, + iso = { + matches = { + { + string = [[\x{01}CD001\x{01}]], + position = {'>=', 0x8000 + 7}, -- first 32k is unused + weight = 60, + }, + } + }, -- Apple is a 'special' child: this needs to be matched at the data tail... dmg = { matches = { diff --git a/lualib/lua_magic/types.lua b/lualib/lua_magic/types.lua index 20089c9c2..b3af668c8 100644 --- a/lualib/lua_magic/types.lua +++ b/lualib/lua_magic/types.lua @@ -97,6 +97,10 @@ local types = { ct = 'application/x-dmg', type = 'archive', }, + iso = { + ct = 'application/x-iso', + type = 'archive', + }, szdd = { -- in fact, their MSDOS extension is like FOO.TX_ or FOO.TX$ ct = 'application/x-compressed', type = 'archive', |