mirror of https://github.com/MISP/misp-modules
Merge pull request #223 from chrisr3d/master
commit
79633242c8
|
@ -7,7 +7,7 @@ try:
|
||||||
resolver = dns.resolver.Resolver()
|
resolver = dns.resolver.Resolver()
|
||||||
resolver.timeout = 0.2
|
resolver.timeout = 0.2
|
||||||
resolver.lifetime = 0.2
|
resolver.lifetime = 0.2
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
print("dnspython3 is missing, use 'pip install dnspython3' to install it.")
|
print("dnspython3 is missing, use 'pip install dnspython3' to install it.")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ try:
|
||||||
resolver = dns.resolver.Resolver()
|
resolver = dns.resolver.Resolver()
|
||||||
resolver.timeout = 0.2
|
resolver.timeout = 0.2
|
||||||
resolver.lifetime = 0.2
|
resolver.lifetime = 0.2
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
print("dnspython3 is missing, use 'pip install dnspython3' to install it.")
|
print("dnspython3 is missing, use 'pip install dnspython3' to install it.")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ try:
|
||||||
from sigma.parser import SigmaCollectionParser
|
from sigma.parser import SigmaCollectionParser
|
||||||
from sigma.config import SigmaConfiguration
|
from sigma.config import SigmaConfiguration
|
||||||
from sigma.backends import getBackend, BackendOptions
|
from sigma.backends import getBackend, BackendOptions
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
print("sigma or yaml is missing, use 'pip3 install sigmatools' to install it.")
|
print("sigma or yaml is missing, use 'pip3 install sigmatools' to install it.")
|
||||||
|
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
|
|
|
@ -3,7 +3,7 @@ try:
|
||||||
import yaml
|
import yaml
|
||||||
from sigma.parser import SigmaParser
|
from sigma.parser import SigmaParser
|
||||||
from sigma.config import SigmaConfiguration
|
from sigma.config import SigmaConfiguration
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
print("sigma or yaml is missing, use 'pip3 install sigmatools' to install it.")
|
print("sigma or yaml is missing, use 'pip3 install sigmatools' to install it.")
|
||||||
|
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
try:
|
try:
|
||||||
from stix2patterns.validator import run_validator
|
from stix2patterns.validator import run_validator
|
||||||
except ModuleNotFoundError:
|
except ImportError:
|
||||||
print("stix2 patterns python library is missing, use 'pip3 install stix2-patterns' to install it.")
|
print("stix2 patterns python library is missing, use 'pip3 install stix2-patterns' to install it.")
|
||||||
|
|
||||||
misperrors = {'error': 'Error'}
|
misperrors = {'error': 'Error'}
|
||||||
|
|
Loading…
Reference in New Issue