Agent: Add interrupt to WMI exploiter

This commit is contained in:
vakarisz 2022-03-16 10:34:11 +02:00 committed by Mike Salvatore
parent d1a4018d5f
commit fae25939b5
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ class WmiExploiter(HostExploiter):
creds = generate_brute_force_combinations(self.options["credentials"])
for user, password, lm_hash, ntlm_hash in creds:
if self.is_interrupted():
return self.exploit_result
creds_for_log = get_credential_string([user, password, lm_hash, ntlm_hash])
logger.debug(f"Attempting to connect to {self.host} using WMI with {creds_for_log}")