mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Add a check to see if response from which we wish to extract links is not nil.
This commit is contained in:
parent
0288accd74
commit
6b101769d7
1 changed files with 4 additions and 2 deletions
|
|
@ -256,8 +256,10 @@ action = function(host, port)
|
|||
end
|
||||
end --for
|
||||
end --if
|
||||
|
||||
local links = httpspider.LinkExtractor:new(r.url, r.response.body, crawler.options):getLinks()
|
||||
local links = {}
|
||||
if r.response.status and r.response.body then
|
||||
links = httpspider.LinkExtractor:new(r.url, r.response.body, crawler.options):getLinks()
|
||||
end
|
||||
for _,u in ipairs(links) do
|
||||
if url.parse(u).query then
|
||||
table.insert(injectable, u)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue