From 1928f1b9bc4e60c672741ef1d323256ea7a04ef1 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 24 Aug 2021 12:11:59 -0400 Subject: [PATCH] Agent: Remove "credentials" local variable --- monkey/infection_monkey/exploit/powershell.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/monkey/infection_monkey/exploit/powershell.py b/monkey/infection_monkey/exploit/powershell.py index 6fbae703e..5ab92235c 100644 --- a/monkey/infection_monkey/exploit/powershell.py +++ b/monkey/infection_monkey/exploit/powershell.py @@ -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)