mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Renamed HTTP::build_url function to HTTP::build_url_http
- HTTP::build_url no longer prepends http:// to the url.
This commit is contained in:
parent
291920b013
commit
e17193ff3e
5 changed files with 11 additions and 6 deletions
|
@ -18,14 +18,13 @@ event log_http(rec: HTTP::Info)
|
|||
{
|
||||
if ( rec?$md5 )
|
||||
{
|
||||
local url = HTTP::build_url(rec);
|
||||
local hash_domain = fmt("%s.malware.hash.cymru.com", rec$md5);
|
||||
|
||||
when ( local addrs = lookup_hostname(hash_domain) )
|
||||
{
|
||||
# 127.0.0.2 indicates that the md5 sum was found in the MHR.
|
||||
if ( 127.0.0.2 in addrs )
|
||||
{
|
||||
local url = HTTP::build_url_http(rec);
|
||||
local message = fmt("%s %s %s", rec$id$orig_h, rec$md5, url);
|
||||
NOTICE([$note=Malware_Hash_Registry_Match,
|
||||
$msg=message, $id=rec$id, $URL=url]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue