1
2
3
4
5
6 import os
7
8 from lib.cuckoo.common.abstracts import Processing
9 from lib.cuckoo.common.objects import File
10
12 """Dropped buffer analysis."""
13
15 """Run analysis.
16 @return: list of dropped files with related information.
17 """
18 self.key = "buffer"
19 dropped_files = []
20
21 for dir_name, dir_names, file_names in os.walk(self.buffer_path):
22 for file_name in file_names:
23 file_path = os.path.join(dir_name, file_name)
24 file_info = File(file_path=file_path).get_all()
25 dropped_files.append(file_info)
26
27 return dropped_files
28