mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
Remove trailing whitespace in lua files
Whitespace is not significant, so this should not be a problem. https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
@@ -22,7 +22,7 @@ For more information, see:
|
||||
-- | http-vuln-cve2010-0738:
|
||||
-- |_ /jmx-console/: Authentication bypass.
|
||||
--
|
||||
-- @args http-vuln-cve2010-0738.paths Array of paths to check. Defaults
|
||||
-- @args http-vuln-cve2010-0738.paths Array of paths to check. Defaults
|
||||
-- to <code>{"/jmx-console/"}</code>.
|
||||
|
||||
author = "Hani Benhabiles"
|
||||
@@ -44,14 +44,14 @@ action = function(host, port)
|
||||
if ( "string" == type(paths) ) then
|
||||
paths = { paths }
|
||||
end
|
||||
|
||||
|
||||
-- Identify servers that answer 200 to invalid HTTP requests and exit as these would invalidate the tests
|
||||
local _, http_status, _ = http.identify_404(host,port)
|
||||
if ( http_status == 200 ) then
|
||||
stdnse.print_debug(1, "%s: Exiting due to ambiguous response from web server on %s:%s. All URIs return status 200.", SCRIPT_NAME, host.ip, port.number)
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
-- fallback to jmx-console
|
||||
paths = paths or {"/jmx-console/"}
|
||||
|
||||
@@ -74,6 +74,6 @@ action = function(host, port)
|
||||
table.insert(result, ("%s: Authentication was not required"):format(path))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return stdnse.format_output(true, result)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user