Browse Source

[Minor] Add redirector's TLD to PHISHING symbol options

tags/1.3.0
Alexander Moisseev 8 years ago
parent
commit
8f9c79be50
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/plugins/lua/phishing.lua

+ 4
- 4
src/plugins/lua/phishing.lua View File

if #redirector_domains > 0 then if #redirector_domains > 0 then
for _,rule in ipairs(redirector_domains) do for _,rule in ipairs(redirector_domains) do
if rule['map']:get_key(url:get_tld()) then if rule['map']:get_key(url:get_tld()) then
task:insert_result(rule['symbol'], weight, ptld)
task:insert_result(rule['symbol'], weight, ptld .. '->' .. tld)
found = true found = true
end end
end end
if not found and #strict_domains > 0 then if not found and #strict_domains > 0 then
for _,rule in ipairs(strict_domains) do for _,rule in ipairs(strict_domains) do
if rule['map']:get_key(ptld) then if rule['map']:get_key(ptld) then
task:insert_result(rule['symbol'], 1.0, ptld)
task:insert_result(rule['symbol'], 1.0, ptld .. '->' .. tld)
found = true found = true
end end
end end
if not found then if not found then
if domains then if domains then
if domains:get_key(ptld) then if domains:get_key(ptld) then
task:insert_result(symbol, weight, ptld)
task:insert_result(symbol, weight, ptld .. '->' .. tld)
end end
else else
task:insert_result(symbol, weight, ptld)
task:insert_result(symbol, weight, ptld .. '->' .. tld)
end end
end end
end end

Loading…
Cancel
Save