lookyloo/website/web/templates/tree.html

695 lines
27 KiB
HTML
Raw Normal View History

2017-07-23 19:56:51 +02:00
{% extends "main.html" %}
{% from 'bootstrap5/utils.html' import render_messages %}
2020-07-15 18:04:34 +02:00
{% from "macros.html" import shorten_string %}
2020-07-03 18:25:16 +02:00
2021-06-10 02:59:24 +02:00
{% block title %}Capture of {{info['url']}}{% endblock %}
2021-01-17 12:41:01 +01:00
{% block card %}
2021-01-17 12:49:29 +01:00
<meta property="og:title" content="Lookyloo capture" />
<meta property="og:type" content="website"/>
2021-01-17 12:41:01 +01:00
<meta
2021-01-17 12:49:29 +01:00
property="og:description"
2021-06-10 02:59:24 +02:00
content="URL captured: {{info['url']}}"
2021-01-17 12:41:01 +01:00
/>
<meta
2021-01-17 12:49:29 +01:00
property="og:image"
2021-01-18 16:37:17 +01:00
content="https://{{public_domain}}{{ url_for('thumbnail', tree_uuid=tree_uuid, width=1200) }}"
2021-01-17 13:23:30 +01:00
/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>
2021-01-17 12:41:01 +01:00
<meta
2021-01-17 12:49:29 +01:00
property="og:url"
2021-01-18 16:37:17 +01:00
content="https://{{public_domain}}{{ url_for('tree', tree_uuid=tree_uuid) }}"
2021-01-17 12:41:01 +01:00
/>
2021-01-17 13:13:43 +01:00
<meta name="twitter:card" content="summary_large_image">
2021-01-17 12:41:01 +01:00
{% endblock %}
2017-07-23 19:56:51 +02:00
{% block scripts %}
{{ super() }}
2021-07-21 11:56:38 +02:00
<script src='{{ url_for('static', filename='d3.v7.min.js') }}'
integrity="{{get_sri('static', 'd3.v7.min.js')}}"
2021-06-17 02:36:01 +02:00
crossorigin="anonymous"></script>
<script src='{{ url_for('static', filename='tree.js') }}'
integrity="{{get_sri('static', 'tree.js')}}"
crossorigin="anonymous"></script>
2020-10-28 18:49:15 +01:00
2021-11-30 14:59:48 +01:00
<script>
$('#hashlookupModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
</script>
<script>
$('#modulesModal').on('show.bs.modal', function(e) {
2020-07-27 18:37:22 +02:00
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
$('#historyModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
2020-10-28 18:49:15 +01:00
$('.modulesForceRefresh').on('click',function(){
$('#modulesModal .modal-body').load("{{ url_for('trigger_modules', tree_uuid=tree_uuid, force=True) }}", function(){
2020-10-28 18:49:15 +01:00
$('#modulesModal').modal({show:true});
});
});
</script>
2020-10-28 18:49:15 +01:00
<script>
2020-10-28 18:49:15 +01:00
$('#categoriesModal').on('show.bs.modal', function(e) {
2020-05-13 17:31:27 +02:00
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
2020-10-28 18:49:15 +01:00
$('#searchCategories').submit(function(event){
var query = $("#query").val();
$('.modal-body').load("{{ url_for('categories_capture', tree_uuid=tree_uuid) }}" + query, function() {
$('#categoriesModal').modal({show:true});
});
event.preventDefault();
});
2020-05-13 17:31:27 +02:00
</script>
2020-10-28 18:49:15 +01:00
2020-05-13 17:31:27 +02:00
<script>
2020-10-28 18:49:15 +01:00
$('#statsModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
</script>
<script>
$('#bodyHashesModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
</script>
<script>
$('#mispPushModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
</script>
<script>
2021-06-02 00:31:14 +02:00
$('#mispLookupModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
</script>
<script>
$('#urlsInPageModal').on('show.bs.modal', function(e) {
var button = $(e.relatedTarget);
var modal = $(this);
modal.find('.modal-body').load(button.data("remote"));
});
</script>
2020-10-28 18:49:15 +01:00
<script>
2021-01-20 01:28:54 +01:00
{% if urlnode_uuid %}
history.scrollRestoration = "manual";
window.addEventListener('DOMContentLoaded', (event) => {
2021-01-20 01:28:54 +01:00
LocateNode('{{urlnode_uuid}}');
});
{% else %}
window.addEventListener('DOMContentLoaded', (event) => {
let thumbnail = document.getElementById('screenshot_thumbnail');
2021-03-30 00:45:24 +02:00
thumbnail.scrollIntoView({behavior: "smooth", block: "end", inline: "center"});
});
{% endif%}
2021-01-20 01:28:54 +01:00
</script>
{% if auto_trigger_modules %}
<script>
2021-05-20 00:03:07 +02:00
$.get("{{ url_for('trigger_modules', tree_uuid=tree_uuid, auto_trigger=True) }}")
</script>
{% endif%}
2021-05-11 19:52:55 +02:00
{% endblock %}
2021-05-11 19:52:55 +02:00
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="{{ url_for('static', filename='tree.css') }}">
{% endblock %}
2017-09-22 00:26:38 +02:00
2021-05-11 19:52:55 +02:00
2017-07-23 19:56:51 +02:00
{% block content %}
2017-09-25 15:11:01 +02:00
{{super()}}
2020-07-27 18:37:22 +02:00
2017-09-22 00:26:38 +02:00
<script>
2020-05-20 19:11:15 +02:00
var treeUUID = "{{ tree_uuid }}";
var screenshot_thumbnail = "{{ screenshot_thumbnail }}";
2020-11-29 23:56:42 +01:00
var enable_bookmark = {{ enable_bookmark|tojson }};
var treeData = {{ tree_json | safe }};
var parent_uuid = {{ parent_uuid|tojson }};
2021-06-10 02:59:24 +02:00
var capture_starttime = new Date(Date.parse("{{ info['capture_time'] }}"));
2020-12-10 16:26:37 +01:00
window.addEventListener('DOMContentLoaded', (event) => {
document.getElementById("start_time").innerHTML =
`${capture_starttime.getFullYear()}-${("0" + (capture_starttime.getMonth() + 1)).slice(-2)}-${("0" + capture_starttime.getDate()).slice(-2)} ${capture_starttime.toLocaleTimeString()}`;
2020-12-10 16:26:37 +01:00
});
2017-09-22 00:26:38 +02:00
</script>
2017-09-25 15:11:01 +02:00
2020-07-03 18:25:16 +02:00
{{ render_messages(container=True, dismissible=True) }}
2020-07-27 18:37:22 +02:00
<!-- Containers -->
2021-04-06 23:34:57 +02:00
<div id="menu_container_vertical" class="tree-panel-container">
<div id=menu_vertical>
<div class="menu_vertical_header">
2021-01-29 16:34:59 +01:00
<a href="{{ url_for('index') }}" title="Back to captures">
2021-04-06 23:34:57 +02:00
<img src="{{ url_for('static', filename='lookyloo.jpeg') }}" alt="Lookyloo icon"
height="110">
2020-07-27 18:37:22 +02:00
</a>
</div>
2020-07-29 13:39:01 +02:00
<hr/>
2020-07-27 18:37:22 +02:00
<center>
2021-04-06 23:34:57 +02:00
<div>
<button type="button" class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#menu_vertical_content">
2020-07-29 17:52:11 +02:00
<span class="if-collapsed">
2021-04-06 23:34:57 +02:00
<img src="{{ url_for('static', filename='up.jpg') }}" class="arrow-down" alt="Maximize menu" height="25" width="25" title="Expand">
2020-07-29 17:52:11 +02:00
</span>
<span class="if-not-collapsed">
<img src="{{ url_for('static', filename='up.jpg') }}" alt="Minimize menu" height="25" width="25" title="Collapse">
2020-07-29 17:52:11 +02:00
</span>
2020-07-27 18:37:22 +02:00
</button>
</div>
</center>
2020-07-29 13:39:01 +02:00
<hr/>
2021-04-06 23:34:57 +02:00
<div id=menu_vertical_content class="collapse show">
2020-07-29 17:52:11 +02:00
<ul class="list-unstyled components">
<li>
<a href="#detailsModal" data-bs-toggle="modal" data-bs-target="#detailsModal" role="button">Capture Details</a>
</li>
2020-07-29 17:52:11 +02:00
<li>
<a href="https://www.lookyloo.eu/docs/main/usage.html#_investigate_a_capture" role="button">Lookyloo Manual</a>
2020-07-29 17:52:11 +02:00
</li>
<li>
<a href="{{ url_for('index') }}" role="button">Homepage</a>
</li>
2020-07-29 17:52:11 +02:00
</ul>
</div>
2020-07-27 18:37:22 +02:00
</div>
2019-02-06 18:01:17 +01:00
</div>
<div id="menu_container_horizontal" class="tree-panel-container">
<div id=menu_horizontal class="d-flex">
<div class="flex-shrink-1">
<button type="button" class="btn btn-link mr-3 align-self-center" data-bs-toggle="collapse" data-bs-target="#menu_horizontal_content">
2021-04-06 23:34:57 +02:00
<span class="if-collapsed">
<img src="{{ url_for('static', filename='up.jpg') }}" class="arrow-right" alt="Maximize menu" height="25" width="25" title="Expand">
</span>
<span class="if-not-collapsed">
<img src="{{ url_for('static', filename='up.jpg') }}" class="arrow-left" alt="Minimize menu" height="25" width="25" title="Collapse">
</span>
</button>
</div>
<div id="menu_horizontal_content" class="collapse show flex-grow-1 ms-3 container">
<div class="hstack gap-3">
<div class="vr"></div>
2021-04-06 23:34:57 +02:00
<div class="col-sm">
<ul class="list-unstyled components">
<li>
<a href="#screenshotModal" data-bs-toggle="modal" data-bs-target="#screenshotModal" role="button">Page Screenshot</a>
2021-04-06 23:34:57 +02:00
</li>
<li>
<a href="#statsModal" data-remote="{{ url_for('stats', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#statsModal" role="button">Tree Statistics</a>
2021-04-06 23:34:57 +02:00
</li>
<li>
<a href="#bodyHashesModal" data-remote="{{ url_for('tree_body_hashes', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#bodyHashesModal" role="button">Tree ressources</a>
</li>
2021-04-06 23:34:57 +02:00
<li>
<a href="#modulesModal" data-remote="{{ url_for('trigger_modules', tree_uuid=tree_uuid, force=False) }}"
data-bs-toggle="modal" data-bs-target="#modulesModal" role="button">Third Party Reports</a>
2021-04-06 23:34:57 +02:00
</li>
2021-11-30 14:59:48 +01:00
{% if current_user.is_authenticated %}
<li>
<a href="#historyModal" data-remote="{{ url_for('historical_lookups', tree_uuid=tree_uuid, force=False) }}"
data-bs-toggle="modal" data-bs-target="#historyModal" role="button">Historical lookups</a>
</li>
{% endif %}
2021-11-30 14:59:48 +01:00
<li>
<a href="#hashlookupModal" data-remote="{{ url_for('hashlookup', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#hashlookupModal" role="button">Hashlookup hits</a>
2021-11-30 14:59:48 +01:00
</li>
2021-04-06 23:34:57 +02:00
</ul>
</div>
<div class="vr"></div>
2021-04-06 23:34:57 +02:00
<div class="col-sm">
<ul class="list-unstyled components">
<li>
<a href="#urlsInPageModal" data-remote="{{ url_for('urls_rendered_page', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#urlsInPageModal" role="button">Run Subsequent Captures</a>
2021-04-06 23:34:57 +02:00
</li>
<li>
<a href="{{ url_for('recapture', tree_uuid=tree_uuid) }}" role="button">Re-Capture URL</a>
</li>
2021-04-06 23:34:57 +02:00
{% if has_redirects %}
<li>
<a href="{{ url_for('redirects', tree_uuid=tree_uuid) }}" role="button">Download Redirects list</a>
</li>
{% endif %}
{% if enable_mail_notification %}
<li>
<a href="#emailModal" data-bs-toggle="modal" data-bs-target="#emailModal" role="button">Contact Local Administrator</a>
2021-04-06 23:34:57 +02:00
</li>
{% endif %}
</ul>
</div>
{%if enable_categorization or (current_user.is_authenticated and misp_push) or enable_bookmark or enable_context_by_users %}
<div class="vr"></div>
2021-04-06 23:34:57 +02:00
<div class="col-sm">
<ul class="list-unstyled components">
{% if enable_categorization %}
<li>
<a href="#categoriesModal" data-remote="{{ url_for('categories_capture', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#categoriesModal" role="button">Manage categories</a>
2021-04-06 23:34:57 +02:00
</li>
{% endif %}
{% if current_user.is_authenticated and misp_push%}
<li>
<a href="#mispPushModal" data-remote="{{ url_for('web_misp_push_view', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#mispPushModal" role="button">Prepare push to MISP</a>
2021-04-06 23:34:57 +02:00
</li>
{% endif %}
2021-06-02 00:31:14 +02:00
{% if current_user.is_authenticated and misp_lookup%}
<li>
<a href="#mispLookupModal" data-remote="{{ url_for('web_misp_lookup_view', tree_uuid=tree_uuid) }}"
data-bs-toggle="modal" data-bs-target="#mispLookupModal" role="button">Search events on MISP</a>
2021-06-02 00:31:14 +02:00
</li>
{% endif %}
2021-04-06 23:34:57 +02:00
{% if enable_bookmark %}
<li>
<a href="#/" role="button" onclick="UnbookmarkAllNodes();">Unbookmark all nodes</a>
</li>
{% endif %}
{% if enable_context_by_users %}
<li>
<a href="#/" role="button" onclick="MarkAsKnown('{{ tree_uuid }}');">Mark all the captures' entries as known</a>
</li>
{% endif %}
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</div>
2020-10-21 16:25:31 +02:00
<div id="legend_container" class="tree-panel-container">
<div id=legend class="collapse show">
2020-07-27 18:37:22 +02:00
<center>
<div style="display: inline">
<b>Legend</b>
</div>
<div style="display: inline;">
<button type="button" class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#legend">
<img src="{{ url_for('static', filename='down.jpg') }}" alt="Minimize legend" height="25" width="25" title="Collapse">
2019-04-18 17:34:36 +02:00
</button>
</div>
2020-07-27 18:37:22 +02:00
</center>
<hr/>
<div title="The node contains at least one insecure (not HTTPS) request">
<img src="{{ url_for('static', filename='insecure.svg') }}" alt="Insecure requests"
height="20" width="20"> Unencrypted requests
</div>
2020-09-10 14:37:42 +02:00
<div title="This node contains only empty responses">
<img src="{{ url_for('static', filename='empty.svg') }}" alt="Empty responses"
height="20" width="20"> Empty responses
</div>
<div title="Number of cookies received in the responses of this node">
<img src="{{ url_for('static', filename='cookie_received.png') }}" alt="Cookie received"
height="20" width="20"> Cookie received
</div>
<div title="Number of cookies sent in the requests of this node">
<img src="{{ url_for('static', filename='cookie_read.png') }}" alt="Cookie read"
height="20" width="20"> Cookie read
</div>
<div title="Number of redirects initiated by the responses of this node">
<img src="{{ url_for('static', filename='redirect.png') }}" alt="Redirect"
height="20" width="20"> Redirect
</div>
2021-08-12 16:31:50 +02:00
<div title="Number of resources loaded from iFrames in the responses in this node">
<img src="{{ url_for('static', filename='ifr.png') }}" alt="iFrame"
height="20" width="20"> iFrame
</div>
2021-08-12 16:31:50 +02:00
<div title="Number of JavaScript in the responses in this node">
<img src="{{ url_for('static', filename='javascript.png') }}" alt="JavaScript"
height="20" width="20"> Javascript
</div>
<div title="Number of fonts in the responses in this node">
<img src="{{ url_for('static', filename='font.png') }}" alt="Font"
height="20" width="20"> Font
</div>
<div title="Number of HTML in the responses in this node">
<img src="{{ url_for('static', filename='html.png') }}" alt="HTML"
height="20" width="20"> HTML
</div>
<div title="Number of JSON in the responses in this node">
<img src="{{ url_for('static', filename='json.png') }}" alt="JSON"
height="20" width="20"> JSON
</div>
<div title="Number of CSS in the responses in this node">
<img src="{{ url_for('static', filename='css.png') }}" alt="CSS"
height="20" width="20"> CSS
</div>
<div title="Number of executables in the responses in this node">
<img src="{{ url_for('static', filename='exe.png') }}" alt="EXE"
height="20" width="20"> EXE
</div>
<div title="Number of images in the responses in this node">
<img src="{{ url_for('static', filename='img.png') }}" alt="Image"
height="20" width="20"> Image
</div>
<div title="Number of videos in the responses in this node">
<img src="{{ url_for('static', filename='video.png') }}" alt="Video"
height="20" width="20"> Video
</div>
<div title="Number of unknown resources in the responses in this node">
<img src="{{ url_for('static', filename='wtf.png') }}" alt="Content type not set/unknown"
height="20" width="20"> Unknown content
</div>
</div>
2020-07-30 17:45:07 +02:00
<div style="width: 70px; float: right;">
2020-07-29 13:35:43 +02:00
<center>
<button type="button" class="btn btn-link" data-bs-toggle="collapse" data-bs-target="#legend">
<img src="{{ url_for('static', filename='up.jpg') }}" alt="Maximize legend" height="40" width="40" title="Expand">
2020-07-27 18:37:22 +02:00
<b>Legend</b>
2020-07-29 13:35:43 +02:00
</button>
</center>
</div>
2017-09-25 15:11:01 +02:00
</div>
2019-04-18 17:34:36 +02:00
<!-- Modals -->
<div class="modal fade" id="detailsModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="detailsModalLabel">Details of the capture at the time it happened</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2020-07-29 13:35:43 +02:00
</div>
<div class="modal-body">
<dl class="row">
<dt class="col-sm-2">URL captured</dt>
2021-06-10 02:59:24 +02:00
<dd class="col-sm-10">{{ shorten_string(info['url'], 1000) }}</dd>
<dt class="col-sm-2">Page title</dt>
2021-06-10 02:59:24 +02:00
<dd class="col-sm-10">{{ info['title'] }}</dd>
<dt class="col-sm-2">Capture time</dt>
<dd class="col-sm-10" id="start_time"></dd>
<dt class="col-sm-2">User Agent</dt>
2021-06-10 02:59:24 +02:00
<dd class="col-sm-10">{{ info['user_agent'] }}</dd>
2021-06-23 01:55:41 +02:00
{% if 'referer' in info and info['referer'] %}
2021-06-23 01:47:03 +02:00
<dt class="col-sm-2">Referer</dt>
2021-06-23 01:55:41 +02:00
<dd class="col-sm-10">{{ info['referer'] }}</dd>
2021-06-23 01:47:03 +02:00
{%endif%}
{% if meta %}
{% for k, v in meta.items() if k not in ['user_agent'] %}
<dt class="col-sm-2">{{k.title()}}</dt>
<dd class="col-sm-10">{{ v }}</dd>
{% endfor %}
{%endif%}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
2020-07-29 13:35:43 +02:00
</div>
2020-07-27 18:37:22 +02:00
</div>
2017-09-25 15:11:01 +02:00
</div>
2020-05-13 17:31:27 +02:00
<div class="modal fade" id="statsModal" tabindex="-1" role="dialog">
2020-07-27 18:37:22 +02:00
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
2020-10-28 18:49:15 +01:00
<h5 class="modal-title" id="statsModalLabel">Statistics</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2020-07-27 18:37:22 +02:00
</div>
<div class="modal-body">
... loading statistics ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="bodyHashesModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="bodyHashesModalLabel">Ressources in tree</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
... loading ressources ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="mispPushModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="mispPushModalLabel">MISP Push</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
... loading MISP Push view ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2020-07-27 18:37:22 +02:00
</div>
</div>
</div>
</div>
2021-06-02 00:31:14 +02:00
<div class="modal fade" id="mispLookupModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="mispLookupModalLabel">MISP Lookup</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2021-06-02 00:31:14 +02:00
</div>
<div class="modal-body">
... loading MISP Lookup view ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2021-06-02 00:31:14 +02:00
</div>
</div>
</div>
</div>
2020-07-27 18:37:22 +02:00
<div class="modal fade" id="screenshotModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
2020-10-28 18:49:15 +01:00
<h5 class="modal-title" id="screenshotModalLabel">Screenshot</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2020-07-27 18:37:22 +02:00
</div>
<div class="modal-body">
<center>
{% set screenshot_too_big = screenshot_size > 10 * 1024 * 1024 %}
{% if screenshot_too_big %}
Image too big ({{ sizeof_fmt(screenshot_size) }}) to display in the browser, the screenshot below is cropped.
</br>
{% endif %}
{% if blur_screenshot %}
<button type="button" class="btn btn-primary" onclick="$('#screenshot').removeClass('blur')">Unblur</button>
{% endif %}
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" role="button" class="btn btn-primary">Download</a>
</br>
</br>
<img src="{{ url_for('image', tree_uuid=tree_uuid, width=1024 if screenshot_too_big else '') }}" class="img-fluid {{ 'blur' if blur_screenshot else '' }}" id="screenshot"/>
</br>
</center>
2020-05-13 17:31:27 +02:00
</div>
2020-07-27 18:37:22 +02:00
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2020-07-27 18:37:22 +02:00
</div>
</div>
</div>
2020-05-13 17:31:27 +02:00
</div>
<div class="modal fade" id="modulesModal" tabindex="-1" role="dialog">
2020-07-27 18:37:22 +02:00
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="modulesModalLabel">
Reports from 3rd party services
</h4>
</br>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2020-07-27 18:37:22 +02:00
</div>
</br>
<center><h5>Note that if you get an error when you click on a
link below, it probably means the capture is still ongoing.
Try reloading the page after a few seconds.</h5></center>
2020-07-27 18:37:22 +02:00
<div class="modal-body">
... loading results from 3rd party modules ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success modulesForceRefresh">Re-run all modules</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2020-07-27 18:37:22 +02:00
</div>
</div>
</div>
</div>
<div class="modal fade" id="historyModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="historyModalLabel">
Historical data and contex about this capture
</h4>
</br>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
</br>
<div class="modal-body">
... loading results historical context ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
2021-11-30 14:59:48 +01:00
<div class="modal fade" id="hashlookupModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="hashlookupModalLabel">
Hits in Hashlookup
</h4>
</br>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2021-11-30 14:59:48 +01:00
</div>
</br>
<div class="modal-body">
... loading results from hashlookup ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2021-11-30 14:59:48 +01:00
</div>
</div>
</div>
</div>
{% if enable_context_by_users %}
2020-10-28 18:49:15 +01:00
<div class="modal fade" id="categoriesModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="categoriesModalLabel">Categorize the capture</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2020-10-28 18:49:15 +01:00
</div>
<div class="modal-body">
... loading the categorization options ...
</div>
<p>
<form id=searchCategories>
<label for="query" class="form-label">Category to search</label>
2020-10-28 18:49:15 +01:00
<input type="text" class="form-control" name="query" id="query" placeholder="Query">
<button type="submit" class="btn btn-success">Search</button>
</form>
</p>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2020-10-28 18:49:15 +01:00
</div>
</div>
</div>
</div>
{% endif %}
2020-10-28 18:49:15 +01:00
{% if enable_mail_notification %}
2020-05-11 19:01:02 +02:00
<div class="modal fade" id="emailModal" tabindex="-1" role="dialog">
2020-07-27 18:37:22 +02:00
<div class="modal-dialog modal-xl" role="document">
<form role="form" action="{{ tree_uuid }}/send_mail" method=post enctype=multipart/form-data>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="emailModalLabel">Notify by email</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2020-07-27 18:37:22 +02:00
</div>
<div class="modal-body">
<p>A notification of this capture will be sent to the owners of this Lookyloo instance. They may or may not act on it.</p>
<div class="mb-3">
<label for="email" class="form-label">Email address - used to get back in touch with you if needed (optional)</label>
<input type="email" class="form-control" name="email" id="email" placeholder="Enter email">
2021-05-25 22:20:24 +02:00
<!-- boat fields -->
<label class="boatymcboat form-label" for="name">Your Name</label>
2021-05-25 22:20:24 +02:00
<input class="boatymcboat" autocomplete="off" type="text" id="name" name="name"
placeholder="Your fav boat name here">
</div>
<div class="mb-3">
<label for="comment" class="form-label">Please write a comment (optional)</label>
<textarea class="form-control" name="comment" id=comment rows="3"></textarea>
</div>
<div class="mb-3 form-check">
2021-05-26 21:07:47 +02:00
<input class="form-check-input" type="checkbox" name="confirm" onchange="document.getElementById('btn-notification').disabled = !this.checked;"></input>
<label for="force_push" class="form-check-label">{{ confirm_message }}</label>
</div>
2020-07-27 18:37:22 +02:00
</div>
<div class="modal-footer">
2021-05-26 21:07:47 +02:00
<button type="submit" class="btn btn-success" id="btn-notification" disabled=true>Send email</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
2020-07-27 18:37:22 +02:00
</div>
</div>
</form>
</div>
2020-05-11 19:01:02 +02:00
</div>
{% endif %}
<div class="modal fade" id="urlsInPageModal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="urlsInPageModalLabel">URLs in the rendered page</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
... loading URLs in rendered page ...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
2017-09-25 15:11:01 +02:00
{% endblock content %}