mirror of https://github.com/CIRCL/lookyloo
new: Use rendered HTML
parent
67df249a01
commit
2b237a7416
|
@ -565,10 +565,11 @@ class Lookyloo():
|
||||||
with open((capture_dir / 'uuid'), 'r') as f:
|
with open((capture_dir / 'uuid'), 'r') as f:
|
||||||
uuid = f.read()
|
uuid = f.read()
|
||||||
har_files = sorted(capture_dir.glob('*.har'))
|
har_files = sorted(capture_dir.glob('*.har'))
|
||||||
|
html_files = sorted(capture_dir.glob('*.html'))
|
||||||
# NOTE: We only index the public captures
|
# NOTE: We only index the public captures
|
||||||
index = True
|
index = True
|
||||||
try:
|
try:
|
||||||
ct = CrawledTree(har_files, uuid)
|
ct = CrawledTree(zip(har_files, html_files), uuid)
|
||||||
if self.is_public_instance:
|
if self.is_public_instance:
|
||||||
cache = self.capture_cache(capture_uuid)
|
cache = self.capture_cache(capture_uuid)
|
||||||
if cache.get('no_index') is not None:
|
if cache.get('no_index') is not None:
|
||||||
|
|
|
@ -179,7 +179,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ ressource_legitimacy_details(details['legitimacy'], details['body_size']) }}
|
{{ ressource_legitimacy_details(details['legitimacy'], details['body_size']) }}
|
||||||
<div>
|
<div>
|
||||||
This file (<b>{{ details['type'] }}</b>) can be found <b>{{ details['hash_freq'] }}</b> times
|
This file {% if details['type'] %}(<b>{{ details['type'] }}</b>){% endif %} can be found <b>{{ details['hash_freq'] }}</b> times
|
||||||
across all the captures on this lookyloo instance, in <b>{{ details['hash_domains_freq'] }}</b> unique domains.
|
across all the captures on this lookyloo instance, in <b>{{ details['hash_domains_freq'] }}</b> unique domains.
|
||||||
{{ get_ressource_button(tree_uuid, url['url_object'].uuid, hash, 'Download the embedded ressource') }}
|
{{ get_ressource_button(tree_uuid, url['url_object'].uuid, hash, 'Download the embedded ressource') }}
|
||||||
</br>
|
</br>
|
||||||
|
|
|
@ -73,6 +73,7 @@ Body size: {{ sizeof_fmt(ressource_size) }}
|
||||||
- This file is known <b>legitimate</b> on the following domains: {{ ', '.join(details[1]) }}.
|
- This file is known <b>legitimate</b> on the following domains: {{ ', '.join(details[1]) }}.
|
||||||
{% elif details[0] == False %}
|
{% elif details[0] == False %}
|
||||||
</br>
|
</br>
|
||||||
|
<p>
|
||||||
The response sould be considered as
|
The response sould be considered as
|
||||||
{% if details[1] is mapping and details[1].get('tag') %}
|
{% if details[1] is mapping and details[1].get('tag') %}
|
||||||
<b>{{ ', '.join(details[1]['tag']) }}</b>
|
<b>{{ ', '.join(details[1]['tag']) }}</b>
|
||||||
|
@ -84,7 +85,7 @@ Body size: {{ sizeof_fmt(ressource_size) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
unless it is served by <b>the following domain(s)</b>: {{ ', '.join(details[1]) }}
|
unless it is served by <b>the following domain(s)</b>: {{ ', '.join(details[1]) }}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
</br>
|
</p>
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
Loading…
Reference in New Issue