2024-02-21 14:36:19 +01:00
|
|
|
{% from "macros.html" import shorten_string %}
|
|
|
|
|
2024-02-20 17:01:16 +01:00
|
|
|
{% if from_popup %}
|
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>
|
|
|
|
|
2020-08-07 18:01:06 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
function openTreeInNewTab(treeUUID) {
|
|
|
|
window.opener.openTreeInNewTab(treeUUID);
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2020-06-19 00:25:24 +02:00
|
|
|
{% endblock %}
|
2024-02-20 17:01:16 +01:00
|
|
|
{%endif%}
|
2020-06-19 00:25:24 +02:00
|
|
|
|
2024-02-21 14:36:19 +01:00
|
|
|
|
2020-06-19 00:25:24 +02:00
|
|
|
{% block content %}
|
2024-02-20 17:01:16 +01:00
|
|
|
|
|
|
|
{% if from_popup %}
|
|
|
|
<button onclick="window.history.back();" class="btn btn-primary" type="button">Go Back</button>
|
|
|
|
{%endif%}
|
|
|
|
|
2024-02-21 14:36:19 +01:00
|
|
|
<center>
|
|
|
|
<h6>{{ body_hash }}</h6>
|
|
|
|
<a href="{{ url_for('ressource_by_hash', sha512=body_hash) }}">Download</a>
|
|
|
|
</center>
|
|
|
|
|
2024-02-20 17:01:16 +01:00
|
|
|
<script type="text/javascript">
|
2024-02-21 14:36:19 +01:00
|
|
|
new DataTable('#freqHostTable', {
|
2024-04-02 19:32:48 +02:00
|
|
|
order: [[ 0, "desc" ]],
|
2024-02-20 17:01:16 +01:00
|
|
|
columnDefs: [{ width: '20%', targets: 0 },
|
|
|
|
{ width: '80%', targets: 1 }],
|
|
|
|
});
|
|
|
|
</script>
|
2024-02-21 14:36:19 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
new DataTable('#bodyHashDetailsTable', {
|
2024-04-02 19:32:48 +02:00
|
|
|
order: [[ 0, "desc" ]],
|
|
|
|
columnDefs: [{ width: '20%', targets: 0,
|
|
|
|
render: (data) => {
|
|
|
|
const date = new Date(data);
|
|
|
|
return date.getFullYear() + '-' + (date.getMonth() + 1).toString().padStart(2, "0") + '-' + date.getDate().toString().padStart(2, "0") + ' ' + date.toTimeString();
|
|
|
|
}
|
|
|
|
},
|
2024-02-21 14:36:19 +01:00
|
|
|
{ width: '40%', targets: 1 },
|
|
|
|
{ width: '40%', targets: 2 }],
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<table id="freqHostTable" class="table table-striped" style="width:100%">
|
2024-02-20 17:01:16 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Frequency</th>
|
2024-02-21 14:36:19 +01:00
|
|
|
<th>Hostname</th>
|
2024-02-20 17:01:16 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for domain, freq in domains %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ freq }}</td>
|
2024-02-21 14:36:19 +01:00
|
|
|
<td>{{ domain }}</td>
|
2024-02-20 17:01:16 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>The same file was seen in these captures:</p>
|
2024-02-21 14:36:19 +01:00
|
|
|
<table id="bodyHashDetailsTable" class="table table-striped" style="width:100%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Timestamp</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>URL</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for capture_uuid, title, timestamp, hostnode_uuid, url in captures %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ timestamp }}</td>
|
|
|
|
<td>
|
|
|
|
{% if from_popup %}
|
|
|
|
<a href="#/" onclick="openTreeInNewTab('{{ capture_uuid }}')">{{ title }}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid, node_uuid=hostnode_uuid) }}">{{ title }}</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>{{ url }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2020-06-19 00:25:24 +02:00
|
|
|
{% endblock %}
|