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