mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix JA3 and JA4 serialization + Add JA4_c_hash filter
This commit is contained in:
parent
96ff6dd32b
commit
24e81d3ef9
7 changed files with 48 additions and 30 deletions
|
|
@ -1129,27 +1129,34 @@ function format_tls_info(tls_info)
|
|||
end
|
||||
end
|
||||
|
||||
if tls_info["ja3.server_cipher"] then
|
||||
tls_info["ja3.server_cipher"] = nil
|
||||
if tls_info["ja3_server_cipher"] then
|
||||
tls_info["ja3_server_cipher"] = nil
|
||||
end
|
||||
|
||||
if tls_info["ja3.server_unsafe_cipher"] then
|
||||
local badge = get_badge(tls_info["ja3.server_unsafe_cipher"] == "safe")
|
||||
tls_info["ja3.server_unsafe_cipher"] = string.format('<span class="badge bg-%s">%s</span>', badge,
|
||||
tls_info["ja3.server_unsafe_cipher"])
|
||||
if tls_info["ja3_server_unsafe_cipher"] then
|
||||
local badge = get_badge(tls_info["ja3_server_unsafe_cipher"] == "safe")
|
||||
tls_info["ja3_server_unsafe_cipher"] = string.format('<span class="badge bg-%s">%s</span>', badge,
|
||||
tls_info["ja3_server_unsafe_cipher"])
|
||||
end
|
||||
|
||||
if tls_info["ja3.server_hash"] then
|
||||
tls_info["ja3.server_hash"] = i18n("copy_button", {
|
||||
full_name = tls_info["ja3.server_hash"],
|
||||
name = tls_info["ja3.server_hash"]
|
||||
if tls_info["ja3_server_hash"] then
|
||||
tls_info["ja3_server_hash"] = i18n("copy_button", {
|
||||
full_name = tls_info["ja3_client_hash"],
|
||||
name = tls_info["ja3_client_hash"]
|
||||
})
|
||||
end
|
||||
|
||||
if tls_info["ja3.client_hash"] then
|
||||
tls_info["ja3.client_hash"] = i18n("copy_button", {
|
||||
full_name = tls_info["ja3.client_hash"],
|
||||
name = tls_info["ja3.client_hash"]
|
||||
if tls_info["ja3_client_hash"] then
|
||||
tls_info["ja3_client_hash"] = i18n("copy_button", {
|
||||
full_name = tls_info["ja3_client_hash"],
|
||||
name = tls_info["ja3_client_hash"]
|
||||
})
|
||||
end
|
||||
|
||||
if tls_info["ja4_client_hash"] then
|
||||
tls_info["ja4_client_hash"] = i18n("copy_button", {
|
||||
full_name = tls_info["ja4_client_hash"],
|
||||
name = tls_info["ja4_client_hash"]
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue