zeek/testing/btest/scripts/base/protocols/ftp/cwd-navigation.zeek
2020-01-01 12:47:39 -08:00

15 lines
371 B
Text

# @TEST-EXEC: zeek -r $TRACES/ftp/cwd-navigation.pcap >output.log %INPUT
# @TEST-EXEC: btest-diff conn.log
# @TEST-EXEC: btest-diff ftp.log
# @TEST-EXEC: btest-diff output.log
# Make sure we're tracking the CWD correctly.
event ftp_reply(c: connection, code: count, msg: string, cont_resp: bool) &priority=10
{
if ( ! c?$ftp )
return;
print "CWD", c$ftp$cwd;
}