Nmap Development mailing list archives

Re: Quick question on scripting


From: Patrick Donnelly <batrick () batbytes com>
Date: Tue, 21 Sep 2010 11:39:18 -0400

On Tue, Sep 21, 2010 at 11:15 AM,  <shorejsi2 () mmm com> wrote:
 I've looked through the Nmap script writing documentation (probably not
closely enough...) and I have one unanswered question,

 Is it possible to write a script which conditionally causes another
script to run?

 What I am trying to do is trigger several deeper discovery scripts when a
host exhibits a certain pattern of open (and closed) ports. I realize I
could probably create custom versions of these existing scripts to do
exactly what I want, but I was hoping there was a more elegant way.

List the dependency between the scripts [1]. Then set a flag in the
registry as Ron suggested.

[1] http://nmap.org/book/nse-script-format.html#nse-format-dependencies

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


Current thread: