mirror of https://github.com/MISP/PyMISP
chg: Add authenticode support in generate_file_objects
parent
d81639b0ba
commit
ea643ec15e
|
@ -43,6 +43,15 @@ def make_objects(path):
|
||||||
to_return['references'] += s.ObjectReference
|
to_return['references'] += s.ObjectReference
|
||||||
|
|
||||||
if peo:
|
if peo:
|
||||||
|
if hasattr(peo, 'certificates') and hasattr(peo, 'signers'):
|
||||||
|
# special authenticode case for PE objects
|
||||||
|
for c in peo.certificates:
|
||||||
|
to_return['objects'].append(c)
|
||||||
|
for s in peo.signers:
|
||||||
|
to_return['objects'].append(s)
|
||||||
|
del peo.certificates
|
||||||
|
del peo.signers
|
||||||
|
del peo.sections
|
||||||
to_return['objects'].append(peo)
|
to_return['objects'].append(peo)
|
||||||
if peo.ObjectReference:
|
if peo.ObjectReference:
|
||||||
to_return['references'] += peo.ObjectReference
|
to_return['references'] += peo.ObjectReference
|
||||||
|
|
Loading…
Reference in New Issue