mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
All parse_single_fingerprint to handle a MatchPoints pseudo-print.
This commit is contained in:
parent
e22ebd5580
commit
53deb965ce
1 changed files with 7 additions and 0 deletions
|
|
@ -937,6 +937,13 @@ FingerPrint *parse_single_fingerprint(char *fprint_orig) {
|
|||
memcpy(FP->OS_name, p, q - p + 1);
|
||||
FP->OS_name[q - p + 1] = '\0';
|
||||
}
|
||||
} else if (strncmp(thisline, "MatchPoints", 11) == 0) {
|
||||
p = thisline + 11;
|
||||
if (*p && !isspace((int) (unsigned char) *p))
|
||||
fatal("Parse error on line %d of fingerprint: %s\n", lineno, thisline);
|
||||
while(*p && isspace((int) (unsigned char) *p)) p++;
|
||||
if (*p != '\0')
|
||||
fatal("Parse error on line %d of fingerprint: %s\n", lineno, thisline);
|
||||
} else if (strncmp(thisline, "Class ", 6) == 0) {
|
||||
|
||||
parse_classline(FP, thisline, lineno, &classno);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue