mirror of
https://github.com/nmap/nmap.git
synced 2026-01-18 12:19:02 +00:00
Fixes bug when reading the initial base uri. These scripts were incorrectly setting "/" as the starting point.
This commit is contained in:
@@ -84,7 +84,7 @@ end
|
||||
|
||||
action = function(host, port)
|
||||
|
||||
local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME } )
|
||||
local crawler = httpspider.Crawler:new(host, port, nil, { scriptname = SCRIPT_NAME } )
|
||||
crawler:set_timeout(10000)
|
||||
|
||||
local res, res404, known404 = http.identify_404(host, port)
|
||||
|
||||
@@ -70,7 +70,7 @@ action = function(host, port)
|
||||
return stdnse.format_output(true, "ERROR: Argument http-grep.match was not set")
|
||||
end
|
||||
|
||||
local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME } )
|
||||
local crawler = httpspider.Crawler:new(host, port, nil, { scriptname = SCRIPT_NAME } )
|
||||
local results = {}
|
||||
|
||||
-- set timeout to 10 seconds
|
||||
|
||||
@@ -87,7 +87,7 @@ end
|
||||
|
||||
action = function(host, port)
|
||||
|
||||
local crawler = httpspider.Crawler:new(host, port, '/', { scriptname = SCRIPT_NAME, redirect_ok = false } )
|
||||
local crawler = httpspider.Crawler:new(host, port, nil, { scriptname = SCRIPT_NAME, redirect_ok = false } )
|
||||
crawler:set_timeout(10000)
|
||||
|
||||
local results = {}
|
||||
|
||||
Reference in New Issue
Block a user