1
0
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:
patrik
2012-07-24 10:11:09 +00:00
parent 217b27bace
commit b0c8a758a0

View File

@@ -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