Nmap Development mailing list archives

[NSE] get Nmap interfaces


From: Djalal Harouni <tixxdz () gmail com>
Date: Thu, 16 Sep 2010 18:34:09 +0100

Hi,

Attached are two patches:

1) The first patch adds the broadcast address to the interface_info
struct (libnetutil). Sorry windows currently is not supported, I'll try
to register a live account to be able to use a free license, but it will
be cool if any one can send us a small patch to support it.

2) The second patch introduces two new nmap library functions:
* get_interfaces(): return a detailed table of Nmap interfaces
informations. Routes information is not included, I don't know if we
need it currently.
* get_iface(): This is for the pre-scanning phase scripts, it will
return the interface name that Nmap should use. This function can be
combined with the results of get_interfaces() to determine the current IP
address, the hardware type and the broadcast address of the interface.

For other details, pls see the NSEdoc. Any suggestions and feedbacks
are welcome, thx.

-- 
tixxdz

Attachment: interface_broadaddr_netutil.diff
Description:

Attachment: nse_get_interfaces.diff
Description:

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

Current thread: