mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 02:32:46 +01:00
Analyzer improvements
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
import yaml
|
||||
|
||||
|
||||
def checkSupportedType(meta, artifact_type):
|
||||
@@ -20,3 +21,8 @@ def loadMetadata(file):
|
||||
filename = os.path.realpath(file).rsplit('/', 1)[1].split('.')[0]
|
||||
with open(str(dir + "/" + filename + ".json"), "r") as metafile:
|
||||
return json.load(metafile)
|
||||
|
||||
|
||||
def loadConfig(path):
|
||||
with open(str(path), "r") as conffile:
|
||||
return yaml.safe_load(conffile)
|
||||
|
||||
Reference in New Issue
Block a user