Last active
August 29, 2015 14:27
-
-
Save JustinAzoff/1dcd403e63da6738ba21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redef exit_only_after_terminate = T; | |
event test() | |
{ | |
local src = 1.2.3.4; | |
local dst = 8.8.8.8; | |
local output = ""; | |
if ( T ) | |
{ | |
when ( local src_name = lookup_addr(src) ) | |
{ | |
if (src_name != "<???>") { | |
print "src fail!", src_name; | |
} | |
} | |
} | |
if ( T ) | |
{ | |
when ( local dst_name = lookup_addr(dst) ) | |
{ | |
if (dst_name != "google-public-dns-a.google.com") { | |
print "dst fail!", dst_name; | |
} | |
} | |
} | |
schedule .1sec { test() }; | |
} | |
event bro_init() { | |
schedule 0sec { test() }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment