Nmap Development mailing list archives

Re: information available to NSE


From: Djalal Harouni <tixxdz () gmail com>
Date: Tue, 21 Dec 2010 14:01:47 +0100

On 2010-12-21 13:24:15 +0100, Gutek wrote:
Le 21/12/2010 12:58, Toni Ruottu a écrit :
  hello

I am looking for documentation that describes the data made available
to NSE. Can I get information about traceroute or nmap version that
the script is running on?

You can retrieve traceroute and all "information Nmap has learned about
the target hosts" via the Nmap api :
http://nmap.org/book/nse-api.html#nse-api-arguments

Environment variables:
http://nmap.org/book/nse-script-format.html#nse-format-environment

There are some NSE nmap lib functions:
http://nmap.org/nsedoc/lib/nmap.html

perhaps: http://nmap.org/nsedoc/lib/stdnse.html#get_hostname

For the Nmap version, currently it's not exported to NSE.
If we introduce NSE version numbering then we can use a one call to
retrieve a table like:  {NMAP_VERSION,NSE_VERSION}

BTW cool scripts :)

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


Current thread: