mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00

- Fixing more vestiges from moving site.bro and removing functions.bro - Updates comments on analysis-groups.bro - Added the trim-trace-file script from broctl.
15 lines
376 B
Text
15 lines
376 B
Text
##! This script extracts and logs variables from cookies sent by clients
|
|
|
|
@load protocols/http
|
|
|
|
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:]]*/);
|
|
}
|