aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordigdug3 <digdug3@zonnet.nl>2012-07-25 09:46:50 +0300
committerdigdug3 <digdug3@zonnet.nl>2012-07-25 09:46:50 +0300
commit6d53928d242f8af1d73322e6d1cfa7edf13cd3bc (patch)
treef27baeabe382ddbef52430b32fe9206ce0d00811 /config
parent47d67bc88a0fbd00b1c37c4915466834879785a0 (diff)
downloadpfsense-packages-6d53928d242f8af1d73322e6d1cfa7edf13cd3bc.tar.gz
pfsense-packages-6d53928d242f8af1d73322e6d1cfa7edf13cd3bc.tar.bz2
pfsense-packages-6d53928d242f8af1d73322e6d1cfa7edf13cd3bc.zip
Update config/snort/snort_blocked.php
Fix Snort alerts descriptions with "," like: "ET TROJAN MS Terminal Server User A Login, possible Morto inbound"
Diffstat (limited to 'config')
-rw-r--r--config/snort/snort_blocked.php25
1 files changed, 12 insertions, 13 deletions
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php
index babb6bea..6815c18d 100644
--- a/config/snort/snort_blocked.php
+++ b/config/snort/snort_blocked.php
@@ -137,15 +137,15 @@ if ($pconfig['brefresh'] == 'on')
<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php
- $tab_array = array();
- $tab_array[0] = array(gettext("Snort Interfaces"), false, "/snort/snort_interfaces.php");
- $tab_array[1] = array(gettext("Global Settings"), false, "/snort/snort_interfaces_global.php");
- $tab_array[2] = array(gettext("Updates"), false, "/snort/snort_download_updates.php");
- $tab_array[3] = array(gettext("Alerts"), false, "/snort/snort_alerts.php");
- $tab_array[4] = array(gettext("Blocked"), true, "/snort/snort_blocked.php");
- $tab_array[5] = array(gettext("Whitelists"), false, "/snort/snort_interfaces_whitelist.php");
- $tab_array[6] = array(gettext("Suppress"), false, "/snort/snort_interfaces_suppress.php");
- display_top_tabs($tab_array);
+ $tab_array = array();
+ $tab_array[0] = array(gettext("Snort Interfaces"), false, "/snort/snort_interfaces.php");
+ $tab_array[1] = array(gettext("Global Settings"), false, "/snort/snort_interfaces_global.php");
+ $tab_array[2] = array(gettext("Updates"), false, "/snort/snort_download_updates.php");
+ $tab_array[3] = array(gettext("Alerts"), false, "/snort/snort_alerts.php");
+ $tab_array[4] = array(gettext("Blocked"), true, "/snort/snort_blocked.php");
+ $tab_array[5] = array(gettext("Whitelists"), false, "/snort/snort_interfaces_whitelist.php");
+ $tab_array[6] = array(gettext("Suppress"), false, "/snort/snort_interfaces_suppress.php");
+ display_top_tabs($tab_array);
?>
</td></tr>
<tr>
@@ -208,10 +208,9 @@ if ($pconfig['brefresh'] == 'on')
if ($fd) {
/* 0 1 2 3 4 5 6 7 8 9 10 11 12
/* File format timestamp,sig_generator,sig_id,sig_rev,msg,proto,src,srcport,dst,dstport,id,classification,priority */
- while(($fileline = @fgets($fd))) {
- if (empty($fileline))
+ while (($fields = fgetcsv($fd, 1000, ',', '"')) !== FALSE) {
+ if(count($fields) < 11)
continue;
- $fields = explode(",", $fileline);
if (isset($tmpblocked[$fields[6]])) {
if (!is_array($src_ip_list[$fields[6]]))
@@ -270,4 +269,4 @@ if ($pconfig['brefresh'] == 'on')
include("fend.inc");
?>
</body>
-</html>
+</html> \ No newline at end of file