From bbb3a39187aba80326119e59f27677d0e9ae49e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 27 Feb 2024 15:29:35 +0100 Subject: [PATCH] chg: Improve tables on tree and in popup --- lookyloo/lookyloo.py | 1 + website/web/templates/favicon_details.html | 14 ++++++-- website/web/templates/historical_lookups.html | 29 +++++++++++---- website/web/templates/hostname_popup.html | 25 ++----------- website/web/templates/macros.html | 35 +++++++++++++++---- website/web/templates/tree_body_hashes.html | 1 + 6 files changed, 66 insertions(+), 39 deletions(-) diff --git a/lookyloo/lookyloo.py b/lookyloo/lookyloo.py index f92439e1..15471e93 100644 --- a/lookyloo/lookyloo.py +++ b/lookyloo/lookyloo.py @@ -1081,6 +1081,7 @@ class Lookyloo(): else: mimetype = '' b64_favicon = '' + mmh3_shodan = '' # For now, there is only one probabilistic hash algo for favicons, keeping it simple probabilistic_hash_algos = ['mmh3-shodan'] diff --git a/website/web/templates/favicon_details.html b/website/web/templates/favicon_details.html index e5682d8f..a860f43c 100644 --- a/website/web/templates/favicon_details.html +++ b/website/web/templates/favicon_details.html @@ -2,9 +2,17 @@ @@ -32,8 +40,8 @@ - - {{ shorten_string(landing_page, 300) }} + + {{ landing_page }} diff --git a/website/web/templates/historical_lookups.html b/website/web/templates/historical_lookups.html index d4fddaee..8738c2e0 100644 --- a/website/web/templates/historical_lookups.html +++ b/website/web/templates/historical_lookups.html @@ -6,7 +6,15 @@ {%else%} {% if circl_pdns %}
@@ -26,7 +34,7 @@ Last seen RR Type R Data - RR Name + RR Name {%for response in responses %} @@ -34,8 +42,8 @@ {{response.time_first_datetime}} {{response.time_last_datetime}} {{response.rrtype}} - {{response.rdata}} - {{response.rrname}} + {{response.rdata}} + {{response.rrname}} {% endfor %} @@ -46,7 +54,14 @@ {% if riskiq %}

RiskIQ

@@ -59,7 +74,7 @@ First seen Last seen Type - Resolve + Resolve {% for entry in riskiq['results'] %} @@ -67,7 +82,7 @@ {{entry['firstSeen']}} {{entry['lastSeen']}} {{entry['recordType']}} - {{entry['resolve']}} + {{entry['resolve']}} {% endfor %} diff --git a/website/web/templates/hostname_popup.html b/website/web/templates/hostname_popup.html index 598a4b5f..3e3dedfe 100644 --- a/website/web/templates/hostname_popup.html +++ b/website/web/templates/hostname_popup.html @@ -15,27 +15,6 @@ {% block scripts %} {{ super() }} - +
+ diff --git a/website/web/templates/tree_body_hashes.html b/website/web/templates/tree_body_hashes.html index 7e754487..acfc702e 100644 --- a/website/web/templates/tree_body_hashes.html +++ b/website/web/templates/tree_body_hashes.html @@ -1,5 +1,6 @@
Title