1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41: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

@@ -83,6 +83,11 @@ o The NSE Comm library now defaults to trying to read as many bytes as are
given. Thanks to Brandon for reporting a problem which he noticed in the given. Thanks to Brandon for reporting a problem which he noticed in the
dns-test-open-recursion script. [Kris] dns-test-open-recursion script. [Kris]
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]
o Changed the order preference of timing ping propes. [Michael] o Changed the order preference of timing ping propes. [Michael]
o Enabled nmap to switch between multiple types of timing pings during port o Enabled nmap to switch between multiple types of timing pings during port

View File

@@ -100,10 +100,15 @@ function parse_domain(data, offset)
end end
-- RFC 1035 format name -- RFC 1035 format name
for i=0, x do for i=0, x-1 do
offset = offset + 1 offset = offset + 1
record = record .. string.char(string.byte(data, offset)) record = record .. string.char(string.byte(data, offset))
end end
offset = offset + 1
-- replace length byte with a period
record = record .. '.'
x = string.byte(data, offset) x = string.byte(data, offset)
ptr = bto16(data, offset) ptr = bto16(data, offset)