|
|
|
|
|
|
|
|
for _,d in ipairs(elt) do |
|
|
for _,d in ipairs(elt) do |
|
|
if not d['path'] then |
|
|
if not d['path'] then |
|
|
found_path = true |
|
|
found_path = true |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if query and d['query'] and query == d['query'] then |
|
|
|
|
|
found_query = true |
|
|
|
|
|
elseif not d['query'] then |
|
|
found_query = true |
|
|
found_query = true |
|
|
break |
|
|
|
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
task:insert_result(phish_symbol, 1.0, args) |
|
|
task:insert_result(phish_symbol, 1.0, args) |
|
|
else |
|
|
else |
|
|
-- Host + path match |
|
|
-- Host + path match |
|
|
task:insert_result(phish_symbol, 0.3, args) |
|
|
|
|
|
|
|
|
if path then |
|
|
|
|
|
task:insert_result(phish_symbol, 0.3, args) |
|
|
|
|
|
end |
|
|
|
|
|
-- No path, no symbol |
|
|
end |
|
|
end |
|
|
else |
|
|
else |
|
|
if url:is_phished() then |
|
|
if url:is_phished() then |