Skip to content

Commit

Permalink
Update network.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored Sep 17, 2018
1 parent 1e9cd75 commit 3af7f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/processing/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 3af7f46

Please sign in to comment.