mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
GH-1264: Implement "ssh_server_host_key" event
This event provides host key fingerprints for both SSH1 and SSH2.
This commit is contained in:
parent
93469d811d
commit
bd40a97a78
8 changed files with 97 additions and 16 deletions
19
testing/btest/scripts/base/protocols/ssh/fingerprints.zeek
Normal file
19
testing/btest/scripts/base/protocols/ssh/fingerprints.zeek
Normal 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, p: string, e: string)
|
||||
{
|
||||
print "ssh1 server host key fingerprint", md5_hash(e + p);
|
||||
}
|
||||
|
||||
event ssh_server_host_key(c: connection, hash: string)
|
||||
{
|
||||
print "ssh server host key fingerprint", hash;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue