mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
o Updated zoneTrans.nse to replace length bytes in returned domain names to
periods itself rather than relying on NSE's old behavior of replacing non- printable characters with periods. Thanks to Rob Nicholls for reporting the problem. [Kris]
This commit is contained in:
@@ -100,10 +100,15 @@ function parse_domain(data, offset)
|
||||
end
|
||||
|
||||
-- RFC 1035 format name
|
||||
for i=0, x do
|
||||
for i=0, x-1 do
|
||||
offset = offset + 1
|
||||
record = record .. string.char(string.byte(data, offset))
|
||||
end
|
||||
|
||||
offset = offset + 1
|
||||
|
||||
-- replace length byte with a period
|
||||
record = record .. '.'
|
||||
|
||||
x = string.byte(data, offset)
|
||||
ptr = bto16(data, offset)
|
||||
|
||||
Reference in New Issue
Block a user