mirror of https://github.com/CIRCL/lookyloo
Add landing page to favicon page
parent
8b2f875436
commit
95a660cbda
|
@ -1046,10 +1046,10 @@ class Lookyloo():
|
||||||
for domain, freq in self.indexing.get_cookie_domains(cookie_name)]
|
for domain, freq in self.indexing.get_cookie_domains(cookie_name)]
|
||||||
return captures, domains
|
return captures, domains
|
||||||
|
|
||||||
def get_favicon_investigator(self, favicon_sha512: str, /) -> tuple[list[tuple[str, str]], bytes | None]:
|
def get_favicon_investigator(self, favicon_sha512: str, /) -> tuple[list[tuple[str, str, str]], bytes | None]:
|
||||||
'''Returns all the captures related to a cookie name entry, used in the web interface.'''
|
'''Returns all the captures related to a cookie name entry, used in the web interface.'''
|
||||||
cached_captures = self.sorted_capture_cache([uuid for uuid in self.indexing.get_captures_favicon(favicon_sha512)])
|
cached_captures = self.sorted_capture_cache([uuid for uuid in self.indexing.get_captures_favicon(favicon_sha512)])
|
||||||
captures = [(cache.uuid, cache.title) for cache in cached_captures]
|
captures = [(cache.uuid, cache.title, cache.redirects[-1]) for cache in cached_captures]
|
||||||
favicon = self.indexing.get_favicon(favicon_sha512)
|
favicon = self.indexing.get_favicon(favicon_sha512)
|
||||||
return captures, favicon
|
return captures, favicon
|
||||||
|
|
||||||
|
|
|
@ -16,16 +16,20 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Capture Title</th>
|
<th>Capture Title</th>
|
||||||
|
<th>Landing page</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for capture_uuid, title in captures %}
|
{% for capture_uuid, title, landing_page in captures %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}">
|
<a href="{{ url_for('tree', tree_uuid=capture_uuid) }}">
|
||||||
{{ title }}
|
{{ title }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{{landing_page}}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{% from 'bootstrap5/utils.html' import render_messages %}
|
{% from 'bootstrap5/utils.html' import render_messages %}
|
||||||
|
|
||||||
{% block title %}HTTP Headers Hashes lookup{% endblock %}
|
{% block title %}Favicons lookup{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
Loading…
Reference in New Issue