2024-02-21 14:36:19 +01:00
|
|
|
{% from "macros.html" import shorten_string %}
|
|
|
|
|
2024-09-04 16:30:33 +02:00
|
|
|
<script type="text/javascript" nonce="{{ csp_nonce() }}">
|
2024-02-26 17:07:23 +01:00
|
|
|
new DataTable('#faviconDetailsTable_{{favicon_sha512}}', {
|
2024-02-27 15:29:35 +01:00
|
|
|
order: [[ 0, "desc" ]],
|
|
|
|
columnDefs: [{ width: '30%',
|
|
|
|
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: '30%', targets: 1 },
|
|
|
|
{ width: '50%', targets: 2 }],
|
2024-02-27 15:29:35 +01:00
|
|
|
|
2024-02-20 17:01:16 +01:00
|
|
|
});
|
|
|
|
</script>
|
2024-02-19 16:24:17 +01:00
|
|
|
|
2024-02-20 17:01:16 +01:00
|
|
|
<center>
|
2024-02-26 19:09:48 +01:00
|
|
|
<img src="data:{{mimetype}};base64,{{ b64_favicon }}" style="width:32px;height:32px;"/>
|
2024-02-26 19:46:20 +01:00
|
|
|
<h5>Shodan MMH3 Hash: <a href="https://www.shodan.io/search?query=http.favicon.hash%3A{{ mmh3_shodan }}" target="_blank">{{ mmh3_shodan }}</a></h5>
|
2024-02-20 17:01:16 +01:00
|
|
|
</center>
|
2024-02-26 17:07:23 +01:00
|
|
|
<table id="faviconDetailsTable_{{favicon_sha512}}" class="table table-striped" style="width:100%">
|
2024-02-20 17:01:16 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-02-21 14:36:19 +01:00
|
|
|
<th>Capture Time</th>
|
2024-02-20 17:01:16 +01:00
|
|
|
<th>Capture Title</th>
|
|
|
|
<th>Landing page</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for capture_uuid, title, landing_page, capture_time in captures %}
|
|
|
|
<tr>
|
2024-02-21 14:36:19 +01:00
|
|
|
<td>
|
|
|
|
{{capture_time}}
|
|
|
|
</td>
|
2024-02-20 17:01:16 +01:00
|
|
|
<td>
|
|
|
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}">
|
|
|
|
{{ title }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2024-02-27 15:29:35 +01:00
|
|
|
<span class="d-inline-block text-break" style="max-width: 400px;">
|
|
|
|
{{ landing_page }}
|
2024-02-21 14:36:19 +01:00
|
|
|
</span>
|
2024-02-20 17:01:16 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-02-26 17:07:23 +01:00
|
|
|
|
|
|
|
{%for probabilistic_hash_algo, entries in probabilistic_favicons.items() %}
|
|
|
|
<h3>Probabilistic Favicon Hashes ({{ probabilistic_hash_algo }})</h3>
|
|
|
|
{% for mm3h, favicons in entries.items() %}
|
|
|
|
<h4>MM3 Hash: {{ mm3h }}</h4>
|
|
|
|
{% for sha512, favicon in favicons.items() %}
|
|
|
|
<a href="#faviconDetailsProbabilisticHashModal" data-remote="{{ url_for('favicon_detail', favicon_sha512=sha512, get_probabilistic=0) }}"
|
|
|
|
data-bs-toggle="modal" data-bs-target="#faviconDetailsProbabilisticHashModal" role="button">
|
|
|
|
<img src="data:{{mimetype}};base64,{{ b64_favicon }}" style="width:32px;height:32px;"
|
|
|
|
title="Click to see other captures with the same favicon"/>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|