2017-07-23 19:56:51 +02:00
|
|
|
|
{% extends "main.html" %}
|
|
|
|
|
|
|
|
|
|
{% block title %}Tree{% endblock %}
|
|
|
|
|
|
2017-09-29 14:48:37 +02:00
|
|
|
|
{% block scripts %}
|
2019-06-28 12:08:35 +02:00
|
|
|
|
{{ super() }}
|
2020-04-02 17:37:27 +02:00
|
|
|
|
<script src='{{ url_for('static', filename='d3.v5.min.js') }}'></script>
|
|
|
|
|
<script src='{{ url_for('static', filename='FileSaver.js') }}'></script>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<script src='{{ url_for('static', filename='tree.js') }}'></script>
|
|
|
|
|
<script>
|
|
|
|
|
$('#screenshot_view_button').click(function(){
|
|
|
|
|
$(this).text(function(i, old){
|
|
|
|
|
return old=='View' ? 'Hide' : 'View';
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2020-04-20 16:41:42 +02:00
|
|
|
|
<script>
|
|
|
|
|
$('#modulesModal').on('show.bs.modal', function(e) {
|
|
|
|
|
var button = $(e.relatedTarget);
|
|
|
|
|
var modal = $(this);
|
|
|
|
|
modal.find('.modal-body').load(button.data("remote"));
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<script>
|
2020-05-13 17:31:27 +02: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>
|
2020-04-20 16:41:42 +02:00
|
|
|
|
$('.modulesForceRefresh').on('click',function(){
|
|
|
|
|
$('.modal-body').load("{{ url_for('trigger_modules', tree_uuid=tree_uuid, force=True) }}",function(){
|
|
|
|
|
$('#modulesModal').modal({show:true});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2017-09-29 14:48:37 +02:00
|
|
|
|
{% endblock %}
|
2017-09-22 00:26:38 +02:00
|
|
|
|
|
2017-07-23 19:56:51 +02:00
|
|
|
|
{% block content %}
|
2017-09-25 15:11:01 +02:00
|
|
|
|
{{super()}}
|
2017-09-22 00:26:38 +02:00
|
|
|
|
<script>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
var treeData = {{ tree_json | safe }};
|
2017-09-22 00:26:38 +02:00
|
|
|
|
</script>
|
2017-09-25 15:11:01 +02:00
|
|
|
|
|
2020-03-19 13:49:58 +01:00
|
|
|
|
<a id="lookyloo-icon" href="/" ></a>
|
2019-04-19 14:41:04 +02:00
|
|
|
|
<div id=screenshot class="collapse">
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<img src="{{ url_for('image', tree_uuid=tree_uuid) }}" class="img-fluid"/>
|
2019-02-06 18:01:17 +01:00
|
|
|
|
</div>
|
2018-03-22 17:22:19 +01:00
|
|
|
|
|
2019-04-18 17:34:36 +02:00
|
|
|
|
<div id="legend_container" class="container">
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<div id=legend class="collapse show">
|
|
|
|
|
<div>
|
|
|
|
|
<center>
|
|
|
|
|
<div style="display: inline">
|
|
|
|
|
<b>Legend</b>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: inline;">
|
2019-04-18 17:34:36 +02:00
|
|
|
|
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#legend">
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<img src="{{ url_for('static', filename='minimize2.jpg') }}" alt="Minimize legend" height="25" width="25">
|
2019-04-18 17:34:36 +02:00
|
|
|
|
</button>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
</div>
|
|
|
|
|
</center>
|
2019-04-18 17:34:36 +02:00
|
|
|
|
</div>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<hr/>
|
|
|
|
|
<img src="{{ url_for('static', filename='javascript.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="JavaScript" height="20" width="20"> Javascript <br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='cookie_received.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Cookie received" height="20" width="20"> Cookie received<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='cookie_read.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Cookie read" height="20" width="20"> Cookie read<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='redirect.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Redirect" height="20" width="20"> Redirect<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='font.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Font" height="20" width="20"> Font<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='html.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="HTML" height="20" width="20"> HTML<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='json.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="JSON" height="20" width="20"> JSON<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='css.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="CSS" height="20" width="20"> CSS<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='exe.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="EXE" height="20" width="20"> EXE<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='img.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Image" height="20" width="20"> Image<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='video.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Video" height="20" width="20"> Video<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='ifr.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="iFrame" height="20" width="20"> iFrame<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
|
|
|
|
|
<img src="{{ url_for('static', filename='wtf.png') }}"
|
2020-03-17 14:17:18 +01:00
|
|
|
|
alt="Content type not set/unknown" height="20" width="20"> Content type not set/unknown<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 100px">
|
|
|
|
|
<div style="display: inline;">
|
|
|
|
|
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#legend">
|
|
|
|
|
<img src="{{ url_for('static', filename='maximize2.jpg') }}" alt="Minimize legend" height="40" width="40">
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: inline">
|
|
|
|
|
<b>Legend</b>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-09-25 15:11:01 +02:00
|
|
|
|
</div>
|
2019-04-18 17:34:36 +02:00
|
|
|
|
|
2019-04-19 14:41:04 +02:00
|
|
|
|
<div id="tree-details_container" class="container">
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<div id=tree-details class="collapse show">
|
|
|
|
|
<div>
|
|
|
|
|
<center>
|
|
|
|
|
<div style="display: inline">
|
|
|
|
|
<b>Tree details</b>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: inline;">
|
2019-04-19 14:41:04 +02:00
|
|
|
|
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#tree-details">
|
2019-06-28 12:08:35 +02:00
|
|
|
|
<img src="{{ url_for('static', filename='minimize1.jpg') }}"
|
|
|
|
|
alt="Minimize tree details" height="25" width="25">
|
2019-04-19 14:41:04 +02:00
|
|
|
|
</button>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
</div>
|
|
|
|
|
</center>
|
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
2020-03-17 14:17:18 +01:00
|
|
|
|
<b>Root URL</b>: {{ root_url }}<br>
|
|
|
|
|
<b>Start time</b>: {{ start_time }}<br>
|
|
|
|
|
<b>User Agent</b>: {{ user_agent }}<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
{% if meta %}
|
|
|
|
|
{%for k, v in meta.items()%}
|
2020-03-17 14:17:18 +01:00
|
|
|
|
<b>{{k.title()}}</b>: {{ v }}<br>
|
2019-06-28 12:08:35 +02:00
|
|
|
|
{%endfor%}
|
|
|
|
|
{%endif%}
|
|
|
|
|
<b>Screenshot</b>:
|
|
|
|
|
<a href="{{ url_for('image', tree_uuid=tree_uuid) }}" class="btn btn-info" role="button">Download</a>
|
|
|
|
|
<button id="screenshot_view_button" type="button" class="btn btn-info"
|
|
|
|
|
data-toggle="collapse" data-target="#screenshot">View</button>
|
2020-03-17 14:17:18 +01:00
|
|
|
|
<br>
|
2020-04-20 16:41:42 +02:00
|
|
|
|
<br>
|
|
|
|
|
|
|
|
|
|
<a href="#modulesModal" data-remote="{{ url_for('trigger_modules', tree_uuid=tree_uuid, force=False) }}"
|
|
|
|
|
data-toggle="modal" data-target="#modulesModal" class="btn btn-info" role="button">Show third party reports</a>
|
2020-05-13 17:31:27 +02:00
|
|
|
|
<a href="#statsModal" data-remote="{{ url_for('stats', tree_uuid=tree_uuid) }}"
|
|
|
|
|
data-toggle="modal" data-target="#statsModal" class="btn btn-info" role="button">Show Statistics</a>
|
2020-05-11 19:01:02 +02:00
|
|
|
|
{% if enable_mail_notification %}
|
|
|
|
|
<a href="#emailModal" data-toggle="modal" data-target="#emailModal" class="btn btn-info" role="button">Notify by mail</a>
|
|
|
|
|
{%endif%}
|
2019-06-28 12:08:35 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div style="width: 100px;float: right;">
|
|
|
|
|
<div style="display: inline;">
|
|
|
|
|
<button type="button" class="btn btn-link" data-toggle="collapse" data-target="#tree-details">
|
|
|
|
|
<img src="{{ url_for('static', filename='maximize1.jpg') }}" alt="Minimize tree details" height="40" width="40">
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: inline">
|
|
|
|
|
<b>Tree details</b>
|
2019-04-19 14:41:04 +02:00
|
|
|
|
</div>
|
2019-06-28 12:08:35 +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">
|
|
|
|
|
<div class="modal-dialog modal-xl" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="modulesModalLabel">Statistics</h5>
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
... loading statistics ...
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-04-20 16:41:42 +02:00
|
|
|
|
<div class="modal fade" id="modulesModal" 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="modulesModalLabel">Reports from 3rd party services</h5>
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<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-dismiss="modal">Close</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-05-11 19:01:02 +02:00
|
|
|
|
<div class="modal fade" id="emailModal" tabindex="-1" role="dialog">
|
|
|
|
|
<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="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
2020-05-11 19:58:46 +02:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="comment">Please write a comment (optional)</label>
|
|
|
|
|
<textarea class="form-control" name="comment" id=comment rows="3"></textarea>
|
|
|
|
|
</div>
|
2020-05-11 19:01:02 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="submit" class="btn btn-success">Send email</button>
|
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
2017-09-25 15:11:01 +02:00
|
|
|
|
{% endblock content %}
|