agent: Modify exploitation log messages in powershell exploiter

This commit is contained in:
Shreya Malviya 2021-08-20 23:47:38 +05:30
parent 04125e5e14
commit 29788776fa
1 changed files with 2 additions and 2 deletions

View File

@ -53,13 +53,13 @@ class PowershellExploiter(HostExploiter):
usernames=self._config.exploit_user_list
)
except FailedExploitationError:
LOG.info("Failed exploitation using username list.")
LOG.info("Failed exploitation using configured usernames only.")
try:
self.client = self.exploit_with_credentials(
self._config.get_exploit_user_password_pairs()
)
except FailedExploitationError:
LOG.info("Failed exploitation using credentials from configuration. Quitting.")
LOG.info("Failed exploitation using configured credentials. Quitting.")
return False
arch = self.get_host_arch()