]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve exe files detection
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 6 Sep 2020 22:09:57 +0000 (23:09 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 6 Sep 2020 22:09:57 +0000 (23:09 +0100)
Issue: #3481

lualib/lua_magic/patterns.lua

index a19aba03cae167a03d437f2f69c75f7c0514b191..371d99a5a2b05a61d75cc048cb6311912f1e077b 100644 (file)
@@ -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,
       }
     }
   },