Skip to content

Commit

Permalink
Merge pull request #115 from doomedraven/patch-3
Browse files Browse the repository at this point in the history
Update network.py
  • Loading branch information
kevoreilly authored Sep 17, 2018
2 parents e13f0ae + 3af7f46 commit c86e080
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 c86e080

Please sign in to comment.