From df8f238152283291bc6e54bc461b4166457bc6c9 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Fri, 28 Jun 2024 17:32:18 -0700 Subject: [PATCH] Include raw hostkey bytes in debug output --- src/ssh_audit/hostkeytest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssh_audit/hostkeytest.py b/src/ssh_audit/hostkeytest.py index 094b2b7..b4dfe0b 100644 --- a/src/ssh_audit/hostkeytest.py +++ b/src/ssh_audit/hostkeytest.py @@ -157,6 +157,7 @@ class HostKeyTest: ca_key_type = kex_group.get_ca_type() ca_modulus_size = kex_group.get_ca_size() out.d("Hostkey type: [%s]; hostkey size: %u; CA type: [%s]; CA modulus size: %u" % (host_key_type, hostkey_modulus_size, ca_key_type, ca_modulus_size), write_now=True) + out.d("Raw hostkey bytes (%d): [%s]" % (len(raw_hostkey_bytes), raw_hostkey_bytes.hex()), write_now=True) # Record all the host key info. server_kex.set_host_key(host_key_type, raw_hostkey_bytes, hostkey_modulus_size, ca_key_type, ca_modulus_size)