local found = false
local purl = url:get_phished()
if table.maxn(strict_domains) > 0 then
- local _,_,tld = string.find(purl:get_host(), '([a-zA-Z0-9%-]+%.[a-zA-Z0-9%-]+)$')
+ local tld = purl:get_tld()
if tld then
for _,rule in ipairs(strict_domains) do
if rule['map']:get_key(tld) then
end
if not found then
if domains then
- local _,_,tld = string.find(purl:get_host(), '([a-zA-Z0-9%-]+%.[a-zA-Z0-9%-]+)$')
+ local tld = purl:get_tld()
if tld then
if domains:get_key(tld) then
task:insert_result(symbol, 1, purl:get_host())