diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-02 19:01:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-02 19:01:26 +0000 |
commit | 7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9 (patch) | |
tree | 5b1c7a78b594e9d71f154ce01fabb28520886e42 | |
parent | dbe3d373ce8b86061c20cfcd6c726dc736016f58 (diff) | |
download | rspamd-7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9.tar.gz rspamd-7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9.zip |
[Minor] Fix regexps for using in pcre
-rw-r--r-- | lualib/lua_content/pdf.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index 6676d6d36..04803f754 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -32,21 +32,21 @@ local pdf_patterns = { }, javascript = { patterns = { - [[/JS(?:[\s/><])]], - [[/JavaScript(?:[\s/><])]], + [[\/JS(?:[\s/><])]], + [[\/JavaScript(?:[\s/><])]], } }, openaction = { patterns = { - [[/OpenAction(?:[\s/><])]], - [[/AA(?:[\s/><])]], + [[\/OpenAction(?:[\s/><])]], + [[\/AA(?:[\s/><])]], } }, suspicious = { patterns = { [[netsh\s]], [[echo\s]], - [[/[A-Za-z]*#\d\d(?:[#A-Za-z<>/\s])]], -- Hex encode obfuscation + [[\/[A-Za-z]*#\d\d(?:[#A-Za-z<>/\s])]], -- Hex encode obfuscation } } } |