mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Change the "name" member of a decoded NSEC record to be called
"next_dname" instead.
This commit is contained in:
parent
4f054a058e
commit
6d90b593b7
2 changed files with 6 additions and 6 deletions
|
|
@ -268,10 +268,10 @@ end
|
|||
local function get_next_nsec(retPkt, domain)
|
||||
for _, nsec in ipairs(auth_filter(retPkt, "NSEC")) do
|
||||
-- The last NSEC record points backwards to the start of the subzone.
|
||||
if domain_lt(nsec.dname, domain) and not domain_lt(nsec.dname, nsec.name) then
|
||||
if domain_lt(nsec.dname, domain) and not domain_lt(nsec.dname, nsec.next_dname) then
|
||||
return nsec
|
||||
end
|
||||
if domain_lt(nsec.dname, domain) and domain_lt(domain, nsec.name) then
|
||||
if domain_lt(nsec.dname, domain) and domain_lt(domain, nsec.next_dname) then
|
||||
return nsec
|
||||
end
|
||||
end
|
||||
|
|
@ -303,9 +303,9 @@ local function enum(host, port, domain)
|
|||
subdomain = nil
|
||||
break
|
||||
end
|
||||
last, remainder = remove_suffix(nsec.name, domain)
|
||||
last, remainder = remove_suffix(nsec.next_dname, domain)
|
||||
if #remainder > 0 then
|
||||
stdnse.print_debug("Result name %q doesn't end in %q.", nsec.name, domain)
|
||||
stdnse.print_debug("Result name %q doesn't end in %q.", nsec.next_dname, domain)
|
||||
subdomain = nil
|
||||
break
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue