mirror of
https://github.com/nmap/nmap.git
synced 2026-06-10 01:35:18 +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:
parent
52400c1f88
commit
ee5b14967b
2 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue