def do_transform(self, request, response, config): maltego_object = request.entity misp = get_misp_connection(config) event_json = misp.get_event(maltego_object.event_id) for o in event_json['Event']['Object']: if o['uuid'] == maltego_object.uuid: for entity in object_to_attributes(o): if entity: response += entity return response
def do_transform(self, request, response, config): maltego_object = request.entity misp = get_misp_connection(config) event_json = misp.get_event(maltego_object.event_id) for o in event_json['Event']['Object']: if o['uuid'] == maltego_object.uuid: for entity in object_to_attributes(o, event_json): if entity: response += entity return response
def do_transform(self, request, response, config): response += check_update(config) maltego_object = request.entity misp = get_misp_connection(config, request.parameters) event_json = misp.get_event(maltego_object.event_id) for o in event_json['Event']['Object']: if o['uuid'] == maltego_object.uuid: for entity in object_to_attributes(o, event_json): if entity: response += entity for entity in object_to_relations(o, event_json): if entity: response += entity return response