mirror of https://github.com/CIRCL/lookyloo
chg: Fix a bunch of views, make icons clickable.
parent
c7db7829a7
commit
b4e5d1be08
|
@ -164,10 +164,14 @@ def hostnode_popup(tree_uuid: str, node_uuid: str):
|
||||||
'font': "/static/font.png",
|
'font': "/static/font.png",
|
||||||
'html': "/static/html.png",
|
'html': "/static/html.png",
|
||||||
'json': "/static/json.png",
|
'json': "/static/json.png",
|
||||||
|
'text': "/static/json.png", # FIXME: Need new icon
|
||||||
'iframe': "/static/ifr.png",
|
'iframe': "/static/ifr.png",
|
||||||
'image': "/static/img.png",
|
'image': "/static/img.png",
|
||||||
|
'unset_mimetype': "/static/wtf.png",
|
||||||
|
'octet-stream': "/static/wtf.png",
|
||||||
'unknown_mimetype': "/static/wtf.png",
|
'unknown_mimetype': "/static/wtf.png",
|
||||||
'video': "/static/video.png",
|
'video': "/static/video.png",
|
||||||
|
'livestream': "/static/video.png",
|
||||||
'response_cookie': "/static/cookie_received.png",
|
'response_cookie': "/static/cookie_received.png",
|
||||||
'redirect': "/static/redirect.png",
|
'redirect': "/static/redirect.png",
|
||||||
'redirect_to_nothing': "/static/cookie_in_url.png"
|
'redirect_to_nothing': "/static/cookie_in_url.png"
|
||||||
|
|
|
@ -83,26 +83,14 @@
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
<li class="list-group-item">
|
<li class="list-group-item">
|
||||||
{# Details of the response #}
|
{# Details of the response #}
|
||||||
<p class="h4">Response</p>
|
<p class="h4">Response <small>(Status code: {{ url['url_object'].response['status'] }})</small></p>
|
||||||
{{ popup_icons(keys_response, url['url_object'], tree_uuid) }}
|
{{ popup_icons(keys_response, url['url_object'], tree_uuid) }}
|
||||||
|
|
||||||
{# Response content block #}
|
{% if url['url_object'].empty_response %}
|
||||||
<div>
|
Empty body.
|
||||||
{% if not url['url_object'].empty_response %}
|
|
||||||
{# Download content #}
|
|
||||||
<a href="{{ url_for('urlnode_details', tree_uuid=tree_uuid, node_uuid=url['url_object'].uuid) }}">
|
|
||||||
Download response body.
|
|
||||||
</a></br>
|
|
||||||
Body size: {{ sizeof_fmt(url['url_object'].body.getbuffer().nbytes) }}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
Empty body.
|
Body size: {{ sizeof_fmt(url['url_object'].body.getbuffer().nbytes) }}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
</div>
|
|
||||||
|
|
||||||
{# Status code of the response #}
|
|
||||||
<div>
|
|
||||||
Status Code: {{ url['url_object'].response['status'] }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if url['sane_js'] %}
|
{% if url['sane_js'] %}
|
||||||
{# Result from SaneJS for the response #}
|
{# Result from SaneJS for the response #}
|
||||||
|
@ -126,7 +114,7 @@
|
||||||
Show more information about this response body.
|
Show more information about this response body.
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if url['embedded_ressources'] %}
|
{% if url['embedded_ressources'] %}
|
||||||
|
@ -156,7 +144,7 @@
|
||||||
<p><a href="{{ url_for('body_hash_details', body_hash=url['url_object'].body_hash) }}">
|
<p><a href="{{ url_for('body_hash_details', body_hash=url['url_object'].body_hash) }}">
|
||||||
Show more information about this embedded content.
|
Show more information about this embedded content.
|
||||||
</a></p>
|
</a></p>
|
||||||
<div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -164,11 +152,19 @@
|
||||||
|
|
||||||
{% if url['cookies_received'] %}
|
{% if url['cookies_received'] %}
|
||||||
<div>
|
<div>
|
||||||
<p class="h5">Cookies</p>
|
<p class="h5">This response contains cookies.
|
||||||
{{ indexed_cookies("This response contains 3rd party cookies:", "Show node sending this cookie", url['cookies_received']['3rd_party']) }}
|
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#response_cookies_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample">
|
||||||
{{ indexed_cookies("Other cookies sent somewhere else in the capture", "Show node sending this cookie", url['cookies_received']['sent']) }}
|
Show all cookies received.
|
||||||
{{ indexed_cookies("Other cookies, but never sent", "", url['cookies_received']['not_sent']) }}
|
</button>
|
||||||
<div>
|
</p>
|
||||||
|
<div class="collapse" id="response_cookies_full_list_{{ url['url_object'].uuid }}">
|
||||||
|
<div class="card card-body">
|
||||||
|
{{ indexed_cookies("This response contains 3rd party cookies:", "Show node sending this cookie", url['cookies_received']['3rd_party']) }}
|
||||||
|
{{ indexed_cookies("Cookies, sent somewhere in the capture", "Show node sending this cookie", url['cookies_received']['sent']) }}
|
||||||
|
{{ indexed_cookies("Cookies, never sent", "", url['cookies_received']['not_sent']) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@ -185,8 +181,16 @@
|
||||||
|
|
||||||
{% if url['cookies_sent'] %}
|
{% if url['cookies_sent'] %}
|
||||||
<div>
|
<div>
|
||||||
<p class="h5">Cookies</p>
|
<p class="h5">This request contains cookies.
|
||||||
{{ indexed_cookies("List of cookies sent in the request", "Show on tree node setting this cookie", url['cookies_sent']) }}
|
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#request_cookies_full_list_{{ url['url_object'].uuid }}" aria-expanded="false" aria-controls="collapseExample">
|
||||||
|
Show all cookies sent.
|
||||||
|
</button>
|
||||||
|
</p>
|
||||||
|
<div class="collapse" id="request_cookies_full_list_{{ url['url_object'].uuid }}">
|
||||||
|
<div class="card card-body">
|
||||||
|
{{ indexed_cookies("List of cookies sent in the request", "Show on tree node setting this cookie", url['cookies_sent']) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
{# Only show details if the hits are in an other capture #}
|
{# Only show details if the hits are in an other capture #}
|
||||||
{% if total_captures > 0 %}
|
{% if total_captures > 0 %}
|
||||||
<p>
|
<p>
|
||||||
The same file was seen in <b>{{ total_captures }}</b> other captures.
|
The same file was seen in <b>{{ total_captures }}</b> other captures.
|
||||||
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#captureslist_{{ identifier_for_toggle }}" aria-expanded="false" aria-controls="collapseExample">
|
<button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#captureslist_{{ identifier_for_toggle }}" aria-expanded="false" aria-controls="collapseExample">
|
||||||
Toggle list.
|
Toggle list.
|
||||||
</button>
|
</button>
|
||||||
|
@ -51,8 +51,8 @@ The same file was seen in <b>{{ total_captures }}</b> other captures.
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>This file is loaded multiple times in this capture.</p>
|
<p>This file is loaded multiple times in this capture.</p>
|
||||||
|
@ -89,13 +89,17 @@ The same file was seen in <b>{{ total_captures }}</b> other captures.
|
||||||
{% for key, path in lookup_dict.items() %}
|
{% for key, path in lookup_dict.items() %}
|
||||||
{% if urlnode[key] %}
|
{% if urlnode[key] %}
|
||||||
{% if key == "request_cookie" %}
|
{% if key == "request_cookie" %}
|
||||||
<a href="{{ url_for('urlnode_request_cookies', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}">
|
<a href="{{ url_for('urlnode_request_cookies', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="Download all the cookies in the request to the server">
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
</a>
|
</a>
|
||||||
{% elif key == "response_cookie"%}
|
{% elif key == "response_cookie"%}
|
||||||
<a href="{{ url_for('urlnode_response_cookies', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}">
|
<a href="{{ url_for('urlnode_response_cookies', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="Download all the cookies in the response from the server">
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
</a>
|
</a>
|
||||||
|
{% elif key in ["js", "exe", "css", "font", "html", "json", "image", "video", "unknown_mimetype", "text", "unset_mimetype", "octet-stream", "livestream"] and not urlnode.empty_response %}
|
||||||
|
<a href="{{ url_for('urlnode_details', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="Download the content of the response">
|
||||||
|
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
{%endif%}
|
{%endif%}
|
||||||
|
|
Loading…
Reference in New Issue