Package modules :: Package processing :: Module dropped
[hide private]
[frames] | no frames]

Source Code for Module modules.processing.dropped

 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   
 7  from lib.cuckoo.common.abstracts import Processing 
 8  from lib.cuckoo.common.objects import File 
 9   
10 -class Dropped(Processing):
11 """Dropped files analysis.""" 12
13 - def run(self):
14 """Run analysis. 15 @return: list of dropped files with related information. 16 """ 17 self.key = "dropped" 18 dropped_files = [] 19 20 for dir_name, dir_names, file_names in os.walk(self.dropped_path): 21 for file_name in file_names: 22 file_path = os.path.join(dir_name, file_name) 23 file_info = File(file_path=file_path).get_all() 24 dropped_files.append(file_info) 25 26 return dropped_files
27