mirror of https://github.com/MISP/misp-modules
Return base64 value of the archived data
parent
a0b6ee7392
commit
9c5467a363
modules/expansion
|
@ -26,13 +26,14 @@ def handler(q=False):
|
|||
else:
|
||||
misperrors['error'] = "Link is missing"
|
||||
return misperrors
|
||||
r = {'results': [{'types': mispattributes['output'], 'values': tocache, 'data': data}]}
|
||||
enc_data = str(data)
|
||||
r = {'results': [{'types': mispattributes['output'], 'values': tocache, 'data': enc_data}]}
|
||||
return r
|
||||
|
||||
|
||||
def __archiveLink(archive_path, tocache):
|
||||
archiver = url_archiver.Archive(archive_path=archive_path)
|
||||
return archiver.fetch(url=tocache)
|
||||
return archiver.fetch(url=tocache, armor=True)
|
||||
|
||||
def introspection():
|
||||
return mispattributes
|
||||
|
|
Loading…
Reference in New Issue