print stack trace in exception

This commit is contained in:
ophirharpazg 2020-09-01 15:42:46 +03:00
parent 93b978edac
commit c7b51bfe19
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ class HostExploiter(Plugin):
result = None
try:
result = self._exploit_host()
except Exception as e:
logger.warning(f'Exception in exploit_host: {e}')
except Exception as _:
logger.error(f'Exception in exploit_host', exc_info=True)
finally:
self.post_exploit()
return result