diff --git a/website/web/__init__.py b/website/web/__init__.py index 36ef58cf..1f03cd58 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -164,10 +164,14 @@ def hostnode_popup(tree_uuid: str, node_uuid: str): 'font': "/static/font.png", 'html': "/static/html.png", 'json': "/static/json.png", + 'text': "/static/json.png", # FIXME: Need new icon 'iframe': "/static/ifr.png", 'image': "/static/img.png", + 'unset_mimetype': "/static/wtf.png", + 'octet-stream': "/static/wtf.png", 'unknown_mimetype': "/static/wtf.png", 'video': "/static/video.png", + 'livestream': "/static/video.png", 'response_cookie': "/static/cookie_received.png", 'redirect': "/static/redirect.png", 'redirect_to_nothing': "/static/cookie_in_url.png" diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index 414467b8..5b2e46c7 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -83,26 +83,14 @@
Response
+Response (Status code: {{ url['url_object'].response['status'] }})
{{ popup_icons(keys_response, url['url_object'], tree_uuid) }} - {# Response content block #} -Show more information about this embedded content.
-Cookies
- {{ indexed_cookies("This response contains 3rd party cookies:", "Show node sending this cookie", url['cookies_received']['3rd_party']) }} - {{ indexed_cookies("Other cookies sent somewhere else in the capture", "Show node sending this cookie", url['cookies_received']['sent']) }} - {{ indexed_cookies("Other cookies, but never sent", "", url['cookies_received']['not_sent']) }} -This response contains cookies. + +
+Cookies
- {{ indexed_cookies("List of cookies sent in the request", "Show on tree node setting this cookie", url['cookies_sent']) }} +This request contains cookies. + +
+-The same file was seen in {{ total_captures }} other captures. + The same file was seen in {{ total_captures }} other captures. @@ -51,8 +51,8 @@ The same file was seen in {{ total_captures }} other captures. {% endfor %}
This file is loaded multiple times in this capture.
@@ -89,13 +89,17 @@ The same file was seen in {{ total_captures }} other captures. {% for key, path in lookup_dict.items() %} {% if urlnode[key] %} {% if key == "request_cookie" %} - + {% elif key == "response_cookie"%} - + + {% elif key in ["js", "exe", "css", "font", "html", "json", "image", "video", "unknown_mimetype", "text", "unset_mimetype", "octet-stream", "livestream"] and not urlnode.empty_response %} + + + {% else %} {%endif%}