1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 21:21:31 +00:00

Set the port state open when dns-resursion.nse gets a response. This

patch was sent by Olivier Médoc.
This commit is contained in:
david
2010-05-03 15:20:25 +00:00
parent 52400c1f88
commit ee5b14967b
2 changed files with 5 additions and 0 deletions

View File

@@ -33,6 +33,8 @@ action = function(host, port)
return
end
nmap.set_port_state(host, port, "open")
-- parse response for dns flags
if (bit.band(string.byte(result,3), 0x80) == 0x80
and bit.band(string.byte(result,4), 0x85) == 0x80)