Skip to content

Commit

Permalink
Merge pull request #898 from acepace/bugfix_fingerprinter
Browse files Browse the repository at this point in the history
Monkey: Guard against exceptions while fingerprinting
  • Loading branch information
acepace authored Dec 7, 2020
2 parents db20ee1 + 030b1c6 commit f07826d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion monkey/infection_monkey/monkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ def start(self):
for finger in self._fingerprint:
LOG.info("Trying to get OS fingerprint from %r with module %s",
machine, finger.__class__.__name__)
finger.get_host_fingerprint(machine)
try:
finger.get_host_fingerprint(machine)
except BaseException as exc:
LOG.error("Failed to run fingerprinter %s, exception %s" % finger.__class__.__name__,
str(exc))

ScanTelem(machine).send()

Expand Down

0 comments on commit f07826d

Please sign in to comment.