Skip to content

Commit

Permalink
Fixed hassh fingerprint key
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowMan02 committed Nov 5, 2024
1 parent cffe1b3 commit 1298f5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions scripts/locales/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ local lang = {
["client_count"] = "Clients Contacts",
["client_fingerprint"] = "Client Fingerprint",
["client_fingerprint_type"] = "Type",
["client_hash.hassh"] = "HASSH Client Fingerprint",
["hassh_client_hash"] = "HASSH Client Fingerprint",
["client_name"] = "Client Name",
["client_requested_server_name"] = "Requested Server Name",
["client_server"] = "Client / Server",
Expand Down Expand Up @@ -633,7 +633,7 @@ local lang = {
["serial"] = "Serial",
["server"] = "Server",
["server_count"] = "Contacted Servers",
["server_hash.hassh"] = "HASSH Server Fingerprint",
["hassh_server_hash"] = "HASSH Server Fingerprint",
["server_name"] = "Server Name",
["server_names"] = "Server Names",
["server_ports_analysis"] = "Server Ports Analysis",
Expand Down
8 changes: 4 additions & 4 deletions scripts/lua/modules/lua_utils_gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1213,14 +1213,14 @@ function format_ssh_info(ssh_info)
if not isEmptyString(ssh_info["client_signature"]) then
formatted_ssh_info["client_signature"] = string.format('<span>%s</span>', ssh_info["client_signature"])
end
if not isEmptyString(ssh_info["client_hash.hassh"]) then
formatted_ssh_info["client_hash.hassh"] = string.format('<span>%s</span>', ssh_info["client_hash.hassh"])
if not isEmptyString(ssh_info["hassh_client_hash"]) then
formatted_ssh_info["hassh_client_hash"] = string.format('<span>%s</span>', ssh_info["hassh_client_hash"])
end
if not isEmptyString(ssh_info["server_signature"]) then
formatted_ssh_info["server_signature"] = string.format('<span>%s</span>', ssh_info["server_signature"])
end
if not isEmptyString(ssh_info["server_hash.hassh"]) then
formatted_ssh_info["server_hash.hassh"] = string.format('<span>%s</span>', ssh_info["server_hash.hassh"])
if not isEmptyString(ssh_info["hassh_server_hash"]) then
formatted_ssh_info["hassh_server_hash"] = string.format('<span>%s</span>', ssh_info["hassh_server_hash"])
end

return formatted_ssh_info
Expand Down
4 changes: 2 additions & 2 deletions src/Flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7667,10 +7667,10 @@ void Flow::getSSHInfo(ndpi_serializer *serializer) const {
protos.ssh.server_signature);

if (protos.ssh.hassh.client_hash)
ndpi_serialize_string_string(serializer, "client_hash.hassh",
ndpi_serialize_string_string(serializer, "hassh_client_hash",
protos.ssh.hassh.client_hash);
if (protos.ssh.hassh.server_hash)
ndpi_serialize_string_string(serializer, "server_hash.hassh",
ndpi_serialize_string_string(serializer, "hassh_server_hash",
protos.ssh.hassh.server_hash);
}
}
Expand Down

0 comments on commit 1298f5b

Please sign in to comment.