Skip to content

Commit

Permalink
intrusion detection: fix to backend scripts after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Jan 13, 2018
1 parent 53f11e2 commit 921b54d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/opnsense/scripts/suricata/listAlertLogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
list all available alert logs
"""

import sys
sys.path.insert(0, "/usr/local/opnsense/site-python")
import os
import glob
import ujson
import time
import datetime
from lib import suricata_alert_log
from lib.log import reverse_log_reader
from log_helper import reverse_log_reader

if __name__ == '__main__':
result = []
Expand Down
5 changes: 3 additions & 2 deletions src/opnsense/scripts/suricata/queryInstalledRules.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
parameters: list of parameters used
"""

import sys
sys.path.insert(0, "/usr/local/opnsense/site-python")
import ujson
from lib.rulecache import RuleCache
from lib.params import update_params

from params import update_params

# Because rule parsing isn't very useful when the rule definitions didn't change we create a single json file
# to hold the last results (combined with creation date and number of files).
Expand Down

0 comments on commit 921b54d

Please sign in to comment.