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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user