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

Source Code for Module lib.common.constants

 1  # Copyright (C) 2010-2014 Cuckoo Foundation. 
 2  # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org 
 3  # See the file 'docs/LICENSE' for copying permission. 
 4   
 5  import os 
 6  from lib.common.rand import random_string 
 7   
 8   
 9  ROOT = os.path.join(os.getenv("SystemDrive"), "\\", random_string(6, 10)) 
10   
11  PATHS = {"root"   : ROOT, 
12           "logs"   : os.path.join(ROOT, "logs"), 
13           "files"  : os.path.join(ROOT, "files"), 
14           "shots"  : os.path.join(ROOT, "shots"), 
15           "memory" : os.path.join(ROOT, "memory"), 
16           "drop"   : os.path.join(ROOT, "drop")} 
17   
18  PIPE = "\\\\.\\PIPE\\" + random_string(6, 10) 
19