diff options
author | robiscool <robrob2626@yahoo.com> | 2009-09-11 04:17:13 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-09-11 04:17:13 -0700 |
commit | 42dd785bc1645024688058d372c08931bc1c9c08 (patch) | |
tree | 57f4242bd08dda52929b1256f43609971a1c6feb /config/snort-dev/snort_check_for_rule_updates.php | |
parent | 2ddf14eff84f79e584a324d978558f16461df05d (diff) | |
download | pfsense-packages-42dd785bc1645024688058d372c08931bc1c9c08.tar.gz pfsense-packages-42dd785bc1645024688058d372c08931bc1c9c08.tar.bz2 pfsense-packages-42dd785bc1645024688058d372c08931bc1c9c08.zip |
snort-dev, update pfsense_rules.tar.gz and md5, update pfsense voip rules sids, update auto rule update and rule block time
Diffstat (limited to 'config/snort-dev/snort_check_for_rule_updates.php')
-rw-r--r-- | config/snort-dev/snort_check_for_rule_updates.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/snort-dev/snort_check_for_rule_updates.php b/config/snort-dev/snort_check_for_rule_updates.php index 98cb82ae..0e851165 100644 --- a/config/snort-dev/snort_check_for_rule_updates.php +++ b/config/snort-dev/snort_check_for_rule_updates.php @@ -45,6 +45,12 @@ require_once("config.inc"); <?php
+$up_date_time = date('l jS \of F Y h:i:s A');
+echo "";
+echo "#########################";
+echo "$up_date_time";
+echo "#########################";
+echo "";
/* Begin main code */
/* Set user agent to Mozilla */
@@ -284,7 +290,7 @@ if ($pfsense_md5_check_ok != on) { if (file_exists("{$tmpfname}/{$pfsense_rules_filename}")) {
echo "Snortrule tar file exists...\n";
} else {
- unhide_progress_bar_status();
+
echo "There is a new set of Pfsense rules posted. Downloading...\n";
echo "May take 4 to 10 min...\n";
ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0)');
@@ -517,7 +523,7 @@ exec("/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/sync ;/bin/syn echo "Updating Alert Messages...\n";
echo "Please Wait...\n";
sleep(2);
-exec("/usr/local/bin/create-sidmap.pl /usr/local/etc/snort/rules > /usr/local/etc/snort/gen-msg.map");
+exec("/usr/local/bin/perl /usr/local/bin/create-sidmap.pl /usr/local/etc/snort/rules > /usr/local/etc/snort/gen-msg.map");
/* php code finish */
echo "The Rules update finished...\n";
|