1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

* Fixes bug when parsing script-args. The script was only using the value from the argument 'pipeline' but not from 'http-enum.pipeline'.

* Makes clean_404 a public function. This function is used in the NSE script http-waf-detect to remove text that changes.
This commit is contained in:
paulino
2011-07-01 20:34:01 +00:00
parent d69d7aa820
commit 390eb9e4ab

View File

@@ -825,7 +825,7 @@ local function getPipelineMax(response)
local pipeline = stdnse.get_script_args({'http.pipeline', 'pipeline'})
if(pipeline) then
return tonumber(nmap.registry.args.pipeline)
return tonumber(pipeline)
end
if response then
@@ -1731,7 +1731,7 @@ end
-- the user.
--
-- @param body The body of the page.
local function clean_404(body)
function clean_404(body)
-- Remove anything that looks like time
body = string.gsub(body, '%d?%d:%d%d:%d%d', "")
body = string.gsub(body, '%d%d:%d%d', "")