forked from p34709852/monkey
Agent: Add interrupt to WMI exploiter
This commit is contained in:
parent
d1a4018d5f
commit
fae25939b5
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue