lookyloo/website/web/templates/hostname_popup.html

91 lines
3.3 KiB
HTML
Raw Normal View History

2020-05-18 18:35:20 +02:00
{% extends "main.html" %}
{% block title %}Details for {{ hostname }} {% endblock %}
2020-05-18 18:35:20 +02:00
{% block scripts %}
<script>
function whereAmI() {
window.opener.ProcessChildMessage("{{ hostname_uuid }}");
};
</script>
{% endblock %}
{% block content %}
<center>
<h3>{{ hostname }}</h3>
<button type="button" class="btn btn-info" onclick="whereAmI()">Locate node on tree</button>
2020-05-20 19:11:15 +02:00
<a href="{{ url_for('hostnode_details_text', tree_uuid=tree_uuid, node_uuid=hostname_uuid) }}" class="btn btn-info" role="button">Get URLs as text</a>
</center>
<p>Click on the URL to get the content of the response</p>
2020-05-22 17:36:22 +02:00
<ul class="list-group-flush">
2020-05-23 03:37:24 +02:00
{% for url in urls %}
<li class="list-group-item">
<p class="h3">{{ url.name }}</p>
<ul class="list-group">
<li class="list-group-item">
<p class="h4">Response</p>
<div>
{% for key, path in keys_response.items() %}
{% if url[key] %}
2020-05-26 17:45:04 +02:00
{% if key == "response_cookie" %}
<a href="{{ url_for('urlnode_response_cookies', tree_uuid=tree_uuid, node_uuid=url.uuid) }}">
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
</a>
{% else %}
2020-05-23 03:37:24 +02:00
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
2020-05-26 17:45:04 +02:00
{%endif%}
2020-05-22 17:36:22 +02:00
{%endif%}
2020-05-23 03:37:24 +02:00
{% endfor %}
</div>
{% if not url.empty_response %}
<div>
<a href="{{ url_for('urlnode_details', tree_uuid=tree_uuid, node_uuid=url.uuid) }}">
Download response body.
</a></br>
Body size: {{ sizeof_fmt(url.body.getbuffer().nbytes) }}
</div>
{% else %}
Empty body.
2020-05-22 17:36:22 +02:00
{%endif%}
2020-05-23 03:37:24 +02:00
{% if url.sane_js_details_to_print %}
<div>
{% if url.sane_js_details_to_print is string %}
{{ url.sane_js_details_to_print }}
{% else %}
This file is known as part of <b>{{ url.sane_js_details_to_print[0] }}</b>
version <b>{{ url.sane_js_details_to_print[1] }}</b>: <b>{{ url.sane_js_details_to_print[2] }}</b>.
{% if url.sane_js_details_to_print[3] > 1%}
It is also present in <b>{{ url.sane_js_details_to_print[3] -1 }}</b> other libraries.
{%endif%}
{%endif%}
</div>
{% endif %}
</li>
<li class="list-group-item">
<p class="h4">Request</p>
<div>
{% for key, path in keys_request.items() %}
{% if url[key] %}
2020-05-26 17:45:04 +02:00
{% if key == "request_cookie" %}
<a href="{{ url_for('urlnode_request_cookies', tree_uuid=tree_uuid, node_uuid=url.uuid) }}">
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
</a>
{% else %}
2020-05-23 03:37:24 +02:00
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
2020-05-26 17:45:04 +02:00
{%endif%}
2020-05-23 03:37:24 +02:00
{%endif%}
{% endfor %}
</div>
{% if url.posted_data %}
<a href="{{ url_for('urlnode_post_request', tree_uuid=tree_uuid, node_uuid=url.uuid) }}">
Download posted data
</a></br>
Posted data size: {{ sizeof_fmt(url.posted_data|length) }}
{% endif %}
</li>
</ul>
</li>
{% endfor %}
2020-05-22 17:36:22 +02:00
</ul>
2020-05-18 18:35:20 +02:00
{% endblock %}