Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:sethhall/bro-domain-generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Hall committed Feb 22, 2018
2 parents 6e27ca4 + cac690c commit fa3a4dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Detect domain generation algorithms (DGA) with Bro. The module will regularly
generate domains by any implemented algorithms and watch for those domains
in DNS queries.

This script only works with Bro 2.1+.
This script only works with Bro 2.4+.

Installation
------------
Expand Down
10 changes: 5 additions & 5 deletions g01pack.bro
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ global g01pack_dicts: table[count] of vector of string = table();
function generate_g01pack_name(dict: vector of string, offset: interval): string
{
local ts = strftime("%Y %m %d %H", network_time_for_strftime() + offset);
local parts = split(ts, / /);
local c0 = to_count(parts[4]);
local c1 = to_count(parts[3]) + c0;
local c2 = to_count(parts[2]) + c1 - 1;
local c3 = to_count(parts[1]) + c2;
local parts = split_string(ts, / /);
local c0 = to_count(parts[3]);
local c1 = to_count(parts[2]) + c0;
local c2 = to_count(parts[1]) + c1 - 1;
local c3 = to_count(parts[0]) + c2;

local d0 = c0 % |dict|;
local d1 = c1 % |dict|;
Expand Down

0 comments on commit fa3a4dd

Please sign in to comment.