1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +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:
dmiller
2014-01-23 21:51:58 +00:00
parent 86ac3c0a19
commit 620f9fdb34
499 changed files with 11134 additions and 11134 deletions

View File

@@ -8,15 +8,15 @@ Checks if the target http server has mod_negotiation enabled. This
feature can be leveraged to find hidden resources and spider a web
site using fewer requests.
The script works by sending requests for resources like index and home
without specifying the extension. If mod_negotiate is enabled (default
Apache configuration), the target would reply with content-location header
containing target resource (such as index.html) and vary header containing
"negotiate" depending on the configuration.
The script works by sending requests for resources like index and home
without specifying the extension. If mod_negotiate is enabled (default
Apache configuration), the target would reply with content-location header
containing target resource (such as index.html) and vary header containing
"negotiate" depending on the configuration.
For more information, see:
* http://www.wisec.it/sectou.php?id=4698ebdc59d15
* Metasploit auxiliary module
* Metasploit auxiliary module
/modules/auxiliary/scanner/http/mod_negotiation_scanner.rb
]]
@@ -29,7 +29,7 @@ For more information, see:
-- 80/tcp open http
-- |_http-apache-negotiation: mod_negotiation enabled.
--
-- @args http-apache-negotiation.root target web site root.
-- @args http-apache-negotiation.root target web site root.
-- Defaults to <code>/</code>.
author = "Hani Benhabiles"
@@ -44,7 +44,7 @@ portrule = shortport.http
action = function(host, port)
local root = stdnse.get_script_args("http-apache-negotiation.root") or "/"
-- Common default file names. Could add a couple more.
local files = {
'robots',
@@ -55,7 +55,7 @@ action = function(host, port)
for _, file in ipairs(files) do
local header = http.get(host, port, root .. file).header
-- Matching file. in content-location header
-- or negotiate in vary header.
if header["content-location"] and string.find(header["content-location"], file ..".")