mirror of
https://github.com/nmap/nmap.git
synced 2026-06-10 01:35:18 +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:
parent
217b27bace
commit
b0c8a758a0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue