Agent: Remove `host` from Zerologon exploiter's constructor

This commit is contained in:
Shreya Malviya 2022-03-07 16:57:50 +05:30 committed by Mike Salvatore
parent 040227286a
commit a927879334
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ class ZerologonExploiter(HostExploiter):
MAX_ATTEMPTS = 2000 # For 2000, expected average number of attempts needed: 256. MAX_ATTEMPTS = 2000 # For 2000, expected average number of attempts needed: 256.
ERROR_CODE_ACCESS_DENIED = 0xC0000022 ERROR_CODE_ACCESS_DENIED = 0xC0000022
def __init__(self, host: object): def __init__(self):
super().__init__(host) super().__init__()
self.exploit_info["password_restored"] = None self.exploit_info["password_restored"] = None
self._extracted_creds = {} self._extracted_creds = {}
self._secrets_dir = tempfile.TemporaryDirectory(prefix="zerologon") self._secrets_dir = tempfile.TemporaryDirectory(prefix="zerologon")