new: show IDNA decoded hostname if possible

pull/829/head
Raphaël Vinot 2023-11-07 20:49:21 +01:00
parent 175f4b51e5
commit f416851f16
3 changed files with 16 additions and 14 deletions

22
poetry.lock generated
View File

@ -1022,13 +1022,13 @@ tornado = ["tornado (>=0.2)"]
[[package]]
name = "har2tree"
version = "1.22.0"
version = "1.22.1"
description = "HTTP Archive (HAR) to ETE Toolkit generator"
optional = false
python-versions = ">=3.8,<3.13"
files = [
{file = "har2tree-1.22.0-py3-none-any.whl", hash = "sha256:7c62410695c7519ff02edf816076d63e18a524f94efd218a496d21a3c0d7805c"},
{file = "har2tree-1.22.0.tar.gz", hash = "sha256:059cd570c31b8cd7813873c81caaa9e875d054a9f3ef9e107c974cd90934b423"},
{file = "har2tree-1.22.1-py3-none-any.whl", hash = "sha256:72c6c843c89ba9d3416647fd3446fce85b93483e5a9c9ecfa8497148cf6b24fe"},
{file = "har2tree-1.22.1.tar.gz", hash = "sha256:399e795ca1823c7839376e051c7f506a4f54b398dd8cff2c07b4df12b97e7dd9"},
]
[package.dependencies]
@ -1040,7 +1040,7 @@ numpy = [
{version = "<1.25", markers = "python_version < \"3.9\""},
{version = ">=1.25.2,<2.0.0", markers = "python_version >= \"3.9\""},
]
publicsuffixlist = ">=0.10.0.20231002,<0.11.0.0"
publicsuffixlist = ">=0.10.0.20231105,<0.11.0.0"
w3lib = ">=2.1.2,<3.0.0"
[package.extras]
@ -1176,13 +1176,13 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs
[[package]]
name = "importlib-resources"
version = "6.1.0"
version = "6.1.1"
description = "Read resources from Python packages"
optional = false
python-versions = ">=3.8"
files = [
{file = "importlib_resources-6.1.0-py3-none-any.whl", hash = "sha256:aa50258bbfa56d4e33fbd8aa3ef48ded10d1735f11532b8df95388cc6bdb7e83"},
{file = "importlib_resources-6.1.0.tar.gz", hash = "sha256:9d48dcccc213325e810fd723e7fbb45ccb39f6cf5c31f00cf2b965f5f10f3cb9"},
{file = "importlib_resources-6.1.1-py3-none-any.whl", hash = "sha256:e8bf90d8213b486f428c9c39714b920041cb02c184686a3dee24905aaa8105d6"},
{file = "importlib_resources-6.1.1.tar.gz", hash = "sha256:3893a00122eafde6894c59914446a512f728a0c1a45f9bb9b63721b6bacf0b4a"},
]
[package.dependencies]
@ -2889,13 +2889,13 @@ files = [
[[package]]
name = "types-redis"
version = "4.6.0.9"
version = "4.6.0.10"
description = "Typing stubs for redis"
optional = false
python-versions = ">=3.7"
files = [
{file = "types-redis-4.6.0.9.tar.gz", hash = "sha256:06ac31ed7b23aae2d230a62e4bf7d0037aee10ab9f68eee261ac8be8402daf92"},
{file = "types_redis-4.6.0.9-py3-none-any.whl", hash = "sha256:12fb29ff019b62998b17bb086cff260e625477db1a17bfca6bae0f43ab3447a5"},
{file = "types-redis-4.6.0.10.tar.gz", hash = "sha256:aa7fb5f743534500f274ddf11ab1c910aae1020481865a36b799e1d67de2aaf3"},
{file = "types_redis-4.6.0.10-py3-none-any.whl", hash = "sha256:00f003da884ec3d1d54633186b4cbd587b39782595c5603330cc46a51f9bcf6e"},
]
[package.dependencies]
@ -3287,4 +3287,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p
[metadata]
lock-version = "2.0"
python-versions = ">=3.8,<3.12"
content-hash = "c3c97926df4e1aa49db5e8c01499a857216e29883d78d58acbf762315fc36585"
content-hash = "a810b88c3109f2e217019f6f9e13f7e9e4cb748a8a2c1ebe28a73937f7d1b711"

View File

@ -60,7 +60,7 @@ pyhashlookup = "^1.2.1"
lief = "^0.13.2"
ua-parser = "^0.18.0"
Flask-Login = "^0.6.3"
har2tree = "^1.22.0"
har2tree = "^1.22.1"
passivetotal = "^2.5.9"
werkzeug = "^2.3.7"
filetype = "^1.2.0"
@ -90,7 +90,7 @@ types-requests = [
{version = "<2.31", python = "<3.10"},
{version = "^2.31.0.10", python = ">=3.10"}
]
types-redis = {version = "^4.6.0.9"}
types-redis = {version = "^4.6.0.10"}
types-pkg-resources = "^0.1.3"
types-Deprecated = "^1.2.9.3"
types-python-dateutil = "^2.8.19.14"

View File

@ -101,7 +101,9 @@
{% block content %}
{# Headers #}
<center>
<h3>{{ hostnode.name }}</h3>
<h3>{{ hostnode.name }}</h3>
{% if hostnode.idna %}<h4>({{hostnode.idna}})</h4>{% endif %}
</br>
<button type="button" class="btn btn-primary" onclick="whereAmI('{{ hostnode_uuid }}')">Locate in tree</button>
{% if uwhois_available %}
<a href="{{ url_for('whois', query=hostnode.name) }}" class="btn btn-primary" role="button">