mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
fixed bug where script would return "Host is safe to browse.", when an invalid
API key was being used.
This commit is contained in:
@@ -77,6 +77,10 @@ action = function(host, port)
|
||||
local req = http.get_url(qry)
|
||||
stdnse.print_debug(2, "%s", qry)
|
||||
|
||||
if ( req.status == 403 ) then
|
||||
return "[ERROR] 403 Forbidden (invalid API key?)"
|
||||
end
|
||||
|
||||
--The Safe Lookup API responds with a type when site is on the lists
|
||||
if req.body then
|
||||
if http.response_contains(req, "malware") then
|
||||
|
||||
Reference in New Issue
Block a user