Ticket #30: Bro_scan_patch.txt

File Bro_scan_patch.txt, 932 bytes (added by seth, 3 years ago)
Line 
1[brother@dtmb ~/work/policy]$ svn diff notice.bro
2Index: notice.bro
3===================================================================
4--- notice.bro  (revision 6442)
5+++ notice.bro  (working copy)
6@@ -355,7 +355,7 @@
7 
8                        if ( action == NOTICE_DROP )
9                                {
10-                               local drop = Drop::drop_address(n$src, "");
11+                               local drop = Drop::drop_address(n$src, n$msg);
12                                local addl =
13                                        drop?$sub ? fmt(" %s", drop$sub) : "";
14                                n$dropped =
15
16
17[brother@dtmb ~/work/policy]$ svn diff drop.bro
18Index: drop.bro
19===================================================================
20--- drop.bro    (revision 6442)
21+++ drop.bro    (working copy)
22@@ -153,7 +153,7 @@
23                                $msg=fmt("%s%s", a, msg)]);
24        else
25                {
26-               system(fmt("%s %s", Drop::drop_connectivity_script, a));
27+               system(fmt("%s %s \"%s\"", Drop::drop_connectivity_script, a, str_shell_escape(msg)));
28 
29                if ( di$tot_drop_count == 0 )
30                        do_notice([$note=Drop::AddressDropped, $src=a,