Fixed dict bugs + server config

This commit is contained in:
Shay Nehmad 2020-01-19 21:45:31 +02:00
parent 6815433a85
commit 2a09d54ed1
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{
"server_config": "testing",
"server_config": "standard",
"deployment": "develop"
}

View File

@ -117,4 +117,5 @@ def process_mimikatz_and_wmi_info(telemetry_json):
def update_db_with_new_hostname(telemetry_json):
if 'hostname' in telemetry_json['data']:
Monkey.get_single_monkey_by_guid(telemetry_json['monkey_guid']).set_hostname(telemetry_json['data']['hostname'])

View File

@ -7,6 +7,6 @@ logger = logging.getLogger(__name__)
def process_environment_telemetry(collector_results, monkey_guid):
relevant_monkey = Monkey.get_single_monkey_by_guid(monkey_guid)
relevant_monkey.environment = collector_results
relevant_monkey.environment = collector_results["environment"]
relevant_monkey.save()
logger.debug("Updated Monkey {} with env {}".format(str(relevant_monkey), collector_results))