mirror of https://github.com/MISP/misp-modules
fix: Testing if there is some screenshot data before trying to fetch it
parent
e2a0f27d75
commit
4c8fe9d8ef
|
@ -146,7 +146,9 @@ class JoeParser():
|
|||
relationship_type='initiates'))
|
||||
|
||||
def parse_screenshot(self):
|
||||
screenshotdata = self.data['behavior']['screenshotdata']['interesting']['$']
|
||||
screenshotdata = self.data['behavior']['screenshotdata']
|
||||
if screenshotdata:
|
||||
screenshotdata = screenshotdata['interesting']['$']
|
||||
attribute = {'type': 'attachment', 'value': 'screenshot.jpg',
|
||||
'data': screenshotdata, 'disable_correlation': True}
|
||||
self.misp_event.add_attribute(**attribute)
|
||||
|
|
Loading…
Reference in New Issue