mirror of https://github.com/CIRCL/lookyloo
chg: Improve hostnode popup
parent
48f370f471
commit
9f84b26ffe
|
@ -129,7 +129,7 @@
|
||||||
{% if details and details[0] == False %}
|
{% if details and details[0] == False %}
|
||||||
<img src="/static/bomb.svg" title="Known malicious content in the response." width="21" height="21"/>
|
<img src="/static/bomb.svg" title="Known malicious content in the response." width="21" height="21"/>
|
||||||
{%endif%}
|
{%endif%}
|
||||||
Body size: {{ sizeof_fmt(ressource_size) }}
|
<b>Body size</b>: {{ sizeof_fmt(ressource_size) }}
|
||||||
{% if details %}
|
{% if details %}
|
||||||
{% if details[0] %}
|
{% if details[0] %}
|
||||||
- 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]) }}.
|
||||||
|
@ -258,22 +258,26 @@ Body size: {{ sizeof_fmt(ressource_size) }}
|
||||||
<a href="{{ url_for('get_ressource', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="Download the content of the response">
|
<a href="{{ url_for('get_ressource', tree_uuid=tree_uuid, node_uuid=urlnode.uuid) }}" title="Download the content of the response">
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
</a>
|
</a>
|
||||||
{% elif key == "redirect" %}
|
{% elif key != "redirect" %}
|
||||||
|
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
|
{%endif%}
|
||||||
|
{%endif%}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{% if "redirect" in lookup_dict and urlnode["redirect"] %}
|
||||||
{% for child in urlnode.children if child.name == urlnode.redirect_url %}
|
{% for child in urlnode.children if child.name == urlnode.redirect_url %}
|
||||||
|
<div title='{{ urlnode.redirect_url }}'>
|
||||||
|
<b>Redirect to</b>: {{ shorten_string(urlnode.redirect_url, 50) }}
|
||||||
<a href="#/" role="button" onclick="whereAmI('{{ child.hostnode_uuid }}')" title="See the node the URL redirects to.">
|
<a href="#/" role="button" onclick="whereAmI('{{ child.hostnode_uuid }}')" title="See the node the URL redirects to.">
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
<img src="{{ lookup_dict['redirect'] }}" alt="{{ key }}" width="21" height="21"/>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
<img src="{{ lookup_dict['redirect'] }}" alt="redirect" width="21" height="21"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if urlnode.redirect_url %}
|
|
||||||
<div title='{{ urlnode.redirect_url }}'>Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }}</div>
|
|
||||||
{%endif%}
|
{%endif%}
|
||||||
{% else %}
|
|
||||||
<img src="{{ path }}" alt="{{ key }}" width="21" height="21"/>
|
|
||||||
{%endif%}
|
|
||||||
{%endif%}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue