mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
d69d7aa820
commit
390eb9e4ab
1 changed files with 2 additions and 2 deletions
|
|
@ -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', "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue