forked from p34709852/monkey
agent: Modify exploitation log messages in powershell exploiter
This commit is contained in:
parent
04125e5e14
commit
29788776fa
|
@ -53,13 +53,13 @@ class PowershellExploiter(HostExploiter):
|
||||||
usernames=self._config.exploit_user_list
|
usernames=self._config.exploit_user_list
|
||||||
)
|
)
|
||||||
except FailedExploitationError:
|
except FailedExploitationError:
|
||||||
LOG.info("Failed exploitation using username list.")
|
LOG.info("Failed exploitation using configured usernames only.")
|
||||||
try:
|
try:
|
||||||
self.client = self.exploit_with_credentials(
|
self.client = self.exploit_with_credentials(
|
||||||
self._config.get_exploit_user_password_pairs()
|
self._config.get_exploit_user_password_pairs()
|
||||||
)
|
)
|
||||||
except FailedExploitationError:
|
except FailedExploitationError:
|
||||||
LOG.info("Failed exploitation using credentials from configuration. Quitting.")
|
LOG.info("Failed exploitation using configured credentials. Quitting.")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
arch = self.get_host_arch()
|
arch = self.get_host_arch()
|
||||||
|
|
Loading…
Reference in New Issue