Agent: Rename is_exploitable to authenticate

This commit is contained in:
Kekoa Kaaikala 2022-10-07 19:50:21 +00:00
parent 2281d52acc
commit 74088c8143
1 changed files with 3 additions and 3 deletions

View File

@ -74,8 +74,8 @@ class ZerologonExploiter(HostExploiter):
def _exploit_host(self) -> ExploiterResultData: def _exploit_host(self) -> ExploiterResultData:
self.dc_ip, self.dc_name, self.dc_handle = get_dc_details(self.host) self.dc_ip, self.dc_name, self.dc_handle = get_dc_details(self.host)
can_exploit, rpc_con = self.is_exploitable() authenticated, rpc_con = self.authenticate()
if can_exploit: if authenticated:
logger.info("Target vulnerable, changing account password to empty string.") logger.info("Target vulnerable, changing account password to empty string.")
if self._is_interrupted(): if self._is_interrupted():
@ -112,7 +112,7 @@ class ZerologonExploiter(HostExploiter):
return self.exploit_result return self.exploit_result
def is_exploitable(self) -> Tuple[bool, Optional[rpcrt.DCERPC_v5]]: def authenticate(self) -> Tuple[bool, Optional[rpcrt.DCERPC_v5]]:
""" """
Attempt to authenticate with the domain controller Attempt to authenticate with the domain controller