fix: [MISP export] fix pgp-meta template

This commit is contained in:
Terrtia 2020-02-21 13:25:59 +01:00
parent 7f64d57bbd
commit bdddb1e5b6
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -153,7 +153,7 @@ def export_cryptocurrency(crypto_type, crypto_address):
def export_pgp(pgp_type, pgp_value): def export_pgp(pgp_type, pgp_value):
dict_metadata = Pgp.pgp.get_metadata(pgp_type, pgp_value) dict_metadata = Pgp.pgp.get_metadata(pgp_type, pgp_value)
obj = MISPObject('pgp-meta', misp_objects_path_custom='../../../misp-objects/objects') obj = MISPObject('pgp-meta')
obj.first_seen = dict_metadata['first_seen'] obj.first_seen = dict_metadata['first_seen']
obj.last_seen = dict_metadata['last_seen'] obj.last_seen = dict_metadata['last_seen']