1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 08:59:01 +00:00

Closes #2541. Consolidate nmap-payloads and nmap-service-probes; use port scan responses in version scan.

This commit is contained in:
dmiller
2022-10-21 21:15:48 +00:00
parent 99c9e776c8
commit 2fcfac9329
12 changed files with 362 additions and 966 deletions

View File

@@ -83,6 +83,7 @@ class FingerPrintResults;
#include <list>
#include <string>
#include <vector>
#include <time.h> /* time_t */
#ifndef INET6_ADDRSTRLEN
@@ -116,6 +117,12 @@ struct TracerouteHop {
}
};
struct EarlySvcResponse {
probespec pspec;
int len;
u8 data[1];
};
class Target {
public: /* For now ... TODO: a lot of the data members should be made private */
Target();
@@ -248,6 +255,7 @@ class Target {
enum dist_calc_method distance_calculation_method;
FingerPrintResults *FPR; /* FP results get by the OS scan system. */
PortList ports;
std::vector<EarlySvcResponse *> earlySvcResponses;
int weird_responses; /* echo responses from other addresses, Ie a network broadcast address */
int flags; /* HOST_UNKNOWN, HOST_UP, or HOST_DOWN. */