From 0dc864baa5fd5653b6ab596871c63adafc4cf772 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Fri, 5 Jun 2020 15:59:31 +0300 Subject: [PATCH] Fixed a bug that added empty credentials to configuration --- .../cc/services/telemetry/processing/system_info.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/services/telemetry/processing/system_info.py b/monkey/monkey_island/cc/services/telemetry/processing/system_info.py index 375bd6cf6..c6caf4865 100644 --- a/monkey/monkey_island/cc/services/telemetry/processing/system_info.py +++ b/monkey/monkey_island/cc/services/telemetry/processing/system_info.py @@ -83,11 +83,11 @@ def replace_user_dot_with_comma(creds): def add_system_info_creds_to_config(creds): for user in creds: ConfigService.creds_add_username(user) - if 'password' in creds[user]: + if 'password' in creds[user] and creds[user]['password']: ConfigService.creds_add_password(creds[user]['password']) - if 'lm_hash' in creds[user]: + if 'lm_hash' in creds[user] and creds[user]['lm_hash']: ConfigService.creds_add_lm_hash(creds[user]['lm_hash']) - if 'ntlm_hash' in creds[user]: + if 'ntlm_hash' in creds[user] and creds[user]['ntlm_hash']: ConfigService.creds_add_ntlm_hash(creds[user]['ntlm_hash'])