2020-06-19 00:25:24 +02:00
|
|
|
{% extends "main.html" %}
|
|
|
|
|
2022-01-14 15:58:06 +01:00
|
|
|
{% from 'bootstrap5/utils.html' import render_messages %}
|
2020-06-19 00:25:24 +02:00
|
|
|
|
|
|
|
{% block title %}{{ body_hash }}{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$('#table').DataTable( {
|
|
|
|
"order": [[ 1, "desc" ]],
|
|
|
|
"pageLength": 500
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2021-04-20 17:32:17 +02:00
|
|
|
{% if from_popup %}
|
2020-08-07 18:01:06 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
function openTreeInNewTab(treeUUID) {
|
|
|
|
window.opener.openTreeInNewTab(treeUUID);
|
|
|
|
};
|
|
|
|
</script>
|
2021-04-20 17:32:17 +02:00
|
|
|
{% endif %}
|
2020-08-07 18:01:06 +02:00
|
|
|
|
2020-06-19 00:25:24 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2020-08-07 15:14:13 +02:00
|
|
|
<center>
|
|
|
|
<h4>{{ body_hash }}</h4>
|
2021-04-20 17:32:17 +02:00
|
|
|
{% if from_popup %}
|
2022-03-18 10:48:09 +01:00
|
|
|
<button onclick="window.history.back();" class="btn btn-primary" type="button">Go Back</button>
|
2021-04-20 17:32:17 +02:00
|
|
|
{% endif %}
|
2020-08-07 15:14:13 +02:00
|
|
|
</center>
|
2020-06-19 00:25:24 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table id="table" class="table" style="width:96%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Hostname</th>
|
|
|
|
<th>Frequency</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for domain, freq in domains %}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{{ domain }}
|
|
|
|
</td>
|
|
|
|
<td>{{ freq }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<p>The same file was seen in these captures:</p>
|
|
|
|
<ul>
|
2020-06-20 02:09:45 +02:00
|
|
|
{% for capture_uuid, title in captures %}
|
2021-04-20 17:32:17 +02:00
|
|
|
<li>
|
|
|
|
{% if from_popup %}
|
|
|
|
<a href="#/" onclick="openTreeInNewTab('{{ capture_uuid }}')">{{ title }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}")">{{ title }}</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
2020-06-19 00:25:24 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|