Commit graph

1565 commits

Author SHA1 Message Date
Robin Sommer
8266709e20 A new bif unique_id(prefix) that returns a string that's unique across
Bro instaces with high probablity.

"prefix" is a string that will be prepended to the returned ID.
2011-06-07 17:57:22 -07:00
Seth Hall
8a0e14f0dc Fixed a bug with detecting webapps. 2011-06-07 17:03:32 -04:00
Seth Hall
0de6393c6f Removed an HTTP dependency that is now gone. 2011-06-07 16:38:41 -04:00
Seth Hall
02b45bc9ea Fixed major bug in IRC analysis. 2011-06-07 16:35:55 -04:00
Seth Hall
6c9ff37e61 Removed the extended http script since it wasn't used. 2011-06-07 16:35:25 -04:00
Robin Sommer
4bdb94955d Merge remote branch 'origin/topic/seth/ssl-binpac'
* origin/topic/seth/ssl-binpac:
  Fixed bug due to vectors now initially indexed on 0.
  Finished core support for new SSL analyzer.
  SSL analyzer changes with accompanying BiF.
  A table_s_of_s type to get around bifcl type limitation.
  Regenerated the Mozilla CA bundle without the untrusted server authentication certs.
  Complete rewrite to SSL analyzer.

Conflicts:
	src/AnalyzerTags.h
	src/CMakeLists.txt

Notes:

    - Haven't looked at the script-level, postponed to
      policy-scripts-new.

    - I renamed X509Extension to X509_extension for consistency.
2011-06-07 10:12:25 -07:00
Robin Sommer
6e6af4c541 Merge remote branch 'origin/topic/seth/syslog-analyzer'
Note: I didn't merge anything in policy/*. Seems there was some
unrelated stuff in there, and the ticket says that the policy script
was a dummy for now anyway.

* origin/topic/seth/syslog-analyzer:
  Updates for syslog analyzer to prepare it for merging.
  Added the initial syslog analyzer and policy script.
  Adding some of the initial scripts that are going to be merged from my script repository.
2011-06-05 18:37:48 -07:00
Seth Hall
6322130c37 Updates for syslog analyzer to prepare it for merging.
- Integrated with CMake.
- Analyzer only support syslog over UDP right now.
- Fixed small bug in the analyzer to make it generate events correctly.
2011-06-03 10:28:10 -04:00
Seth Hall
b621b8eccc Merge remote branch 'origin/master' into topic/seth/syslog-analyzer
Conflicts:
	src/Analyzer.cc
	src/Makefile.am
2011-06-03 09:38:23 -04:00
Seth Hall
7d68b4c7a0 Removed some accidental debugging print statements. 2011-06-03 07:53:02 -04:00
Seth Hall
737315aa54 Clean up for the functions.bro script.
Just a little more until that file is gone.
2011-06-03 07:51:46 -04:00
Seth Hall
aa602b9cdd Fixed a bug with threshold checking for the SSH script. 2011-06-03 07:50:49 -04:00
Seth Hall
72f2472d1d Updates for the pcap.bro script.
- The install_pcap_filter BiF no longer will prevent
  a filter from being installed if a -f filter was
  provided.  This was already causing a problem where
  command line supplied filters weren't working.
  The pcap.bro script is now where the filter update
  limitation is placed making it possible for users
  to still update the filter at runtime if they really
  want to.
2011-06-03 07:50:30 -04:00
Seth Hall
8bffd350a4 Updating to use the new directory loading technique. 2011-06-03 07:47:49 -04:00
Seth Hall
fbf207deda Merge remote branch 'origin/master' into topic/policy-scripts-new 2011-06-03 07:38:28 -04:00
Robin Sommer
a236dd0d3d Fixing typo in test. 2011-06-02 22:07:36 -07:00
Robin Sommer
fac328685b @load now supports loading a directory.
With a directory "foo" somewhere in BROPATH, "@load foo" now checks if
there's a file "foo/__load__.bro". If so, it reads that file in. (If
not, Bro reports the same error as before, complaining that it can't
read a directory).
2011-06-02 21:57:24 -07:00
Seth Hall
27f006f317 Missed a comment from Robin about IRC. 2011-06-02 16:32:18 -04:00
Seth Hall
362f1a8ee1 Updated IRC script based on comments from Robin. 2011-06-02 16:30:08 -04:00
Seth Hall
f0d4447971 Re-added the $force_log attribute to the Software::Info record.
I re-added it because it's used by the detect-webapps
script to re-log software that may already be logged
if a more-root URL is found that still represents the
same software.
2011-06-02 16:20:16 -04:00
Seth Hall
08b8873e8b Updates to the notice framework based on comments from Robin.
- New extension mechanism.
  - Notices requiring realtime actions can be accomodated with
    the notice_functions set which are called synchronously
    prior to logging or any further handling.
  - Notice::notice event handlers will be called afterward
    and follow normal (old) notice handling process.  Logging
    is done by handling this event.
