mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [update thirdparty] #473
This commit is contained in:
parent
e3f76c52fa
commit
07e3bfe396
3 changed files with 3 additions and 2 deletions
|
@ -380,6 +380,7 @@ def create_misp_event(event, distribution=0, threat_level_id=4, publish=False, a
|
||||||
|
|
||||||
# # TODO: handle multiple MISP instance
|
# # TODO: handle multiple MISP instance
|
||||||
misp = PyMISP(misp_url, misp_key, misp_verifycert)
|
misp = PyMISP(misp_url, misp_key, misp_verifycert)
|
||||||
|
#print(event.to_json())
|
||||||
misp_event = misp.add_event(event, pythonify=True)
|
misp_event = misp.add_event(event, pythonify=True)
|
||||||
# # TODO: handle error
|
# # TODO: handle error
|
||||||
event_metadata = extract_event_metadata(misp_event)
|
event_metadata = extract_event_metadata(misp_event)
|
||||||
|
@ -413,7 +414,7 @@ if __name__ == '__main__':
|
||||||
{'id': '0xA4BB02A75E6AF448', 'type': 'pgp', 'subtype': 'key', 'lvl': 1},
|
{'id': '0xA4BB02A75E6AF448', 'type': 'pgp', 'subtype': 'key', 'lvl': 1},
|
||||||
{'id': '15efuhpw5V9B1opHAgNXKPBPqdYALXP4hc', 'type': 'cryptocurrency', 'subtype': 'bitcoin', 'lvl': 1}
|
{'id': '15efuhpw5V9B1opHAgNXKPBPqdYALXP4hc', 'type': 'cryptocurrency', 'subtype': 'bitcoin', 'lvl': 1}
|
||||||
]
|
]
|
||||||
create_list_of_objs_to_export(l_obj, mode='union')
|
create_list_of_objs_to_export(l_obj)
|
||||||
|
|
||||||
|
|
||||||
#print(event.to_json())
|
#print(event.to_json())
|
||||||
|
|
Binary file not shown.
|
@ -119,4 +119,4 @@ python3 -m pip install git+https://github.com/MISP/PyMISPGalaxies --upgrade
|
||||||
python3 -m pip install git+https://github.com/MISP/PyMISP --upgrade
|
python3 -m pip install git+https://github.com/MISP/PyMISP --upgrade
|
||||||
|
|
||||||
#Update the Hive
|
#Update the Hive
|
||||||
python3 -m pip install git+https://github.com/TheHive-Project/TheHive4py --upgrade
|
python3 -m pip install thehive4py --upgrade
|
||||||
|
|
Loading…
Reference in a new issue