zeek/testing/btest/scripts/base/protocols/ssh/fingerprints.zeek
Benjamin Bannier 2bfaab603d Remove unneeded test usage of md5
MD5 is not FIPS compliant and we do not need to use it in the majority
of tests. Replace them where not explicitly needed.

(cherry picked from commit 3291846ae8e13e05c6554d0029c25a99fd6b5a10)
2024-06-19 11:20:57 +02:00

19 lines
518 B
Text

# @TEST-EXEC: zeek -r $TRACES/ssh/ssh1-ssh2-fingerprints.pcap %INPUT >out
# @TEST-EXEC: btest-diff out
@load base/protocols/ssh
event ssh2_server_host_key(c: connection, key: string)
{
print "ssh2 server host key fingerprint", sha1_hash(key);
}
event ssh1_server_host_key(c: connection, modulus: string, exponent: string)
{
print "ssh1 server host key fingerprint", sha1_hash(modulus + exponent);
}
event ssh_server_host_key(c: connection, hash: string)
{
print "ssh server host key fingerprint", hash;
}