Nmap Development mailing list archives

Re: [NSE] modbus-enum.nse, modbus discovery script


From: David Fifield <david () bamsoftware com>
Date: Fri, 17 Dec 2010 18:23:12 -0800

On Fri, Dec 17, 2010 at 12:01:02PM -0600, Bob Radvanovsky wrote:
P.S.  I am hoping to develop a common development framework criteria
for the NMAP NSE scripting language specifically for SCADA and
industrial automation devices, and wanted some feedback from you two
(Alexendar and David for starters) about what would be the best method
for developing enumeration and validation scripts in which you have
common methods of determining such devices?  I'm open to any
suggestions...thanks!  ;)

It sounds like you want to create a library, perhaps scada.lua or
modbus.lua. The best way to start is by copying the structure of an
existing library.

http://nmap.org/book/nse-library.html

Libraries get more review, because it's harder to change them down the
line. My advice is if you have a function and you're not sure the
interface to it is really solid, just put it in a script as a local
function, where it can be copied to a library later when needed. That's
better than spending weeks and weeks getting a library "perfect."

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: