def memorydumps_list(task_id):
folder_path = os.path.join(CUCKOO_ROOT, "storage", "analyses", str(task_id), "memory")
if os.path.exists(folder_path):
memory_files = []
memory_path = os.path.join(CUCKOO_ROOT, "storage", "analyses", str(task_id), "memory")
for subdir, dirs, files in os.walk(memory_path):
for filename in files:
memory_files.append(filename.replace(".dmp", ""))
if len(memory_files) == 0:
return json_error(404, "Memory dump not found")
return jsonify({"dump_files": memory_files})
else:
return json_error(404, "Memory dump not found")
评论列表
文章目录