Merge remote-tracking branch 'origin/topic/jsiwek/gh-1264-ssh-host-key-fingerprints' into master

* origin/topic/jsiwek/gh-1264-ssh-host-key-fingerprints:
  Simply ssh/main.zeek by using "ssh_server_host_key" for fingerprinting
  Deprecate "ssh1_server_host_key" parameters *e* and *p*
  GH-1264: Implement "ssh_server_host_key" event
This commit is contained in:
Jon Siwek 2020-11-16 11:22:00 -08:00
commit 02c0b33b54
12 changed files with 140 additions and 43 deletions

View file

@ -0,0 +1,19 @@
# @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;
}