agent: add 2 new log statements to the dropper

This commit is contained in:
Mike Salvatore 2021-03-09 11:32:52 -05:00
parent ba6bf71776
commit 4ac7c01976
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,8 @@ class MonkeyDrops(object):
LOG.warning("Seems like monkey died too soon")
def cleanup(self):
LOG.info("Cleaning up the dropper")
try:
if (self._config['source_path'].lower() != self._config['destination_path'].lower()) and \
os.path.exists(self._config['source_path']) and \
@ -166,5 +168,7 @@ class MonkeyDrops(object):
LOG.debug("Dropper source file '%s' is marked for deletion on next boot",
self._config['source_path'])
T1106Telem(ScanStatus.USED, UsageEnum.DROPPER_WINAPI).send()
LOG.info("Dropper cleanup complete")
except AttributeError:
LOG.error("Invalid configuration options. Failing")