From 52f0e1b0b5d8ca57d978a0007eba7ec21a59686c Mon Sep 17 00:00:00 2001 From: david Date: Sat, 3 Mar 2012 05:56:20 +0000 Subject: [PATCH] Exit http-wordpress-plugins if identify_404 fails. This is what other scripts that use identify_404 do. --- scripts/http-wordpress-plugins.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-wordpress-plugins.nse b/scripts/http-wordpress-plugins.nse index 1413bc0a0..e893f2300 100644 --- a/scripts/http-wordpress-plugins.nse +++ b/scripts/http-wordpress-plugins.nse @@ -98,7 +98,7 @@ action = function(host, port) --identify the 404 local status_404, result_404, body_404 = http.identify_404(host, port) 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