mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

They are named such that *e* is actually the modulus, not the exponent. The replacement parameters are named *exponent* and *modulus* for clarity.
19 lines
517 B
Text
19 lines
517 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", md5_hash(key);
|
|
}
|
|
|
|
event ssh1_server_host_key(c: connection, modulus: string, exponent: string)
|
|
{
|
|
print "ssh1 server host key fingerprint", md5_hash(modulus + exponent);
|
|
}
|
|
|
|
event ssh_server_host_key(c: connection, hash: string)
|
|
{
|
|
print "ssh server host key fingerprint", hash;
|
|
}
|