Skip to content

Instantly share code, notes, and snippets.

@JustinAzoff
Created March 1, 2018 15:31
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/c3676ed1e11d06f571bf82bfabb0b7f0 to your computer and use it in GitHub Desktop.
Save JustinAzoff/c3676ed1e11d06f571bf82bfabb0b7f0 to your computer and use it in GitHub Desktop.
flood bro dns log for testing.
module DNS;
event log_one (n:count)
{
local info: Info;
local id: conn_id;
id$orig_h = 1.2.3.4;
id$orig_p = 23121/udp;
id$resp_h = 5.6.7.8;
id$resp_p = 53/udp;
info$ts = network_time();
info$uid = "CzCai71J2P10svwng2";
info$id=id;
info$proto=udp;
info$query="www.google.com";
info$qclass=1;
info$qclass_name="C_INTERNET";
info$qtype=1;
info$qtype_name="A";
info$rcode=0;
info$rcode_name="NOERROR";
info$AA=F;
info$TC=F;
info$RD=T;
info$RA=T;
info$Z=0;
info$answers=[74.125.225.116, 74.125.225.112, 74.125.225.115, 74.125.225.114, 74.125.225.113];
info$TTLs=[84.0 secs, 84.0 secs, 64.0 secs, 84.0 secs, 84.0 secs];
info$rejected=F;
info$total_answers=5;
info$total_replies=13;
Log::write(DNS::LOG, info);
if(n != 0) {
schedule 10msec { log_one(n-1) };
}
}
event bro_init()
{
event log_one(100);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment