1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

Exit http-wordpress-plugins if identify_404 fails.

This is what other scripts that use identify_404 do.
This commit is contained in:
david
2012-03-03 05:56:20 +00:00
parent 2fa4cf467f
commit 52f0e1b0b5

View File

@@ -98,7 +98,7 @@ action = function(host, port)
--identify the 404 --identify the 404
local status_404, result_404, body_404 = http.identify_404(host, port) local status_404, result_404, body_404 = http.identify_404(host, port)
if not status_404 then if not status_404 then
stdnse.print_debug(1, "%s unable to handle 404 pages (%s)", SCRIPT_NAME, result_404) return stdnse.format_output(false, SCRIPT_NAME .. " unable to handle 404 pages (" .. result_404 .. ")")
end end