- Lots of new docs.
- Renaming Action enums to reduce confusion with Type enums.
- Notice tags are attached to the Conn::Info record as a set[string].
2011-06-02 16:18:23 -04:00
Seth Hall
beab408164 Updates for the software framework based on comments from Robin. 2011-06-02 10:38:24 -04:00
Robin Sommer
5c0704eec8 ASCII logger now escapes non-printable characters.
Closes #450.
2011-06-01 22:33:44 -07:00
Seth Hall
aaab2f8cbb Fixed some more script bugs and more cleanup. 2011-06-01 15:04:05 -04:00
Seth Hall
ec5fed4c68 Responding to comments from Jon. 2011-06-01 15:00:20 -04:00
Robin Sommer
09083b8992 Updating submodule(s). 2011-06-01 11:35:37 -07:00
Robin Sommer
a3b527be4b Updating submodule(s). 2011-06-01 11:30:59 -07:00
Robin Sommer
909c5daf6c Revert "Setting the snaplen to 0 to capture the full packet regardless of size."
This reverts commit fe274c3e64.
2011-06-01 11:27:53 -07:00
Seth Hall
6c8c26e106 Adding the new wrapper script for SSL analysis scripts. 2011-06-01 13:27:40 -04:00
Seth Hall
dddabcaafb Checkpoint for reorganization of SSL analysis scripts. 2011-06-01 13:27:26 -04:00
Seth Hall
a432e3ce25 Reorganizing the notice framework. 2011-06-01 11:13:34 -04:00
Seth Hall
0504bf53fc Updates to bro.init and more logging reorg. 2011-06-01 11:10:52 -04:00
Seth Hall
799199eb4f Reorganized logging framework a bit. 2011-06-01 11:08:17 -04:00
Seth Hall
afda3c68ba More script movement and documentation. 2011-06-01 11:04:07 -04:00
Seth Hall
ae3bd76769 Reorganizing the policy scripts for clarity. 2011-06-01 10:07:53 -04:00
Seth Hall
e0467fad2d Fixing bugs discovered by Jon in SMTP script. 2011-05-31 14:48:03 -04:00
Seth Hall
e07189e129 Merge branch 'topic/policy-scripts-new' of ssh://git.bro-ids.org/bro into topic/policy-scripts-new 2011-05-26 00:28:37 -04:00
Seth Hall
da6105ac53 A bit more filename cleanup for the content extraction. 2011-05-26 00:28:28 -04:00
Seth Hall
eacffb7b53 Added a uid column to the dpd log. 2011-05-26 00:28:06 -04:00
Jon Siwek
33f0c237ca Doc tweaks for new conn/contents.bro 2011-05-25 15:34:57 -05:00
Seth Hall
b32ff14a77 New conn/ script for extracting contents.
- Restructured conn scripts to match other core scripts.
2011-05-25 14:56:48 -04:00
Seth Hall
fe274c3e64 Setting the snaplen to 0 to capture the full packet regardless of size.
In my limited testing this seemed to work fine but we should
make an actual test for this eventually.
2011-05-25 13:37:21 -04:00
Seth Hall
b8a1336088 Renaming a helper function for building regexes. 2011-05-24 14:45:16 -04:00
Seth Hall
7ab4601116 Adding a script dependency. 2011-05-24 14:44:40 -04:00
Seth Hall
354f41d964 Updates to FTP script based on comments from Jon. 2011-05-24 14:44:18 -04:00
Seth Hall
b2e2905e87 Updates to DPD scripts.
- Moved the DPD sigs into the dpd/ directory.
- Updated some comments to reflect reality.
- Added a TODO about a bug.
2011-05-24 14:42:37 -04:00
Seth Hall
5414c146fa Merge branch 'topic/policy-scripts-new' of ssh://git.bro-ids.org/bro into topic/policy-scripts-new
Conflicts:
	policy/http.bro
2011-05-24 10:12:45 -04:00
Seth Hall
d0b4fabcad Updates and fixes for HTTP analysis scripts.
- File hashing is enabled by default and fixed.
- Other small fixes.
2011-05-24 10:11:10 -04:00
Seth Hall
19c9aaebb9 Fixed bug due to vectors now initially indexed on 0. 2011-05-24 10:08:17 -04:00
Seth Hall
15bfa23ce1 Merge remote branch 'origin/master' into topic/seth/ssl-binpac
Conflicts:
	src/bro.bif
2011-05-23 17:09:41 -04:00