From 7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Dec 2019 19:01:26 +0000 Subject: [Minor] Fix regexps for using in pcre --- lualib/lua_content/pdf.lua | 10 +++++----- 1 file 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 } } } -- cgit v1.2.3