diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index 9c750d26..f77a21c5 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -565,10 +565,11 @@ class Lookyloo(): with open((capture_dir / 'uuid'), 'r') as f: uuid = f.read() har_files = sorted(capture_dir.glob('*.har')) + html_files = sorted(capture_dir.glob('*.html')) # NOTE: We only index the public captures index = True try: - ct = CrawledTree(har_files, uuid) + ct = CrawledTree(zip(har_files, html_files), uuid) if self.is_public_instance: cache = self.capture_cache(capture_uuid) if cache.get('no_index') is not None: diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index 419311f3..67503d0a 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -179,7 +179,7 @@ {% endif %} {{ ressource_legitimacy_details(details['legitimacy'], details['body_size']) }}
- This file ({{ details['type'] }}) can be found {{ details['hash_freq'] }} times + This file {% if details['type'] %}({{ details['type'] }}){% endif %} can be found {{ details['hash_freq'] }} times across all the captures on this lookyloo instance, in {{ details['hash_domains_freq'] }} unique domains. {{ get_ressource_button(tree_uuid, url['url_object'].uuid, hash, 'Download the embedded ressource') }}
diff --git a/website/web/templates/macros.html b/website/web/templates/macros.html index 38753934..71693e44 100644 --- a/website/web/templates/macros.html +++ b/website/web/templates/macros.html @@ -73,6 +73,7 @@ Body size: {{ sizeof_fmt(ressource_size) }} - This file is known legitimate on the following domains: {{ ', '.join(details[1]) }}. {% elif details[0] == False %}
+

The response sould be considered as {% if details[1] is mapping and details[1].get('tag') %} {{ ', '.join(details[1]['tag']) }} @@ -84,7 +85,7 @@ Body size: {{ sizeof_fmt(ressource_size) }} {% else %} unless it is served by the following domain(s): {{ ', '.join(details[1]) }} {%endif%} -
+

{%endif%} {%endif%} {% endmacro %}