Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: Bringing CPE to NSE
From: Henri Doreau <henri.doreau () greenbone net>
Date: Mon, 7 Nov 2011 22:27:35 +0100


thanks for the feedback and suggestions, and sorry for the delay...

2011/10/22 David Fifield <david () bamsoftware com>:
I guess it should just be a list of strings. We can provide auxiliary
functions to parse a CPE URL into a table, and convert a table back into
a string.

The patch attached adds a "cpe" table to port.version, and OS CPEs are
available as additional entries in host.os.

set_port_version() handles modifications of the CPE list, so that NSE
scripts can add new entries or modify the existing ones (for service
detection only).

Feedback on this is attempt to design a NSE interface is, as always, welcome.



Attachment: cpe-sample.nse

Attachment: cpe_nse.diff

Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]