forked from p15670423/monkey
* Deleted print statement
* Added further inspection in telemtry
This commit is contained in:
parent
9d36cf3990
commit
25340e9998
|
@ -103,7 +103,6 @@ class AWSExporter(Exporter):
|
||||||
region_name=region)
|
region_name=region)
|
||||||
|
|
||||||
import_response = securityhub.batch_import_findings(Findings=findings_list)
|
import_response = securityhub.batch_import_findings(Findings=findings_list)
|
||||||
print import_response
|
|
||||||
if import_response['ResponseMetadata']['HTTPStatusCode'] == 200:
|
if import_response['ResponseMetadata']['HTTPStatusCode'] == 200:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -192,6 +192,7 @@ class Telemetry(flask_restful.Resource):
|
||||||
wmi_handler = WMIHandler(monkey_id, telemetry_json['data']['wmi'], users_secrets)
|
wmi_handler = WMIHandler(monkey_id, telemetry_json['data']['wmi'], users_secrets)
|
||||||
wmi_handler.process_and_handle_wmi_info()
|
wmi_handler.process_and_handle_wmi_info()
|
||||||
if 'aws' in telemetry_json['data']:
|
if 'aws' in telemetry_json['data']:
|
||||||
|
if 'instance-id' in telemetry_json['data']['aws']:
|
||||||
mongo.db.monkey.update_one({'_id': monkey_id},
|
mongo.db.monkey.update_one({'_id': monkey_id},
|
||||||
{'aws_instance_id': telemetry_json['data']['aws']['instance-id']})
|
{'aws_instance_id': telemetry_json['data']['aws']['instance-id']})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue