mirror of https://github.com/MISP/misp-modules
updated
parent
4021b97254
commit
15a6adce86
|
@ -53,6 +53,7 @@ def handler(q=False):
|
||||||
mapping = get_mapping()
|
mapping = get_mapping()
|
||||||
for field, relation in mapping.items():
|
for field, relation in mapping.items():
|
||||||
ipObject.add_attribute(relation, query[field])
|
ipObject.add_attribute(relation, query[field])
|
||||||
|
ipObject.add_reference(input_attribute.uuid, 'locates')
|
||||||
misp_event.add_object(ipObject)
|
misp_event.add_object(ipObject)
|
||||||
# Return the results in MISP format
|
# Return the results in MISP format
|
||||||
event = json.loads(misp_event.to_json())
|
event = json.loads(misp_event.to_json())
|
||||||
|
@ -61,9 +62,6 @@ def handler(q=False):
|
||||||
}
|
}
|
||||||
# return {'error' : 'Completed Response'}
|
# return {'error' : 'Completed Response'}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_mapping():
|
def get_mapping():
|
||||||
return {
|
return {
|
||||||
'isp':'ISP',
|
'isp':'ISP',
|
||||||
|
|
Loading…
Reference in New Issue