1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +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

@@ -1,5 +1,8 @@
# Nmap Changelog ($Id$); -*-text-*-
o [NSE] The dns-recursion script now marks the port when it gets a
response. This is a patch from Olivier M.
o [NSE] Improved smtp-commands.nse to work against more mail servers,
made it take an smtp-commands.domain script argument, and rewrote it
in the style of other smtp scripts. [Jason DePriest]

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)