Agent: Remove `add_extracted_creds_to_exploiter_options()` from Zerologon exploiter

This commit is contained in:
Shreya Malviya 2022-03-09 14:08:06 +05:30 committed by Mike Salvatore
parent 8bc6086e1a
commit d6fe9c2ef2
1 changed files with 0 additions and 16 deletions

View File

@ -275,11 +275,6 @@ class ZerologonExploiter(HostExploiter):
self._extracted_creds[user]["lm_hash"],
self._extracted_creds[user]["nt_hash"],
)
self.add_extracted_creds_to_exploiter_options(
user,
self._extracted_creds[user]["lm_hash"],
self._extracted_creds[user]["nt_hash"],
)
def send_extracted_creds_as_credential_telemetry(
self, user: str, lmhash: str, nthash: str
@ -288,17 +283,6 @@ class ZerologonExploiter(HostExploiter):
CredentialsTelem([Credentials([Username(user)], [LMHash(lmhash), NTHash(nthash)])])
)
# so other exploiters can use these creds
def add_extracted_creds_to_exploiter_options(self, user: str, lmhash: str, nthash: str) -> None:
if user not in self.options["credentials"]["exploit_user_list"]:
self.options["credentials"]["exploit_user_list"].append(user)
if lmhash not in self.options["credentials"]["exploit_lm_hash_list"]:
self.options["credentials"]["exploit_lm_hash_list"].append(lmhash)
if nthash not in self.options["credentials"]["exploit_ntlm_hash_list"]:
self.options["credentials"]["exploit_ntlm_hash_list"].append(nthash)
def get_original_pwd_nthash(self, username: str, user_pwd_hashes: List[str]) -> str:
if not self.save_HKLM_keys_locally(username, user_pwd_hashes):
return