mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- New utils package for URLs. - Two functions in the URLs utils. find_all_urls and find_all_urls_without_scheme.
15 lines
No EOL
367 B
Text
15 lines
No EOL
367 B
Text
@load base/frameworks/intel
|
|
@load base/utils/urls
|
|
@load ./where-locations
|
|
|
|
event mime_segment_data(c: connection, length: count, data: string) &priority=3
|
|
{
|
|
local urls = find_all_urls_without_scheme(data);
|
|
for ( url in urls )
|
|
{
|
|
Intel::seen([$str=url,
|
|
$str_type=Intel::URL,
|
|
$conn=c,
|
|
$where=SMTP::IN_MESSAGE]);
|
|
}
|
|
} |