From 54be29d6f3e3b56e70424ac895656671e655a4cd Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 3 Jul 2016 13:30:07 +0300 Subject: [Feature] Supprort FQDNs in phishing module maps --- src/plugins/lua/phishing.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/lua/phishing.lua') diff --git a/src/plugins/lua/phishing.lua b/src/plugins/lua/phishing.lua index b3b3da12e..2e2b92244 100644 --- a/src/plugins/lua/phishing.lua +++ b/src/plugins/lua/phishing.lua @@ -90,7 +90,7 @@ local function phishing_cb(task) if #redirector_domains > 0 then for _,rule in ipairs(redirector_domains) do - if rule['map']:get_key(url:get_tld()) then + if rule['map']:get_key(tld) or rule['map']:get_key(url:get_host()) then task:insert_result(rule['symbol'], weight, ptld .. '->' .. tld) found = true end @@ -98,7 +98,7 @@ local function phishing_cb(task) end if not found and #strict_domains > 0 then for _,rule in ipairs(strict_domains) do - if rule['map']:get_key(ptld) then + if rule['map']:get_key(ptld) or rule['map']:get_key(purl:get_host()) then task:insert_result(rule['symbol'], 1.0, ptld .. '->' .. tld) found = true end -- cgit v1.2.3