1
0
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:
kris
2008-07-31 03:49:25 +00:00
parent 2a31e712da
commit 2dd62530e5
2 changed files with 11 additions and 1 deletions

View File

@@ -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)