1
2
3
4
5 import os
6
7 from lib.cuckoo.common.abstracts import Processing
8 from lib.cuckoo.common.objects import File
9
11 """Dropped files analysis."""
12
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