From eecee86d923027ef604d3b940a8a961fc38fc3a8 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 1 Mar 2021 14:13:37 +0530 Subject: [PATCH] Remove preceeding underscore from variables --- monkey/monkey_island/cc/services/reporting/report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py index fa3bd5f94..5970a33b7 100644 --- a/monkey/monkey_island/cc/services/reporting/report.py +++ b/monkey/monkey_island/cc/services/reporting/report.py @@ -208,9 +208,9 @@ class ReportService: for telem in mongo.db.telemetry.find({'telem_category': 'exploit', 'data.info.credentials': {'$exists': True}}, {'data.info.credentials': 1, 'data.machine': 1, 'monkey_guid': 1}): creds = telem['data']['info']['credentials'] - _domain_name = telem['data']['machine']['domain_name'] - _ip = telem['data']['machine']['ip_addr'] - origin = _domain_name if _domain_name else _ip + domain_name = telem['data']['machine']['domain_name'] + ip = telem['data']['machine']['ip_addr'] + origin = domain_name if domain_name else ip formatted_creds.extend(ReportService._format_creds_for_reporting(telem, creds, origin)) return formatted_creds