mailing list archives
NSE Script: delete host from output
From: Anton Konvalyuk <w.o.l.f.paradox () mail ru>
Date: Wed, 12 Mar 2014 17:06:36 +0400
Here is the problem. I have a big number of DNS-servers and want to know which of them has recursion. For this I'm
using dns-recursion. Then I parse report with 'state="open"' or 'open ' (.xml and .nmap correspondingly). But it gives
DNS-servers with no recursion too. To walk around it I added "then" action:
-- parse response for dns flags
if (bit.band(string.byte(result,3), 0x80) == 0x80
and bit.band(string.byte(result,4), 0x85) == 0x80)
return "Recursion appears to be enabled"
nmap.set_port_state(host, port, "close")
But it looks weird. So, could anyone tell if there is a method to simply delete host from output?
Sent through the dev mailing list
Archived at http://seclists.org/nmap-dev/
- NSE Script: delete host from output Anton Konvalyuk (Mar 12)