Skip to content

Commit

Permalink
Analyzer: Fix key error with recent TTD integration
Browse files Browse the repository at this point in the history
  • Loading branch information
kevoreilly committed Aug 19, 2024
1 parent 851d621 commit 5ae84cc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions analyzer/windows/lib/api/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ def set_terminate_event(self):
log.info("Termination confirmed for %s", self)
KERNEL32.CloseHandle(self.terminate_event_handle)

ttd = int(self.options.get("ttd", 0)
try:
ttd = int(self.options.get("ttd", 0))
except (ValueError, TypeError):
ttd = 0
if ttd:
self.ttd_stop()

Expand Down Expand Up @@ -694,7 +697,10 @@ def inject(self, interest=None, nosleepskip=False):
log.warning("invalid path %s for monitor DLL to be injected in %s, injection aborted", dll, self)
return False

ttd = int(self.options.get("ttd", 0)
try:
ttd = int(self.options.get("ttd", 0))
except (ValueError, TypeError):
ttd = 0
if ttd:
self.options["no-iat"] = 1

Expand Down

0 comments on commit 5ae84cc

Please sign in to comment.