File: README

package info (click to toggle)
bro-aux 0.42-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,104 kB
  • sloc: sh: 999; ansic: 943; ruby: 71; makefile: 68; perl: 35; cpp: 26
file content (101 lines) | stat: -rw-r--r-- 3,029 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
.. -*- mode: rst; -*-
..
.. Version number is filled in automatically.
.. |version| replace:: 0.42

======================
Bro Auxiliary Programs
======================

.. contents::

:Version: |version|

Handy auxiliary programs related to the use of the Bro Network Security
Monitor (http://www.bro.org).

Installation
============

Installation is simple and standard::

    ./configure
    make
    make install

adtrace
=======

The "adtrace" utility is used to compute the
network address that compose the internal and extern nets that bro
is monitoring. This program just reads a pcap
(tcpdump) file and writes out the src MAC, dst MAC, src IP, dst
IP for each packet seen in the file.

bro-cut
=======

The "bro-cut" utility reads ASCII Bro logs on standard input
and outputs them to standard output with only the specified columns (the
column names can be found in each log file in the "#fields" header line).
If no column names are specified, then "bro-cut" simply outputs all columns.

There are several command-line options available to modify the output (run
"bro-cut -h" to see a list of all options).  There are options to convert
timestamps into human-readable format, and options to specify whether or not
to include the format header lines in the output (by default, they're not
included).

For example, the following command will output the three specified columns
from conn.log with the timestamps from the "ts" column being converted to
human-readable format::

    cat conn.log | bro-cut -d ts id.orig_h id.orig_p

The specified order of the column names determines the output order of the
columns (i.e., "bro-cut" can reorder the columns).

The "bro-cut" utility can read the concatenation of one or more uncompressed
ASCII log files (however, JSON format is not supported) produced by Bro
version 2.0 or newer, as long as each log file contains format header
lines (these are the lines at the beginning of the file starting with "#").
In fact, "bro-cut" can process the concatenation of multiple ASCII log files
that have different column layouts.

To read a compressed log file, a tool such as "zcat" must be used to
uncompress the file.  For example, "bro-cut" can read a group of compressed
conn.log files with a command like this::

    zcat conn.*.log.gz | bro-cut


devel-tools
===========

A set of scripts used commonly for Bro development. Note that none of
these scripts are installed by 'make install'.

extract-conn-by-uid
    Extracts a connection from a trace file based
    on its UID found in Bro's conn.log

gen-mozilla-ca-list.rb
    Generates list of Mozilla SSL root certificates in
    a format readable by Bro.

update-changes
    A script to maintain the CHANGES and VERSION files.

git-show-fastpath
    Show commits to the fastpath branch not yet merged into master.

cpu-bench-with-trace
    Run a number of Bro benchmarks on a trace file.


rst
===

The "rst" utility can be invoked by a Bro script to terminate an
established TCP connection by forging RST tear-down packets.