mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Merge branch 'master' into topic/jsiwek/autodoc-fixes
Conflicts: scripts/CMakeLists.txt scripts/base/frameworks/cluster/setup-connections.bro scripts/base/frameworks/communication/__load__.bro scripts/base/frameworks/metrics/conn-example.bro scripts/base/frameworks/metrics/http-example.bro scripts/site/local.bro
This commit is contained in:
commit
2a9ea6b8ba
96 changed files with 1809 additions and 722 deletions
|
@ -1,33 +1,33 @@
|
|||
1st test-11-03-07_03.00.05.log test.log 11-03-07_03.00.05 11-03-07_04.00.05 0
|
||||
1st test-11-03-07_04.00.05.log test.log 11-03-07_04.00.05 11-03-07_05.00.05 0
|
||||
1st test-11-03-07_05.00.05.log test.log 11-03-07_05.00.05 11-03-07_06.00.05 0
|
||||
1st test-11-03-07_06.00.05.log test.log 11-03-07_06.00.05 11-03-07_07.00.05 0
|
||||
1st test-11-03-07_07.00.05.log test.log 11-03-07_07.00.05 11-03-07_08.00.05 0
|
||||
1st test-11-03-07_08.00.05.log test.log 11-03-07_08.00.05 11-03-07_09.00.05 0
|
||||
1st test-11-03-07_09.00.05.log test.log 11-03-07_09.00.05 11-03-07_10.00.05 0
|
||||
1st test-11-03-07_10.00.05.log test.log 11-03-07_10.00.05 11-03-07_11.00.05 0
|
||||
1st test-11-03-07_11.00.05.log test.log 11-03-07_11.00.05 11-03-07_12.00.05 0
|
||||
1st test-11-03-07_12.00.05.log test.log 11-03-07_12.00.05 11-03-07_12.59.55 1
|
||||
2nd test2-11-03-07_03.00.05.log test2.log 11-03-07_03.00.05 11-03-07_03.59.55 0
|
||||
2nd test2-11-03-07_03.59.55.log test2.log 11-03-07_03.59.55 11-03-07_04.00.05 0
|
||||
2nd test2-11-03-07_04.00.05.log test2.log 11-03-07_04.00.05 11-03-07_04.59.55 0
|
||||
2nd test2-11-03-07_04.59.55.log test2.log 11-03-07_04.59.55 11-03-07_05.00.05 0
|
||||
2nd test2-11-03-07_05.00.05.log test2.log 11-03-07_05.00.05 11-03-07_05.59.55 0
|
||||
2nd test2-11-03-07_05.59.55.log test2.log 11-03-07_05.59.55 11-03-07_06.00.05 0
|
||||
2nd test2-11-03-07_06.00.05.log test2.log 11-03-07_06.00.05 11-03-07_06.59.55 0
|
||||
2nd test2-11-03-07_06.59.55.log test2.log 11-03-07_06.59.55 11-03-07_07.00.05 0
|
||||
2nd test2-11-03-07_07.00.05.log test2.log 11-03-07_07.00.05 11-03-07_07.59.55 0
|
||||
2nd test2-11-03-07_07.59.55.log test2.log 11-03-07_07.59.55 11-03-07_08.00.05 0
|
||||
2nd test2-11-03-07_08.00.05.log test2.log 11-03-07_08.00.05 11-03-07_08.59.55 0
|
||||
2nd test2-11-03-07_08.59.55.log test2.log 11-03-07_08.59.55 11-03-07_09.00.05 0
|
||||
2nd test2-11-03-07_09.00.05.log test2.log 11-03-07_09.00.05 11-03-07_09.59.55 0
|
||||
2nd test2-11-03-07_09.59.55.log test2.log 11-03-07_09.59.55 11-03-07_10.00.05 0
|
||||
2nd test2-11-03-07_10.00.05.log test2.log 11-03-07_10.00.05 11-03-07_10.59.55 0
|
||||
2nd test2-11-03-07_10.59.55.log test2.log 11-03-07_10.59.55 11-03-07_11.00.05 0
|
||||
2nd test2-11-03-07_11.00.05.log test2.log 11-03-07_11.00.05 11-03-07_11.59.55 0
|
||||
2nd test2-11-03-07_11.59.55.log test2.log 11-03-07_11.59.55 11-03-07_12.00.05 0
|
||||
2nd test2-11-03-07_12.00.05.log test2.log 11-03-07_12.00.05 11-03-07_12.59.55 0
|
||||
2nd test2-11-03-07_12.59.55.log test2.log 11-03-07_12.59.55 11-03-07_12.59.55 1
|
||||
1st test.2011-03-07-03-00-05.log test 11-03-07_03.00.05 11-03-07_04.00.05 0
|
||||
1st test.2011-03-07-04-00-05.log test 11-03-07_04.00.05 11-03-07_05.00.05 0
|
||||
1st test.2011-03-07-05-00-05.log test 11-03-07_05.00.05 11-03-07_06.00.05 0
|
||||
1st test.2011-03-07-06-00-05.log test 11-03-07_06.00.05 11-03-07_07.00.05 0
|
||||
1st test.2011-03-07-07-00-05.log test 11-03-07_07.00.05 11-03-07_08.00.05 0
|
||||
1st test.2011-03-07-08-00-05.log test 11-03-07_08.00.05 11-03-07_09.00.05 0
|
||||
1st test.2011-03-07-09-00-05.log test 11-03-07_09.00.05 11-03-07_10.00.05 0
|
||||
1st test.2011-03-07-10-00-05.log test 11-03-07_10.00.05 11-03-07_11.00.05 0
|
||||
1st test.2011-03-07-11-00-05.log test 11-03-07_11.00.05 11-03-07_12.00.05 0
|
||||
1st test.2011-03-07-12-00-05.log test 11-03-07_12.00.05 11-03-07_12.59.55 1
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_03.00.05.log, path=test2, open=1299466805.0, close=1299470395.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_03.59.55.log, path=test2, open=1299470395.0, close=1299470405.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_04.00.05.log, path=test2, open=1299470405.0, close=1299473995.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_04.59.55.log, path=test2, open=1299473995.0, close=1299474005.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_05.00.05.log, path=test2, open=1299474005.0, close=1299477595.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_05.59.55.log, path=test2, open=1299477595.0, close=1299477605.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_06.00.05.log, path=test2, open=1299477605.0, close=1299481195.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_06.59.55.log, path=test2, open=1299481195.0, close=1299481205.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_07.00.05.log, path=test2, open=1299481205.0, close=1299484795.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_07.59.55.log, path=test2, open=1299484795.0, close=1299484805.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_08.00.05.log, path=test2, open=1299484805.0, close=1299488395.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_08.59.55.log, path=test2, open=1299488395.0, close=1299488405.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_09.00.05.log, path=test2, open=1299488405.0, close=1299491995.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_09.59.55.log, path=test2, open=1299491995.0, close=1299492005.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_10.00.05.log, path=test2, open=1299492005.0, close=1299495595.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_10.59.55.log, path=test2, open=1299495595.0, close=1299495605.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_11.00.05.log, path=test2, open=1299495605.0, close=1299499195.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_11.59.55.log, path=test2, open=1299499195.0, close=1299499205.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_12.00.05.log, path=test2, open=1299499205.0, close=1299502795.0, terminating=F]
|
||||
custom rotate, [writer=WRITER_ASCII, fname=test2-11-03-07_12.59.55.log, path=test2, open=1299502795.0, close=1299502795.0, terminating=T]
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299466805.000000 10.0.0.1 20 10.0.0.2 1024
|
||||
1299470395.000000 10.0.0.2 20 10.0.0.3 0
|
||||
|
@ -49,16 +49,16 @@
|
|||
1299499195.000000 10.0.0.2 20 10.0.0.3 8
|
||||
1299499205.000000 10.0.0.1 20 10.0.0.2 1033
|
||||
1299502795.000000 10.0.0.2 20 10.0.0.3 9
|
||||
> test-11-03-07_03.00.05.log
|
||||
> test-11-03-07_04.00.05.log
|
||||
> test-11-03-07_05.00.05.log
|
||||
> test-11-03-07_06.00.05.log
|
||||
> test-11-03-07_07.00.05.log
|
||||
> test-11-03-07_08.00.05.log
|
||||
> test-11-03-07_09.00.05.log
|
||||
> test-11-03-07_10.00.05.log
|
||||
> test-11-03-07_11.00.05.log
|
||||
> test-11-03-07_12.00.05.log
|
||||
> test.2011-03-07-03-00-05.log
|
||||
> test.2011-03-07-04-00-05.log
|
||||
> test.2011-03-07-05-00-05.log
|
||||
> test.2011-03-07-06-00-05.log
|
||||
> test.2011-03-07-07-00-05.log
|
||||
> test.2011-03-07-08-00-05.log
|
||||
> test.2011-03-07-09-00-05.log
|
||||
> test.2011-03-07-10-00-05.log
|
||||
> test.2011-03-07-11-00-05.log
|
||||
> test.2011-03-07-12-00-05.log
|
||||
> test.log
|
||||
> test2-11-03-07_03.00.05.log
|
||||
> test2-11-03-07_03.59.55.log
|
||||
|
|
|
@ -1,50 +1,50 @@
|
|||
test-11-03-07_03.00.05.log test.log 11-03-07_03.00.05 11-03-07_04.00.05 0
|
||||
test-11-03-07_04.00.05.log test.log 11-03-07_04.00.05 11-03-07_05.00.05 0
|
||||
test-11-03-07_05.00.05.log test.log 11-03-07_05.00.05 11-03-07_06.00.05 0
|
||||
test-11-03-07_06.00.05.log test.log 11-03-07_06.00.05 11-03-07_07.00.05 0
|
||||
test-11-03-07_07.00.05.log test.log 11-03-07_07.00.05 11-03-07_08.00.05 0
|
||||
test-11-03-07_08.00.05.log test.log 11-03-07_08.00.05 11-03-07_09.00.05 0
|
||||
test-11-03-07_09.00.05.log test.log 11-03-07_09.00.05 11-03-07_10.00.05 0
|
||||
test-11-03-07_10.00.05.log test.log 11-03-07_10.00.05 11-03-07_11.00.05 0
|
||||
test-11-03-07_11.00.05.log test.log 11-03-07_11.00.05 11-03-07_12.00.05 0
|
||||
test-11-03-07_12.00.05.log test.log 11-03-07_12.00.05 11-03-07_12.59.55 1
|
||||
> test-11-03-07_03.00.05.log
|
||||
test.2011-03-07-03-00-05.log test 11-03-07_03.00.05 11-03-07_04.00.05 0
|
||||
test.2011-03-07-04-00-05.log test 11-03-07_04.00.05 11-03-07_05.00.05 0
|
||||
test.2011-03-07-05-00-05.log test 11-03-07_05.00.05 11-03-07_06.00.05 0
|
||||
test.2011-03-07-06-00-05.log test 11-03-07_06.00.05 11-03-07_07.00.05 0
|
||||
test.2011-03-07-07-00-05.log test 11-03-07_07.00.05 11-03-07_08.00.05 0
|
||||
test.2011-03-07-08-00-05.log test 11-03-07_08.00.05 11-03-07_09.00.05 0
|
||||
test.2011-03-07-09-00-05.log test 11-03-07_09.00.05 11-03-07_10.00.05 0
|
||||
test.2011-03-07-10-00-05.log test 11-03-07_10.00.05 11-03-07_11.00.05 0
|
||||
test.2011-03-07-11-00-05.log test 11-03-07_11.00.05 11-03-07_12.00.05 0
|
||||
test.2011-03-07-12-00-05.log test 11-03-07_12.00.05 11-03-07_12.59.55 1
|
||||
> test.2011-03-07-03-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299466805.000000 10.0.0.1 20 10.0.0.2 1024
|
||||
1299470395.000000 10.0.0.2 20 10.0.0.3 0
|
||||
> test-11-03-07_04.00.05.log
|
||||
> test.2011-03-07-04-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299470405.000000 10.0.0.1 20 10.0.0.2 1025
|
||||
1299473995.000000 10.0.0.2 20 10.0.0.3 1
|
||||
> test-11-03-07_05.00.05.log
|
||||
> test.2011-03-07-05-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299474005.000000 10.0.0.1 20 10.0.0.2 1026
|
||||
1299477595.000000 10.0.0.2 20 10.0.0.3 2
|
||||
> test-11-03-07_06.00.05.log
|
||||
> test.2011-03-07-06-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299477605.000000 10.0.0.1 20 10.0.0.2 1027
|
||||
1299481195.000000 10.0.0.2 20 10.0.0.3 3
|
||||
> test-11-03-07_07.00.05.log
|
||||
> test.2011-03-07-07-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299481205.000000 10.0.0.1 20 10.0.0.2 1028
|
||||
1299484795.000000 10.0.0.2 20 10.0.0.3 4
|
||||
> test-11-03-07_08.00.05.log
|
||||
> test.2011-03-07-08-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299484805.000000 10.0.0.1 20 10.0.0.2 1029
|
||||
1299488395.000000 10.0.0.2 20 10.0.0.3 5
|
||||
> test-11-03-07_09.00.05.log
|
||||
> test.2011-03-07-09-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299488405.000000 10.0.0.1 20 10.0.0.2 1030
|
||||
1299491995.000000 10.0.0.2 20 10.0.0.3 6
|
||||
> test-11-03-07_10.00.05.log
|
||||
> test.2011-03-07-10-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299492005.000000 10.0.0.1 20 10.0.0.2 1031
|
||||
1299495595.000000 10.0.0.2 20 10.0.0.3 7
|
||||
> test-11-03-07_11.00.05.log
|
||||
> test.2011-03-07-11-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299495605.000000 10.0.0.1 20 10.0.0.2 1032
|
||||
1299499195.000000 10.0.0.2 20 10.0.0.3 8
|
||||
> test-11-03-07_12.00.05.log
|
||||
> test.2011-03-07-12-00-05.log
|
||||
# t id.orig_h id.orig_p id.resp_h id.resp_p
|
||||
1299499205.000000 10.0.0.1 20 10.0.0.2 1033
|
||||
1299502795.000000 10.0.0.2 20 10.0.0.3 9
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
# depth name
|
||||
0 scripts/base/init-bare.bro
|
||||
1 build/src/const.bif.bro
|
||||
1 build/src/types.bif.bro
|
||||
1 build/src/strings.bif.bro
|
||||
1 build/src/bro.bif.bro
|
||||
1 build/src/reporter.bif.bro
|
||||
1 build/src/event.bif.bro
|
||||
1 scripts/base/frameworks/logging/__load__.bro
|
||||
2 scripts/base/frameworks/logging/./main.bro
|
||||
3 build/src/logging.bif.bro
|
||||
2 scripts/base/frameworks/logging/./writers/ascii.bro
|
||||
0 scripts/policy/misc/loaded-scripts.bro
|
|
@ -0,0 +1,2 @@
|
|||
# ts uid id.orig_h id.orig_p id.resp_h id.resp_p mid helo mailfrom rcptto date from to reply_to msg_id in_reply_to subject x_originating_ip first_received second_received last_reply path user_agent
|
||||
1254722768.219663 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh GP <gurpartap@patriots.in> <raj_deol2002in@yahoo.co.in> Mon, 5 Oct 2009 11:36:07 +0530 "Gurpartap Singh" <gurpartap@patriots.in> <raj_deol2002in@yahoo.co.in> - <000301ca4581$ef9e57f0$cedb07d0$@in> - SMTP - - - 250 OK id=1Mugho-0003Dg-Un 74.53.140.153,10.10.1.4 Microsoft Office Outlook 12.0
|
|
@ -0,0 +1,13 @@
|
|||
Hello
|
||||
|
||||
|
||||
|
||||
I send u smtp pcap file
|
||||
|
||||
Find the attachment
|
||||
|
||||
|
||||
|
||||
GPS
|
||||
|
||||
|
|
@ -0,0 +1,264 @@
|
|||
Version 4.9.9.1
|
||||
* Many bug fixes
|
||||
* Improved editor
|
||||
|
||||
Version 4.9.9.0
|
||||
* Support for latest Mingw compiler system builds
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.8.9
|
||||
* New code tooltip display
|
||||
* Improved Indent/Unindent and Remove Comment
|
||||
* Improved automatic indent
|
||||
* Added support for the "interface" keyword
|
||||
* WebUpdate should now report installation problems from PackMan
|
||||
* New splash screen and association icons
|
||||
* Improved installer
|
||||
* Many bug fixes
|
||||
|
||||
Version 4.9.8.7
|
||||
* Added support for GCC > 3.2
|
||||
* Debug variables are now resent during next debug session
|
||||
* Watched Variables not in correct context are now kept and updated when it is needed
|
||||
* Added new compiler/linker options: 20
|
||||
- Strip executable
|
||||
- Generate instructions for a specific machine (i386, i486, i586, i686, pentium, pentium-mmx, pentiumpro, pentium2, pentium3, pentium4, 20
|
||||
k6, k6-2, k6-3, athlon, athlon-tbird, athlon-4, athlon-xp, athlon-mp, winchip-c6, winchip2, k8, c3 and c3-2)
|
||||
- Enable use of processor specific built-in functions (mmmx, sse, sse2, pni, 3dnow)
|
||||
* "Default" button in Compiler Options is back
|
||||
* Error messages parsing improved
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.8.5
|
||||
* Added the possibility to modify the value of a variable during debugging (right click on a watch variable and select "Modify value")
|
||||
* During Dev-C++ First Time COnfiguration window, users can now choose between using or not class browser and code completion features.
|
||||
* Many bug fixes
|
||||
|
||||
Version 4.9.8.4
|
||||
* Added the possibility to specify an include directory for the code completion cache to be created at Dev-C++ first startup
|
||||
* Improved code completion cache
|
||||
* WebUpdate will now backup downloaded DevPaks in Dev-C++\Packages directory, and Dev-C++ executable in devcpp.exe.BACKUP
|
||||
* Big speed up in function parameters listing while editing
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.8.3
|
||||
* On Dev-C++ first time configuration dialog, a code completion cache of all the standard 20
|
||||
include files can now be generated.
|
||||
* Improved WebUpdate module
|
||||
* Many bug fixes
|
||||
|
||||
Version 4.9.8.2
|
||||
* New debug feature for DLLs: attach to a running process
|
||||
* New project option: Use custom Makefile. 20
|
||||
* New WebUpdater module.
|
||||
* Allow user to specify an alternate configuration file in Environment Options 20
|
||||
(still can be overriden by using "-c" command line parameter).
|
||||
* Lots of bug fixes.
|
||||
|
||||
Version 4.9.8.1
|
||||
* When creating a DLL, the created static lib respects now the project-defined output directory
|
||||
|
||||
Version 4.9.8.0
|
||||
* Changed position of compiler/linker parameters in Project Options.
|
||||
* Improved help file
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.9
|
||||
* Resource errors are now reported in the Resource sheet
|
||||
* Many bug fixes
|
||||
|
||||
Version 4.9.7.8
|
||||
* Made whole bottom report control floating instead of only debug output.
|
||||
* Many bug fixes
|
||||
|
||||
Version 4.9.7.7
|
||||
* Printing settings are now saved
|
||||
* New environment options : "watch variable under mouse" and "Report watch errors"
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.6
|
||||
* Debug variable browser
|
||||
* Added possibility to include in a Template the Project's directories (include, libs and ressources)
|
||||
* Changed tint of Class browser pictures colors to match the New Look style
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.5
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.4
|
||||
* When compiling with debugging symbols, an extra definition is passed to the
|
||||
compiler: -D__DEBUG__
|
||||
* Each project creates a <project_name>_private.h file containing version
|
||||
information definitions
|
||||
* When compiling the current file only, no dependency checks are performed
|
||||
* ~300% Speed-up in class parser
|
||||
* Added "External programs" in Tools/Environment Options (for units "Open with")
|
||||
* Added "Open with" in project units context menu
|
||||
* Added "Classes" toolbar
|
||||
* Fixed pre-compilation dependency checks to work correctly
|
||||
* Added new file menu entry: Save Project As
|
||||
* Bug-fix for double quotes in devcpp.cfg file read by vUpdate
|
||||
* Other bug fixes
|
||||
|
||||
Version 4.9.7.3
|
||||
* When adding debugging symbols on request, remove "-s" option from linker
|
||||
* Compiling progress window
|
||||
* Environment options : "Show progress window" and "Auto-close progress window"
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.2
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.1
|
||||
* "Build priority" per-unit
|
||||
* "Include file in linking process" per-unit
|
||||
* New feature: compile current file only
|
||||
* Separated C++ compiler options from C compiler options in Makefile (see bug report #654744)
|
||||
* Separated C++ include dirs from C include dirs in Makefile (see bug report #654744)
|
||||
* Necessary UI changes in Project Options
|
||||
* Added display of project filename, project output and a summary of the project files in Project Options General tab.
|
||||
* Fixed the "compiler-dirs-with-spaces" bug that crept-in in 4.9.7.0
|
||||
* Multi-select files in project-view (when "double-click to open" is configured in Environment Settings)
|
||||
* Resource files are treated as ordinary files now
|
||||
* Updates in "Project Options/Files" code
|
||||
* MSVC import now creates the folders structure of the original VC project
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.7.0
|
||||
* Allow customizing of per-unit compile command in projects
|
||||
* Added two new macros: <DATE> and <DATETIME>
|
||||
* Added support for macros in the "default source code" (Tools/Editor Options/Code)
|
||||
* Separated layout info from project file. It is now kept in a different file
|
||||
(the same filename as the project's but with extension ".layout"). If you
|
||||
have your project under CVS control, you ''ll know why this had to happen...
|
||||
* Compiler settings per-project
|
||||
* Compiler set per-project
|
||||
* Implemented new compiler settings framework
|
||||
* "Compile as C++" per-unit
|
||||
* "Include file in compilation process" per-unit
|
||||
* Project version info (creates the relevant VERSIONINFO struct in the private
|
||||
resource)
|
||||
* Support XP Themes (creates the CommonControls 6.0 manifest file and includes
|
||||
it in the private resource)
|
||||
* Added CVS "login" and "logout" commands
|
||||
* Project manager and debugging window (in Debug tab) can now be trasnformed into floating windows.
|
||||
* Added "Add Library" button in Project Options
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.6.9
|
||||
* Implemented search in help files for the word at cursor (context sensitive help)
|
||||
* Implemented "compiler sets" infrastructure to switch between different compilers easily (e.g. gcc-2.95 and gcc-3.2)
|
||||
* Added "Files" tab in CVS form to allow selection of more than one file for
|
||||
the requested CVS action
|
||||
20
|
||||
Version 4.9.6.8
|
||||
* support for DLL application hosting, for debugging and executing DLLs under Dev-C++.
|
||||
* New class browser option: "Show inherited members"
|
||||
* Added support for the '::' member access operator in code-completion
|
||||
* Added *working* function arguments hint
|
||||
* Added bracket highlighting. When the caret is on a bracket, that bracket and
|
||||
its counterpart are highlighted
|
||||
* Nested folders in project view
|
||||
|
||||
Version 4.9.6.7
|
||||
* XP Theme support
|
||||
* Added CVS commands "Add" and "Remove"
|
||||
* Added configuration option for "Templates Directory" in "Environment Options"
|
||||
* Code-completion updates
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.6.6
|
||||
* Editor colors are initialized properly on Dev-C++ first-run
|
||||
* Added doxygen-style comments in NewClass, NewMemberFunction and NewMemberVariable wizards
|
||||
* Added file's date/time stamp in File/Properties window
|
||||
* Current windows listing in Window menu
|
||||
* Bug fixes
|
||||
|
||||
Version 4.9.6.5
|
||||
* CVS support
|
||||
* Window list (in Window menu)
|
||||
* bug fixes
|
||||
|
||||
version 4.9.6.4
|
||||
* added ENTER key for opening file in project browser, DEL to delete from the project.
|
||||
* bug fixes
|
||||
|
||||
version 4.9.6.3
|
||||
* Bug fixes
|
||||
|
||||
version 4.9.6.2
|
||||
* Bug fixes
|
||||
|
||||
version 4.9.6.1
|
||||
* New "Abort compilation" button
|
||||
* Bug fixes
|
||||
* Now checks for vRoach existance when sending a crash report
|
||||
|
||||
Version 4.9.5.5
|
||||
* New option in Editor Options: Show editor hints. User can disable the hints
|
||||
displayed in the editor when the mouse moves over a word. Since this was the
|
||||
cause of many errors (although it should be fixed by now), we are giving the
|
||||
user the option to disable this feature.
|
||||
* New option in Editor Options (code-completion): Use code-completion cache.
|
||||
Well, it adds caching to code-completion. Depending on the cache size,
|
||||
the program may take a bit longer to start-up, but provides very fast
|
||||
code-completion and the user has all the commands (belonging to the files
|
||||
he added in the cache) at his fingertips. If, for example, the user adds
|
||||
"windows.h", he gets all the WinAPI! If he adds "wx/wx.h", he gets all of
|
||||
wxWindows! You get the picture...
|
||||
* Removed "Only show classes from current file" option in class browser settings.
|
||||
It used to be a checkbox, allowing only two states (on or off), but there is
|
||||
a third relevant option now: "Project classes" so it didn't fit the purpose...
|
||||
The user can define this in the class browser's context menu under "View mode".
|
||||
* Fixed the dreaded "Clock skew detected" compiler warning!
|
||||
* Fixed many class browser bugs, including some that had to do with class folders.
|
||||
|
||||
Version 4.9.5.4
|
||||
* Under NT, 2000 and XP, user application data directory will be used to store config files (i.e : C:\Documents and Settings\Username\Local Settings\Application Data)
|
||||
|
||||
Version 4.9.5.3
|
||||
* Added ExceptionsAnalyzer. If the devcpp.map file is in the devcpp.exe directory
|
||||
then we even get a stack trace in the bug report!
|
||||
* Added new WebUpdate module (inactive temporarily).
|
||||
* Added new code for code-completion caching of files (disabled - work in progress).
|
||||
|
||||
Version 4.9.5.2
|
||||
* Added new option in class-browser: Use colors
|
||||
(available when right-clicking the class-browser
|
||||
and selecting "View mode").
|
||||
* Dev-C++ now traps access violation of your programs (and of itself too ;)
|
||||
|
||||
Version 4.9.5.1
|
||||
* Implemented the "File/Export/Project to HTML" function.
|
||||
* Added "Tip of the day" system.
|
||||
* When running a source file in explorer, don't spawn new instance.
|
||||
Instead open the file in an already launched Dev-C++.
|
||||
* Class-parser speed-up (50% to 85% improvement timed!!!)
|
||||
* Many code-completion updates. Now takes into account context,
|
||||
class inheritance and visibility (shows items only from files
|
||||
#included directly or indirectly)!
|
||||
* Caching of result set of code-completion for speed-up.
|
||||
* New option "Execution/Parameters" (and "Debug/Parameters").
|
||||
|
||||
Version 4.9.5.0 (5.0 beta 5):
|
||||
* CPU Window (still in development)
|
||||
* ToDo list
|
||||
* Backtrace in debugging
|
||||
* Run to cursor
|
||||
* Folders in Project and Class Browser
|
||||
* Send custom commands to GDB
|
||||
* Makefile can now be customized.
|
||||
* Modified the behaviour of the -c param : 20
|
||||
-c <config file directory>
|
||||
* Saving of custom syntax parameter group
|
||||
* Possibility of changing compilers and tools filename.
|
||||
* Many bug fixes
|
||||
|
||||
|
||||
Version 4.9.4.1 (5.0 beta 4.1):
|
||||
|
||||
* back to gcc 2.95.3
|
||||
* Profiling support
|
||||
* new update/packages checker (vUpdate)
|
||||
* Lots of bugfixes
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# ts uid id.orig_h id.orig_p id.resp_h id.resp_p mid filename content_len mime_type md5 extraction_file excerpt
|
||||
1254722770.692743 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh - 79 FAKE_MIME - smtp-entity_10.10.1.4:1470-74.53.140.153:25_1.dat -
|
||||
1254722770.692743 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh - 1918 FAKE_MIME - - -
|
||||
1254722770.692804 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh NEWS.txt 10823 FAKE_MIME - smtp-entity_10.10.1.4:1470-74.53.140.153:25_2.dat -
|
|
@ -0,0 +1,4 @@
|
|||
# ts uid id.orig_h id.orig_p id.resp_h id.resp_p mid filename content_len mime_type md5 extraction_file excerpt
|
||||
1254722770.692743 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh - 79 FAKE_MIME 92bca2e6cdcde73647125da7dccbdd07 - -
|
||||
1254722770.692743 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh - 1918 FAKE_MIME - - -
|
||||
1254722770.692804 56gKBmhBBB6 10.10.1.4 1470 74.53.140.153 25 @50da4BEzauh NEWS.txt 10823 FAKE_MIME a968bb0f9f9d95835b2e74c845877e87 - -
|
BIN
testing/btest/Traces/smtp.trace
Normal file
BIN
testing/btest/Traces/smtp.trace
Normal file
Binary file not shown.
|
@ -2,4 +2,4 @@
|
|||
#
|
||||
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
|
||||
#
|
||||
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local bro -m -r $TRACES/wikipedia.trace test-all
|
||||
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local bro -m -r $TRACES/wikipedia.trace test-all-policy
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# @TEST-REQUIRES: grep -vq '#define BROv6' $BUILD/config.h
|
||||
# @TEST-REQUIRES: test -e $BUILD/aux/broccoli/src/libbroccoli.so || test -e $BUILD/aux/broccoli/src/libbroccoli.dylib
|
||||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run bro bro %INPUT $DIST/aux/broccoli/test/broping-record.bro
|
||||
# @TEST-EXEC: btest-bg-run bro bro %INPUT $DIST/aux/broccoli/test/broping-record.bro
|
||||
# @TEST-EXEC: btest-bg-run broccoli $BUILD/aux/broccoli/test/broping -r -c 3 127.0.0.1
|
||||
# @TEST-EXEC: btest-bg-wait -k 20
|
||||
# @TEST-EXEC: cat bro/ping.log | sed 's/one-way.*//g' >bro.log
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run sender bro -C -r $TRACES/web.trace --pseudo-realtime ../sender.bro
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run receiver bro ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-run sender bro -C -r $TRACES/web.trace --pseudo-realtime ../sender.bro
|
||||
# @TEST-EXEC: btest-bg-run receiver bro ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-wait -k 20
|
||||
#
|
||||
# @TEST-EXEC: btest-diff sender/http.log
|
||||
# @TEST-EXEC: btest-diff receiver/http.log
|
||||
# @TEST-EXEC: cmp sender/http.log receiver/http.log
|
||||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 bro -x sender/events.bst http/base | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.snd.log
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 bro -x receiver/events.bst http/base | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.rec.log
|
||||
# @TEST-EXEC: bro -x sender/events.bst http/base | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.snd.log
|
||||
# @TEST-EXEC: bro -x receiver/events.bst http/base | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.rec.log
|
||||
# @TEST-EXEC: cmp events.rec.log events.snd.log
|
||||
#
|
||||
# We don't compare the transmitted event paramerters anymore. With the dynamic
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run sender bro -C -r $TRACES/web.trace --pseudo-realtime ../sender.bro
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run receiver bro ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-run sender bro -C -r $TRACES/web.trace --pseudo-realtime ../sender.bro
|
||||
# @TEST-EXEC: btest-bg-run receiver bro ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-wait -k 20
|
||||
#
|
||||
# @TEST-EXEC: btest-diff sender/http.log
|
||||
# @TEST-EXEC: btest-diff receiver/http.log
|
||||
# @TEST-EXEC: cmp sender/http.log receiver/http.log
|
||||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 bro -x sender/events.bst | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.snd.log
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 bro -x receiver/events.bst | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.rec.log
|
||||
# @TEST-EXEC: bro -x sender/events.bst | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.snd.log
|
||||
# @TEST-EXEC: bro -x receiver/events.bst | sed 's/^Event \[[-0-9.]*\] //g' | grep '^http_' | grep -v http_stats | sed 's/(.*$//g' >events.rec.log
|
||||
# @TEST-EXEC: cmp events.rec.log events.snd.log
|
||||
#
|
||||
# We don't compare the transmitted event paramerters anymore. With the dynamic
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# @TEST-REQUIRES: test -e $BUILD/aux/broccoli/src/libbroccoli.so || test -e $BUILD/aux/broccoli/src/libbroccoli.dylib
|
||||
# @TEST-REQUIRES: test -e $BUILD/aux/broccoli/bindings/broccoli-python/_broccoli_intern.so
|
||||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run bro bro %INPUT $DIST/aux/broccoli/bindings/broccoli-python/tests/test.bro
|
||||
# @TEST-EXEC: btest-bg-run bro bro %INPUT $DIST/aux/broccoli/bindings/broccoli-python/tests/test.bro
|
||||
# @TEST-EXEC: btest-bg-run python PYTHONPATH=$DIST/aux/broccoli/bindings/broccoli-python/:$BUILD/aux/broccoli/bindings/broccoli-python python $DIST/aux/broccoli/bindings/broccoli-python/tests/test.py
|
||||
# @TEST-EXEC: btest-bg-wait -k 20
|
||||
# @TEST-EXEC: btest-diff bro/.stdout
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run sender bro %INPUT ../sender.bro
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run receiver bro %INPUT ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-run sender bro %INPUT ../sender.bro
|
||||
# @TEST-EXEC: btest-bg-run receiver bro %INPUT ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-wait 20
|
||||
#
|
||||
# @TEST-EXEC: btest-diff sender/vars.log
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 CLUSTER_NODE=manager-1 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 CLUSTER_NODE=proxy-1 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 CLUSTER_NODE=proxy-2 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 CLUSTER_NODE=worker-1 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 CLUSTER_NODE=worker-2 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run manager-1 BROPATH=$BROPATH:.. CLUSTER_NODE=manager-1 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run proxy-1 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-1 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run proxy-2 BROPATH=$BROPATH:.. CLUSTER_NODE=proxy-2 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run worker-1 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-1 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-run worker-2 BROPATH=$BROPATH:.. CLUSTER_NODE=worker-2 bro %INPUT
|
||||
# @TEST-EXEC: btest-bg-wait -k 2
|
||||
# @TEST-EXEC: btest-diff manager-1/.stdout
|
||||
# @TEST-EXEC: btest-diff proxy-1/.stdout
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT frameworks/control/controllee Communication::listen_port_clear=65531/tcp
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT test-redef frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65531/tcp Control::cmd=configuration_update
|
||||
# @TEST-EXEC: btest-bg-run controller2 BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65531/tcp Control::cmd=shutdown
|
||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controllee Communication::listen_port_clear=65531/tcp
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. bro %INPUT test-redef frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65531/tcp Control::cmd=configuration_update
|
||||
# @TEST-EXEC: btest-bg-run controller2 BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65531/tcp Control::cmd=shutdown
|
||||
# @TEST-EXEC: btest-bg-wait 1
|
||||
# @TEST-EXEC: btest-diff controllee/.stdout
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT only-for-controllee frameworks/control/controllee Communication::listen_port_clear=65532/tcp
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65532/tcp Control::cmd=id_value Control::arg=test_var
|
||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. bro %INPUT only-for-controllee frameworks/control/controllee Communication::listen_port_clear=65532/tcp
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65532/tcp Control::cmd=id_value Control::arg=test_var
|
||||
# @TEST-EXEC: btest-bg-wait -k 1
|
||||
# @TEST-EXEC: btest-diff controller/.stdout
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT frameworks/control/controllee Communication::listen_port_clear=65530/tcp
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. ENABLE_COMMUNICATION=1 bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65530/tcp Control::cmd=shutdown
|
||||
# @TEST-EXEC: btest-bg-run controllee BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controllee Communication::listen_port_clear=65530/tcp
|
||||
# @TEST-EXEC: btest-bg-run controller BROPATH=$BROPATH:.. bro %INPUT frameworks/control/controller Control::host=127.0.0.1 Control::host_port=65530/tcp Control::cmd=shutdown
|
||||
# @TEST-EXEC: btest-bg-wait 1
|
||||
|
||||
redef Communication::nodes = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run sender bro --pseudo-realtime %INPUT ../sender.bro
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run receiver bro --pseudo-realtime %INPUT ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-run sender bro --pseudo-realtime %INPUT ../sender.bro
|
||||
# @TEST-EXEC: btest-bg-run receiver bro --pseudo-realtime %INPUT ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-wait -k 1
|
||||
# @TEST-EXEC: btest-diff receiver/test.log
|
||||
# @TEST-EXEC: cmp receiver/test.log sender/test.log
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run sender bro --pseudo-realtime %INPUT ../sender.bro
|
||||
# @TEST-EXEC: btest-bg-run sender bro --pseudo-realtime %INPUT ../sender.bro
|
||||
# @TEST-EXEC: sleep 1
|
||||
# @TEST-EXEC: ENABLE_COMMUNICATION=1 btest-bg-run receiver bro --pseudo-realtime %INPUT ../receiver.bro
|
||||
# @TEST-EXEC: btest-bg-run receiver bro --pseudo-realtime %INPUT ../receiver.bro
|
||||
# @TEST-EXEC: sleep 1
|
||||
# @TEST-EXEC: btest-bg-wait -k 1
|
||||
# @TEST-EXEC: btest-diff sender/test.log
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# @TEST-EXEC: bro -b -r %DIR/rotation.trace %INPUT | egrep "test|test2" | sort >out
|
||||
# @TEST-EXEC: bro -b -r %DIR/rotation.trace %INPUT 2>&1 | egrep "test|test2" | sort >out
|
||||
# @TEST-EXEC: for i in `ls test*.log | sort`; do printf '> %s\n' $i; cat $i; done | sort | uniq >>out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
|
@ -18,10 +18,16 @@ export {
|
|||
}
|
||||
|
||||
redef Log::default_rotation_interval = 1hr;
|
||||
redef Log::default_rotation_postprocessor = "echo 1st";
|
||||
redef Log::default_rotation_postprocessor_cmd = "echo 1st";
|
||||
|
||||
function custom_rotate(info: Log::RotationInfo) : bool
|
||||
{
|
||||
print "custom rotate", info;
|
||||
return T;
|
||||
}
|
||||
|
||||
redef Log::rotation_control += {
|
||||
[Log::WRITER_ASCII, "test2"] = [$interv=30mins, $postprocessor="echo 2nd"]
|
||||
[Log::WRITER_ASCII, "test2"] = [$interv=30mins, $postprocessor=custom_rotate]
|
||||
};
|
||||
|
||||
event bro_init()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#
|
||||
# @TEST-EXEC: bro -r %DIR/rotation.trace %INPUT | grep "test" >out
|
||||
# @TEST-EXEC: for i in test-*.log; do printf '> %s\n' $i; cat $i; done >>out
|
||||
# @TEST-EXEC: bro -r %DIR/rotation.trace %INPUT 2>&1 | grep "test" >out
|
||||
# @TEST-EXEC: for i in test.*.log; do printf '> %s\n' $i; cat $i; done >>out
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
module Test;
|
||||
|
@ -18,7 +18,7 @@ export {
|
|||
}
|
||||
|
||||
redef Log::default_rotation_interval = 1hr;
|
||||
redef Log::default_rotation_postprocessor = "echo";
|
||||
redef Log::default_rotation_postprocessor_cmd = "echo";
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
|
|
12
testing/btest/policy/misc/bare-loaded-scripts.test
Normal file
12
testing/btest/policy/misc/bare-loaded-scripts.test
Normal file
|
@ -0,0 +1,12 @@
|
|||
# This test is meant to cover whether the set of scripts that get loaded by
|
||||
# default in bare mode matches a baseline of known defaults.
|
||||
#
|
||||
# As the output has absolute paths in it, we need to remove the common
|
||||
# prefix to make the test work everywhere. That's what the sed magic
|
||||
# below does. Don't ask. :-)
|
||||
|
||||
# @TEST-EXEC: bro -b misc/loaded-scripts
|
||||
# @TEST-EXEC: test -e loaded_scripts.log
|
||||
# @TEST-EXEC: cat loaded_scripts.log | awk 'NR>1{print $2}' | sed -e ':a' -e '$!N' -e 's/^\(.*\).*\n\1.*/\1/' -e 'ta' >prefix
|
||||
# @TEST-EXEC: cat loaded_scripts.log | sed "s#`cat prefix`##g" >canonified_loaded_scripts.log
|
||||
# @TEST-EXEC: btest-diff canonified_loaded_scripts.log
|
7
testing/btest/policy/misc/check-bare-test-all-policy.bro
Normal file
7
testing/btest/policy/misc/check-bare-test-all-policy.bro
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Makes sures test-all-policy.bro (which loads *all* other policy scripts)
|
||||
# compiles correctly even in bare mode.
|
||||
#
|
||||
# @TEST-EXEC: bro -b %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load test-all-policy
|
6
testing/btest/policy/misc/check-test-all-policy.bro
Normal file
6
testing/btest/policy/misc/check-test-all-policy.bro
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Makes sures test-all-policy.bro (which loads *all* other policy scripts) compiles correctly.
|
||||
#
|
||||
# @TEST-EXEC: bro %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load test-all-policy
|
|
@ -1,6 +0,0 @@
|
|||
# Makes sures test-all.bro (which loads *all* other scripts) compiles correctly.
|
||||
#
|
||||
# @TEST-EXEC: bro %INPUT >output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load test-all
|
11
testing/btest/policy/misc/init-default-coverage.bro
Normal file
11
testing/btest/policy/misc/init-default-coverage.bro
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Makes sure that all base/* scripts are loaded by default via init-default.bro;
|
||||
# and that all scripts loaded there in there actually exist.
|
||||
|
||||
@TEST-EXEC: test -d $DIST/scripts/base
|
||||
@TEST-EXEC: test -e $DIST/scripts/base/init-default.bro
|
||||
@TEST-EXEC: ( cd $DIST/scripts/base && find . -name '*.bro' ) | sort >"all scripts found"
|
||||
@TEST-EXEC: bro misc/loaded-scripts
|
||||
@TEST-EXEC: cat loaded_scripts.log | egrep -v '/build/|/loaded-scripts.bro' | awk 'NR>1{print $2}' | sed 's#/./#/#g' >loaded_scripts.log.tmp
|
||||
@TEST-EXEC: cat loaded_scripts.log.tmp | sed -e ':a' -e '$!N' -e 's/^\(.*\).*\n\1.*/\1/' -e 'ta' >prefix
|
||||
@TEST-EXEC: cat loaded_scripts.log.tmp | sed "s#`cat prefix`#./#g" | sort >init-default.bro
|
||||
@TEST-EXEC: diff -u "all scripts found" init-default.bro 1>&2
|
8
testing/btest/policy/misc/test-all-default-coverage.bro
Normal file
8
testing/btest/policy/misc/test-all-default-coverage.bro
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Makes sure that all policy/* scripts are loaded in test-all-policy.bro; and that
|
||||
# all scripts loaded there actually exist.
|
||||
|
||||
@TEST-EXEC: test -e $DIST/scripts/test-all-policy.bro
|
||||
@TEST-EXEC: test -d $DIST/scripts
|
||||
@TEST-EXEC: ( cd $DIST/scripts/policy && find . -name '*.bro' ) | sort >"all scripts found"
|
||||
@TEST-EXEC: cat $DIST/scripts/test-all-policy.bro | grep '@load' | sed 'sm^\( *# *\)\{0,\}@load *m./mg' | sort >test-all-policy.bro
|
||||
@TEST-EXEC: diff -u "all scripts found" test-all-policy.bro 1>&2
|
|
@ -1,6 +0,0 @@
|
|||
# Makes sure that all policy scripts are loading in testing.bro; and that all
|
||||
# scripts loaded there actually exist.
|
||||
|
||||
@TEST-EXEC: ( cd $DIST/policy && find . -name '*.bro' ) | sort >"all scripts found"
|
||||
@TEST-EXEC: cat $DIST/policy/test-all.bro | grep '@load' | sed 'sm^\( *# *\)\{0,\}@load *m./mg' | sort >test-all.bro
|
||||
@TEST-EXEC: diff -u "all scripts found" test-all.bro 1>&2
|
4
testing/btest/policy/protocols/smtp/basic.test
Normal file
4
testing/btest/policy/protocols/smtp/basic.test
Normal file
|
@ -0,0 +1,4 @@
|
|||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff smtp.log
|
||||
|
||||
@load base/protocols/smtp
|
25
testing/btest/policy/protocols/smtp/mime-extract.test
Normal file
25
testing/btest/policy/protocols/smtp/mime-extract.test
Normal file
|
@ -0,0 +1,25 @@
|
|||
# @TEST-REQUIRES: grep -q '#define HAVE_LIBMAGIC' $BUILD/config.h
|
||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff smtp_entities.log
|
||||
# @TEST-EXEC: btest-diff smtp-entity_10.10.1.4:1470-74.53.140.153:25_1.dat
|
||||
# @TEST-EXEC: btest-diff smtp-entity_10.10.1.4:1470-74.53.140.153:25_2.dat
|
||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT SMTP::extraction_prefix="test"
|
||||
# @TEST-EXEC: test -e test_10.10.1.4:1470-74.53.140.153:25_1.dat
|
||||
# @TEST-EXEC: test -e test_10.10.1.4:1470-74.53.140.153:25_2.dat
|
||||
|
||||
@load base/protocols/smtp
|
||||
|
||||
redef SMTP::extract_file_types=/text\/plain/;
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
Log::remove_default_filter(SMTP::SMTP_ENTITIES);
|
||||
Log::add_filter(SMTP::SMTP_ENTITIES, [$name="normalized-mime-types",
|
||||
$pred=function(rec: SMTP::EntityInfo): bool
|
||||
{
|
||||
if ( rec?$mime_type )
|
||||
rec$mime_type = "FAKE_MIME";
|
||||
return T;
|
||||
}
|
||||
]);
|
||||
}
|
23
testing/btest/policy/protocols/smtp/mime.test
Normal file
23
testing/btest/policy/protocols/smtp/mime.test
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Checks logging of mime types and md5 calculation. Mime type in the log
|
||||
# is normalized to prevent sensitivity to libmagic version.
|
||||
|
||||
# @TEST-REQUIRES: grep -q '#define HAVE_LIBMAGIC' $BUILD/config.h
|
||||
# @TEST-EXEC: bro -r $TRACES/smtp.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff smtp_entities.log
|
||||
|
||||
@load base/protocols/smtp
|
||||
|
||||
redef SMTP::generate_md5=/text\/plain/;
|
||||
|
||||
event bro_init()
|
||||
{
|
||||
Log::remove_default_filter(SMTP::SMTP_ENTITIES);
|
||||
Log::add_filter(SMTP::SMTP_ENTITIES, [$name="normalized-mime-types",
|
||||
$pred=function(rec: SMTP::EntityInfo): bool
|
||||
{
|
||||
if ( rec?$mime_type )
|
||||
rec$mime_type = "FAKE_MIME";
|
||||
return T;
|
||||
}
|
||||
]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue