fix: [update thirdparty] #473

pull/486/head
Terrtia 2020-02-21 11:36:22 +01:00
parent e3f76c52fa
commit 07e3bfe396
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
3 changed files with 3 additions and 2 deletions

View File

@ -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())

View File

@ -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