aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev/snort_json_get.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort-dev/snort_json_get.php')
-rw-r--r--config/snort-dev/snort_json_get.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/snort-dev/snort_json_get.php b/config/snort-dev/snort_json_get.php
index 84cc8ed7..965ac4de 100644
--- a/config/snort-dev/snort_json_get.php
+++ b/config/snort-dev/snort_json_get.php
@@ -46,6 +46,15 @@ require_once("/usr/local/pkg/snort/snort_new.inc");
session_start(); // alwaya at the very top of a php page or "Cannot send session cache limiter - headers already sent"
+// get json blocls sids
+if ($_GET['snortsamjson'] == 1) {
+
+ exec('cat /usr/local/etc/snort/sn_6TPXv7a/rules/dbBlockSplit/splitSidblock' . $_GET['fileid'] . '.block', $output);
+ echo $output[0];
+
+}
+
+
// upload created log tar to user
if ($_GET['snortGetUpdate'] == 1) {