Fixed dict bugs + server config
This commit is contained in:
parent
6815433a85
commit
2a09d54ed1
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"server_config": "testing",
|
||||
"server_config": "standard",
|
||||
"deployment": "develop"
|
||||
}
|
||||
|
|
|
@ -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'])
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue