Nmap Development 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
Hello everyone. 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) then return "Recursion appears to be enabled" else nmap.set_port_state(host, port, "close") end But it looks weird. So, could anyone tell if there is a method to simply delete host from output? -- Best regars, Anton Konvalyuk _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- NSE Script: delete host from output Anton Konvalyuk (Mar 12)
- Re: NSE Script: delete host from output John Bond (Mar 14)
- Message not available
- Re[2]: NSE Script: delete host from output Anton Konvalyuk (Mar 17)