mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Fixed most @load dependency issues in the process. The test is still failing in a "known" way due to hot.conn.bro and scan.bro. Adressess #545
16 lines
418 B
Text
16 lines
418 B
Text
##! This script extracts and logs variables from cookies sent by clients
|
|
|
|
@load base/protocols/http/main
|
|
@load base/protocols/http/utils
|
|
|
|
module HTTP;
|
|
|
|
redef record Info += {
|
|
cookie_vars: vector of string &optional &log;
|
|
};
|
|
|
|
event http_header(c: connection, is_orig: bool, name: string, value: string) &priority=2
|
|
{
|
|
if ( is_orig && name == "COOKIE" )
|
|
c$http$cookie_vars = extract_keys(value, /;[[:blank:]]*/);
|
|
}
|