Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
try:
import tldextract
HAVE_TLDEXTRACT = True
except ImportError:
HAVE_TLDEXTRACT = False
if repconf.mitre.enabled:
try:
from pyattck import Attck
attack_file = repconf.mitre.get("local_file", False)
if attack_file:
attack_file = os.path.join(CUCKOO_ROOT, attack_file)
else:
attack_file = False
mitre = Attck(attack_file)
HAVE_MITRE = True
except ImportError:
log.error("Missed pyattck dependency")
HAVE_MITRE = False
else:
HAVE_MITRE = False
myresolver = dns.resolver.Resolver()
myresolver.timeout = 5.0
myresolver.lifetime = 5.0
myresolver.domain = dns.name.Name("google-public-dns-a.google.com")
myresolver.nameserver = ['8.8.8.8']
class Auxiliary(object):
"""Base abstract class for auxiliary modules."""