Skip to content

Commit

Permalink
Passive: file nmap-payloads is obsolete (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- committed Jun 15, 2023
1 parent 0ba4719 commit 4af0e34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ivre/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,10 @@ def _parse_line(line: str) -> Generator[str, None, None]:
cur_line.append(line)
if cur_probe is not None:
_NMAP_PAYLOADS[nmap_decode_data("".join(cur_line))] = cur_probe
except FileNotFoundError:
# This file has been removed from Nmap in 7.94 and is now
# obsolete.
pass
except (AttributeError, AssertionError, TypeError, IOError):
LOGGER.warning("Cannot read Nmap service fingerprint file.", exc_info=True)
_NMAP_PAYLOADS_POPULATED = True
Expand Down

0 comments on commit 4af0e34

Please sign in to comment.