Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinAzoff/1dcd403e63da6738ba21 to your computer and use it in GitHub Desktop.
Save JustinAzoff/1dcd403e63da6738ba21 to your computer and use it in GitHub Desktop.
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