From ee5b14967b15501e6c3cf3f2be02cbb21e1ec751 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 3 May 2010 15:20:25 +0000 Subject: [PATCH] =?UTF-8?q?Set=20the=20port=20state=20open=20when=20dns-re?= =?UTF-8?q?sursion.nse=20gets=20a=20response.=20This=20patch=20was=20sent?= =?UTF-8?q?=20by=20Olivier=20M=C3=83=C2=A9doc.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG | 3 +++ scripts/dns-recursion.nse | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 48eba1d65..ce9eaaedb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/scripts/dns-recursion.nse b/scripts/dns-recursion.nse index f10deaf4b..b3184d110 100644 --- a/scripts/dns-recursion.nse +++ b/scripts/dns-recursion.nse @@ -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)