* Deleted print statement

* Added further inspection in telemtry
This commit is contained in:
maor.rayzin 2018-11-28 17:05:10 +02:00
parent 9d36cf3990
commit 25340e9998
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,6 @@ class AWSExporter(Exporter):
region_name=region)
import_response = securityhub.batch_import_findings(Findings=findings_list)
print import_response
if import_response['ResponseMetadata']['HTTPStatusCode'] == 200:
return True
else:

View File

@ -192,8 +192,9 @@ class Telemetry(flask_restful.Resource):
wmi_handler = WMIHandler(monkey_id, telemetry_json['data']['wmi'], users_secrets)
wmi_handler.process_and_handle_wmi_info()
if 'aws' in telemetry_json['data']:
mongo.db.monkey.update_one({'_id': monkey_id},
{'aws_instance_id': telemetry_json['data']['aws']['instance-id']})
if 'instance-id' in telemetry_json['data']['aws']:
mongo.db.monkey.update_one({'_id': monkey_id},
{'aws_instance_id': telemetry_json['data']['aws']['instance-id']})
@staticmethod
def add_ip_to_ssh_keys(ip, ssh_info):