pull/618/head
Usama015 2023-06-20 14:02:49 +05:00
parent 4021b97254
commit 15a6adce86
1 changed files with 1 additions and 3 deletions

View File

@ -53,6 +53,7 @@ def handler(q=False):
mapping = get_mapping()
for field, relation in mapping.items():
ipObject.add_attribute(relation, query[field])
ipObject.add_reference(input_attribute.uuid, 'locates')
misp_event.add_object(ipObject)
# Return the results in MISP format
event = json.loads(misp_event.to_json())
@ -61,9 +62,6 @@ def handler(q=False):
}
# return {'error' : 'Completed Response'}
def get_mapping():
return {
'isp':'ISP',