mirror of https://github.com/CIRCL/lookyloo
new: Expose MISP Export on download modal
parent
03bf7888e8
commit
98ae7fb498
|
@ -175,7 +175,7 @@ class MISPExport(Resource):
|
|||
|
||||
to_return = []
|
||||
for e in event:
|
||||
to_return.append(e.to_json(indent=2))
|
||||
to_return.append(json.loads(e.to_json()))
|
||||
return to_return
|
||||
|
||||
|
||||
|
|
|
@ -644,6 +644,12 @@
|
|||
<li>
|
||||
<a href="{{ url_for('export', tree_uuid=tree_uuid) }}" role="button">Download full capture</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url_for('GenericAPI_misp_export', capture_uuid=tree_uuid) }}" role="button">Download as MISP Event</a>
|
||||
{% if parent_uuid %}
|
||||
(<a href="{{ url_for('GenericAPI_misp_export', capture_uuid=tree_uuid, with_parents=True) }}" role="button">with parents</a>)
|
||||
{% endif %}
|
||||
</li>
|
||||
{% if has_redirects %}
|
||||
<li>
|
||||
<a href="{{ url_for('redirects', tree_uuid=tree_uuid) }}" role="button">Download redirects</a>
|
||||
|
|
Loading…
Reference in New Issue