mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
spicy-redis: Add some commands and touch up parsing
This commit is contained in:
parent
22bda56af3
commit
f0e9f46c7c
21 changed files with 200 additions and 114 deletions
16
testing/btest/scripts/base/protocols/redis/auth.zeek
Normal file
16
testing/btest/scripts/base/protocols/redis/auth.zeek
Normal file
|
@ -0,0 +1,16 @@
|
|||
# @TEST-DOC: Test Zeek with AUTH commands
|
||||
#
|
||||
# @TEST-EXEC: zeek -Cr $TRACES/redis/auth.trace base/protocols/redis %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
event Redis::auth_command(c: connection, is_orig: bool,
|
||||
command: Redis::AuthCommand)
|
||||
{
|
||||
print "AUTH";
|
||||
if ( command?$username )
|
||||
print fmt("username: %s", command$username);
|
||||
else
|
||||
print "username: default";
|
||||
|
||||
print fmt("password: %s", command$password);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue