Commit graph

7254 commits

Author SHA1 Message Date
Johanna Amann
8eddeed78f Allow access to global variables using GLOBAL:: namespace.
Addresses BIT-1758. Patch was contributed by François Pennaneach
<francois.pennaneach@free.fr>.
2016-12-07 15:28:34 -08:00
Johanna Amann
ad345d7277 Merge remote-tracking branch 'origin/topic/dnthayer/ticket1516'
* origin/topic/dnthayer/ticket1516:
  Remove wordexp functionality from broxygen
  Fix a failing test on OpenBSD
  Fix compiler warnings on OpenBSD
  Fix a build failure on OpenBSD
  Fix test core.pcap.dumper to work on OpenBSD

BIT-1516 #merged
2016-12-07 14:53:35 -08:00
Daniel Thayer
85ddd3ca8b Remove wordexp functionality from broxygen
Broxygen no longer attempts to do tilde expansion of PATH
components when trying to get the mtime of Bro (this involved removing
the wordexp functionality, which doesn't exist on OpenBSD).  In the
very unlikely event that this causes problems for someone (this could
occur by running "bro -X configfile" if bro is located in a PATH
component which starts with a tilde, such as "~/bin"), the error
message text has been improved so that a user knows the workaround
for this (just run bro with a relative or absolute path).

Broxygen also no longer attempts to get the mtime of the bro executable
when bro wasn't invoked with the "-X" option.
2016-12-07 16:42:44 -06:00
Daniel Thayer
0581364d86 Fix a failing test on OpenBSD
Update a test due to the changes in commit e198fba2.
2016-12-06 10:46:29 -06:00
Johanna Amann
9059af6579 Update submodule
[nomail]
2016-12-05 16:17:54 -08:00
Johanna Amann
19d47ec6a9 Update submodule
[nomail]
2016-12-05 15:54:21 -08:00
Robin Sommer
99923583e4 Merge remote-tracking branch 'origin/topic/johanna/ocsp-validate-fix'
* origin/topic/johanna/ocsp-validate-fix:
  Fix validation of OCSP replies inside of Bro.

BIT-1763 #merged
2016-12-05 11:46:45 -08:00
Daniel Thayer
f107336f21 Fix compiler warnings on OpenBSD
Needed to add an "#include" to get the declaration of "struct in_addr".
2016-12-02 16:15:12 -06:00
Daniel Thayer
31e46d37f0 Fix a build failure on OpenBSD
The wordexp function doesn't exist in OpenBSD.  Skipping this
functionality only affects users who have bro installed in a directory
in the PATH and the directory name as it appears in PATH starts with
a tilde (e.g. "~/bin").  A simple workaround for affected users
would be to change the PATH environment variable to not contain any
tildes.
2016-12-02 14:31:16 -06:00
Daniel Thayer
de1c13e3a3 Fix test core.pcap.dumper to work on OpenBSD
The sdiff command on OpenBSD truncates the output at a different
position than sdiff on other platforms.  Simple fix is to use diff
instead of sdiff.
2016-12-01 16:35:54 -06:00
Johanna Amann
37a51b354e Fix validation of OCSP replies inside of Bro.
At one place in the code, we do not check the correct return code. This
makes it possible for a reply to get a response of "good", when the ocsp
reply is not actually signed by the responder in question.

This also instructs ocsp verication to skip certificate chain
validation, which we do ourselves earlier because the OCSP verify
function cannot do it correctly (no way to pass timestamp).
2016-11-30 13:17:09 -08:00
Johanna Amann
b39594408c Update submodules
[nomail]
2016-11-30 10:32:16 -08:00
Johanna Amann
9b9c3a6104 Merge remote-tracking branch 'origin/topic/dnthayer/ticket1757'
* origin/topic/dnthayer/ticket1757:
  Fix a build failure on OpenBSD

BIT-1757 #merged
2016-11-29 12:52:36 -08:00
Johanna Amann
beaf491fa3 Fix compile error in krb-types.pac.
Introduced in 15f2b30c73
2016-11-29 12:41:15 -08:00
Daniel Thayer
e198fba2d9 Fix a build failure on OpenBSD
The definition of a "struct pcap_pkthdr" on OpenBSD contains a member
of type "struct bpf_timeval" instead of "struct timeval" used on other
systems.

Also, on OpenBSD the header netinet/if_ether.h does not #include
net/if_arp.h as it does on other systems.
2016-11-29 14:20:43 -06:00
Vlad Grigorescu
15f2b30c73 Merge pull request #90 from jamesecorrenti/patch-1
Update krb-types.pac to allow for names that can have 3 components
2016-11-29 10:56:14 -06:00
Vlad Grigorescu
5845737c0c Fix a typo 2016-11-29 10:55:18 -06:00
jamesecorrenti
4b4ccabd70 Update krb-types.pac
KerberosString formatting for principal name to be compliant with RFC 4120 section 5.2.2, which states that there can be a few components (and in practice we have seen 3, more than the 1 or 2 that is typical)
2016-11-22 16:41:56 -05:00
Robin Sommer
7b44974a58 Updating submodule(s).
[nomail]
2016-11-16 14:52:13 -08:00
Robin Sommer
0bfd6424ab Updating submodule(s).
[nomail]
2016-11-15 13:26:03 -08:00
Robin Sommer
c1da7b4840 Updating submodule(s).
[nomail]
2016-11-15 13:24:18 -08:00
Robin Sommer
a984a30fd0 Updating submodule(s).
[nomail]
2016-11-15 13:23:34 -08:00
Robin Sommer
e9b0639ccb Adding missing '@load ./pubkey-hashes' to policy/frameworks/intel/seen. 2016-11-14 17:59:58 -08:00
Robin Sommer
a848b8785b Updating submodule(s).
[nomail]
2016-11-14 17:56:27 -08:00
Robin Sommer
6e1d55a3bb Merge remote-tracking branch 'origin/topic/dnthayer/doc-fixes-updates'
BIT-1748 #merged
2016-11-14 17:53:20 -08:00
Daniel Thayer
53d05fb24f Update a test baseline
The number of lines in scripts/base/frameworks/intel/main.bro changed
recently.
2016-11-14 14:59:19 -06:00
Daniel Thayer
2f40034c65 Correct one statement in NEWS 2016-11-14 14:54:13 -06:00
Daniel Thayer
15a825eb2d Fixed some warnings seen while running "make doc"
Moved the definitions of DCE_RPC::BackingState and DCE_RPC::State types
into the export block.  These types are used in the redef of the
"connection" record.
2016-11-14 14:46:53 -06:00
Daniel Thayer
475682ba7f Fix minor typos in documentation
Some of these fixes are for broken links in the auto-generated docs.
2016-11-14 09:50:19 -06:00
Daniel Thayer
67160338ba Update NEWS
Fixed minor typos and formatting, and added new info.
2016-11-11 16:03:28 -06:00
Daniel Thayer
6156590566 Remove unused "bindist" make target
The "pkg" subdirectory was removed in commit 19d66be0.
2016-11-11 15:41:25 -06:00
Daniel Thayer
5745213326 Fix minor typos in documentation of various scripts 2016-11-11 14:08:17 -06:00
Daniel Thayer
2347be3092 Improve the "How to Upgrade" page in the Bro docs
Added some text to clarify the procedure (it now reads more like
a step-by-step guide to upgrading).
2016-11-09 14:55:55 -06:00
Daniel Thayer
0db028ea91 Update the quickstart guide for the deploy command
Also removed some redundant info about setting up a broctl cron job,
which is already explained in detail in the broctl documentation.
2016-11-09 14:35:12 -06:00
Daniel Thayer
aa8d200e80 Fix various typos in the openflow framework docs 2016-11-09 14:29:03 -06:00
Daniel Thayer
462eaefc43 Fix some warnings seen while building the docs
Removed references in the docs to a few identifiers that aren't
defined in any Bro scripts.
2016-11-09 14:16:42 -06:00
Daniel Thayer
3057d2b8fb Fix various typos in the NetControl docs
Also fixed warnings that were seen while building the docs
with "make doc".
2016-11-08 15:25:28 -06:00
Daniel Thayer
261c6907d8 Merge remote-tracking branch 'origin/master' into topic/dnthayer/doc-fixes-updates 2016-11-07 13:47:45 -06:00
Johanna Amann
ba5abf8dbe Updating CHANGES and VERSION. 2016-11-02 12:13:48 -07:00
Johanna Amann
8c3a3b45f3 Update VERSION and submodules. 2016-11-02 12:13:11 -07:00
Johanna Amann
c92060a8ca Merge remote-tracking branch 'origin/topic/seth/smb-auth-fixes'
* origin/topic/seth/smb-auth-fixes:
  Disable SMB2 error data parsing.
  Removed some files that aren't being used.
  Fix SMB tree connect handling.
  Fix a small issue where DCE_RPC commands were improperly being logged.
  SMB fixes and cleanup.
  Including a test for raw NTLM in SMB
  Updates for SMB auth handling from Martin van Hensbergen.

BIT-1721 #merged
2016-11-02 10:25:33 -07:00
Seth Hall
15f5deed87 Add a files framework signature for VIM tmp files. 2016-11-02 11:51:38 -04:00
Johanna Amann
24b7566b1f Update submodule
[nomail]
2016-11-01 15:30:12 -07:00
Seth Hall
5e63584b48 Disable SMB2 error data parsing.
It is not implemented correctly and is causing a lot of
parse errors.
2016-11-01 16:03:36 -04:00
Seth Hall
5832b872c2 Removed some files that aren't being used.
- I went ahead and finished implementing smb2 tree_disconnect.
   This made it possible to address an edge case when packet
   loss occurs.
 - Fixes BIT-1721
2016-11-01 15:56:15 -04:00
Johanna Amann
681efc2b8d Version parsing scripts now supports several beta versions.
Versions such as 2.5-beta2 now don't throw an error.
2016-11-01 11:19:14 -07:00
Johanna Amann
6a0247fab1 Merge remote-tracking branch 'origin/topic/dnthayer/local-logger'
* origin/topic/dnthayer/local-logger:
  Add a new site policy script local-logger.bro

BIT-1700 #merged
2016-11-01 09:41:50 -07:00
Seth Hall
bb5c2c94ec Fix SMB tree connect handling.
It was misidentifying share mappings as FILE shares
sometimes when they were actually PIPE shares.
2016-11-01 03:14:15 -04:00
Seth Hall
19a4376a9a Fix a small issue where DCE_RPC commands were improperly being logged. 2016-11-01 03:13:04 -04:00
Daniel Thayer
dc74fab2d5 Add a new site policy script local-logger.bro
Addresses BIT-1700
2016-10-31 20:43:50 -05:00