Nmap Development mailing list archives

New functions to target.lua library (NSE Leftovers - Part 1)


From: Brendan Byrd <sineswiper () gmail com>
Date: Tue, 21 Aug 2012 17:18:51 -0400

(This is a split of a larger patch here:
http://seclists.org/nmap-dev/2011/q4/558)

This patch contains a few new functions to target library, including an exclude
list to prevent duplicate IPs from being added, even down to the IP level for
ranges.

Some caveats:

   1. Everything is in Lua.  This should probably be converted to pure C code,
   for speed and accessibility to internal data.

   2. This library doesn't have access to NMap's main target and exclude lists,
   so the new "dupe list" is outside of the existing lists.  This means that a
   new target could still dupe one of the command-specified targets, but it
   won't dupe after that.  This also means that adding a target to the exclude
   list isn't going to remove future targets that were already added
   previously.  Fixing point #1 would solve all of this.

Despite the caveats, I think this might be a good band-aid in the meantime.

--
Brendan Byrd/SineSwiper <SineSwiper () GMail com>
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: