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:
@@ -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]
|
||||
|
||||
@@ -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