Agent: Remove "credentials" local variable

This commit is contained in:
Mike Salvatore 2021-08-24 12:11:59 -04:00
parent a2bdc69388
commit 1928f1b9bc
1 changed files with 1 additions and 3 deletions

View File

@ -48,9 +48,7 @@ class PowerShellExploiter(HostExploiter):
return self._execute_monkey_agent_on_victim()
def _authenticate_via_brute_force(self) -> Optional[Client]:
credentials = self._get_credentials()
for username, password in credentials:
for username, password in self._get_credentials():
try:
client = self._authenticate(username, password)