mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +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:
parent
b6b2b21e2f
commit
487c08ff63
6 changed files with 86 additions and 24 deletions
|
|
@ -178,7 +178,7 @@ class Port {
|
|||
|
||||
public:
|
||||
Port();
|
||||
void freeService();
|
||||
void freeService(bool del_service);
|
||||
void getNmapServiceName(char *namebuf, int buflen, const char *rpcinfo) const;
|
||||
|
||||
u16 portno;
|
||||
|
|
@ -267,7 +267,7 @@ class PortList {
|
|||
const char *version, const char *hostname,
|
||||
const char *ostype, const char *devicetype,
|
||||
const char *extrainfo,
|
||||
const char *cpe_a, const char *cpe_h, const char *cpe_o,
|
||||
const std::vector<const char *> *cpe,
|
||||
const char *fingerprint);
|
||||
|
||||
// pass in an allocated struct serviceDeductions (don't worry about initializing, and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue