Package lib :: Package cuckoo :: Package common :: Module whitelist
[hide private]
[frames] | no frames]

Source Code for Module lib.cuckoo.common.whitelist

 1  # Copyright (C) 2010-2013 Claudio Guarnieri. 
 2  # Copyright (C) 2014-2016 Cuckoo Foundation. 
 3  # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org 
 4  # See the file 'docs/LICENSE' for copying permission. 
 5   
 6  import os.path 
 7   
 8  from lib.cuckoo.common.constants import CUCKOO_ROOT 
 9   
10  domains = set() 
11   
12 -def is_whitelisted_domain(domain):
13 return domain in domains
14 15 # Initialize the domain whitelist. 16 for domain in open(os.path.join(CUCKOO_ROOT, "data", "whitelist", "domain.txt")): 17 domains.add(domain.strip()) 18