From 3af7f4669442c1df754b0d1335d0d62d0ec18766 Mon Sep 17 00:00:00 2001 From: doomedraven Date: Mon, 17 Sep 2018 12:30:23 +0200 Subject: [PATCH] Update network.py --- modules/processing/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/processing/network.py b/modules/processing/network.py index eac10a646..7e6085558 100644 --- a/modules/processing/network.py +++ b/modules/processing/network.py @@ -24,6 +24,7 @@ from lib.cuckoo.common.utils import convert_to_printable from lib.cuckoo.common.exceptions import CuckooProcessingError from dns.reversename import from_address +from lib.cuckoo.common.constants import CUCKOO_ROOT try: import GeoIP @@ -111,7 +112,7 @@ def __init__(self, filepath): "\.msftncsi\.com$", ] if enabled_whitelist and whitelist_file: - with open(whitelist_file, 'r') as f: + with open(os.path.join(CUCKOO_ROOT, whitelist_file), 'r') as f: self.domain_whitelist = self.domain_whitelist + f.read().split("\n") self.ip_whitelist = set()