aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_magic
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-20 22:55:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-20 22:55:36 +0100
commit9ce8ae98039f5cdbb243872552be3c0e3fdd0ecc (patch)
tree2e57a7bee18f2d9516cd8140a11846d386e322ec /lualib/lua_magic
parent37f19ff44db4601bea40fef01db776c312e48ea1 (diff)
downloadrspamd-9ce8ae98039f5cdbb243872552be3c0e3fdd0ecc.tar.gz
rspamd-9ce8ae98039f5cdbb243872552be3c0e3fdd0ecc.zip
[Minor] Add alzip magic numbers
Diffstat (limited to 'lualib/lua_magic')
-rw-r--r--lualib/lua_magic/patterns.lua20
-rw-r--r--lualib/lua_magic/types.lua8
2 files changed, 28 insertions, 0 deletions
diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua
index 371d99a5a..d04c3c57e 100644
--- a/lualib/lua_magic/patterns.lua
+++ b/lualib/lua_magic/patterns.lua
@@ -254,6 +254,26 @@ local patterns = {
},
}
},
+ egg = {
+ -- ALZip egg
+ matches = {
+ {
+ string = [[EGGA]],
+ weight = 60,
+ relative_position = 0,
+ },
+ }
+ },
+ alz = {
+ -- ALZip alz
+ matches = {
+ {
+ string = [[ALZ\x{01}]],
+ weight = 60,
+ relative_position = 0,
+ },
+ }
+ },
-- 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 d15eec6e1..3a104a537 100644
--- a/lualib/lua_magic/types.lua
+++ b/lualib/lua_magic/types.lua
@@ -117,6 +117,14 @@ local types = {
ct = 'application/x-zoo',
type = 'archive',
},
+ egg = {
+ ct = 'application/x-egg',
+ type = 'archive',
+ },
+ alz = {
+ ct = 'application/x-alz',
+ type = 'archive',
+ },
xar = {
ct = 'application/x-xar',
type = 'archive',