From 142401e706cf2406d5afe00cbaffd02dc14a6020 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Wed, 27 Sep 2017 13:40:50 +0300 Subject: [PATCH] change the user/password combo to existing function in another place. --- chaos_monkey/exploit/rdpgrinder.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chaos_monkey/exploit/rdpgrinder.py b/chaos_monkey/exploit/rdpgrinder.py index 6f37cdc2e..231dfc304 100644 --- a/chaos_monkey/exploit/rdpgrinder.py +++ b/chaos_monkey/exploit/rdpgrinder.py @@ -280,12 +280,8 @@ class RdpExploiter(HostExploiter): 'monkey_path': self._config.dropper_target_path, 'http_path': http_path, 'parameters': cmdline} - config_users = self._config.exploit_user_list - config_passwords = self._config.exploit_password_list - user_password_pairs = [] - for user in config_users: - for password in config_passwords: - user_password_pairs.append((user, password)) + + user_password_pairs = self._config.get_exploit_user_password_pairs() if not g_reactor.is_alive(): g_reactor.daemon = True