mirror of
https://github.com/nmap/nmap.git
synced 2025-12-30 11:29:01 +00:00
Fix abug in the DNS parser in dns-zone-transfer.nse: All '0' characters in
domain names were changed to '.', probably as a result of some code that wasn't updated when surrounding code was. This changed the name net360.example.com to net36..example.com.
This commit is contained in:
@@ -153,7 +153,7 @@ function parse_domain(data, offset)
|
||||
ptr = bto16(data, offset)
|
||||
end
|
||||
|
||||
return offset+1, string.gsub(strbuf.dump(record), 0, '.')
|
||||
return offset+1, strbuf.dump(record)
|
||||
end
|
||||
|
||||
--- Build RFC 1035 root domain name from the name of the DNS server
|
||||
|
||||
Reference in New Issue
Block a user