1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-19 12:49:02 +00:00

Make gathered CPE codes available to NSE.

CPEs are available at host.os (for the ones from OS fingerprinting) and
port.version.cpe (for the version detection ones).

This patch also fix a memory leak that David noticed in
PortList::setServiceProbeResults().
This commit is contained in:
henri
2012-01-13 10:24:19 +00:00
parent b6b2b21e2f
commit 487c08ff63
6 changed files with 86 additions and 24 deletions

View File

@@ -1630,6 +1630,12 @@ LUALIB_API int luaopen_openssl(lua_State *L) {
<option>-O</option> option, then
<literal>host.os</literal> is <literal>nil</literal>.
</para>
<para>
Additionally the table can contain CPE codes for the detected
operating system. These codes, as described in
<ulink url="http://cpe.mitre.org">the official CPE specification
</ulink> all start with the <literal>cpe:/</literal> prefix.
</para>
</listitem>
</varlistentry>
@@ -1890,6 +1896,15 @@ LUALIB_API int luaopen_openssl(lua_State *L) {
<literal>nil</literal> if <literal>rpc_status</literal> is
anything other than <literal>good_prog</literal>.</entry>
</row>
<row>
<entry align="left"><literal>cpe</literal></entry>
<entry>List of CPE codes for the detected service. As described in the
<ulink url="http://cpe.mitre.org">official CPE specification</ulink> these strings
all start with the <literal>cpe:/</literal> prefix.</entry>
</row>
</tbody></tgroup></table>
</listitem>