]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add alzip magic numbers
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Sep 2020 21:55:36 +0000 (22:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 20 Sep 2020 21:55:36 +0000 (22:55 +0100)
lualib/lua_magic/patterns.lua
lualib/lua_magic/types.lua

index 371d99a5a2b05a61d75cc048cb6311912f1e077b..d04c3c57e03d3e33d03c72bf52645bcd87b2e805 100644 (file)
@@ -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 = {
index d15eec6e1d96da93305e8b45ff783d5a1f835297..3a104a537233519a3b66952689b2ff9bddc621de 100644 (file)
@@ -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',