1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

recommitting my r6499: "fix robots.nse output: remove robots.txt comments on disallowed entry lines"

This commit is contained in:
kris
2007-12-13 20:18:35 +00:00
parent 2bebb8a1f4
commit 0a6f10e4ba

View File

@@ -62,9 +62,10 @@ action = function(host, port)
return nil
end
-- parse all disallowed entries
-- parse all disallowed entries and remove comments
local output = strbuf.new()
for w in string.gmatch(strbuf.dump(response, '\n'), "Disallow:%s*([^\n]*)\n") do
w = w:gsub("%s*#.*", "")
buildOutput(output, w)
end