From: Vsevolod Stakhov Date: Sun, 6 Sep 2020 22:09:57 +0000 (+0100) Subject: [Minor] Improve exe files detection X-Git-Tag: 2.6~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=56ed3ffdd6d1252508058994f617ee47e5b19f07;p=rspamd.git [Minor] Improve exe files detection Issue: #3481 --- diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua index a19aba03c..371d99a5a 100644 --- a/lualib/lua_magic/patterns.lua +++ b/lualib/lua_magic/patterns.lua @@ -98,13 +98,13 @@ local patterns = { { string = [[MZ]], relative_position = 0, - weight = 10, + weight = 15, }, -- PE part { string = [[PE\x{00}\x{00}]], position = {'>=', 0x3c + 4}, - weight = 40, + weight = 15, } } },