Skip to content

Commit

Permalink
Fix correct storage path for 7zip (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangchen96 authored Jun 16, 2024
1 parent 2dc76f9 commit dab1d69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/analysis/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ def file(request, category, task_id, dlfile):
if not isinstance(path, list):
path = [path]
if USE_SEVENZIP:
zip_path = os.path.join(CUCKOO_ROOT, "storage", "analysis", f"{task_id}", f"{file_name}.zip")
zip_path = os.path.join(CUCKOO_ROOT, "storage", "analyses", f"{task_id}", f"{file_name}.zip")
sevenZipArgs = [SEVENZIP_PATH, f"-p{settings.ZIP_PWD.decode()}", "a", zip_path]
sevenZipArgs.extend(path)
try:
Expand Down
2 changes: 1 addition & 1 deletion web/apiv2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ def tasks_procmemory(request, task_id, pid="all"):
return Response(resp)

parent_folder = os.path.dirname(srcdir)
analysis_dir = os.path.join(CUCKOO_ROOT, "storage", "analysis", f"{task_id}")
analysis_dir = os.path.join(CUCKOO_ROOT, "storage", "analyses", f"{task_id}")
if pid == "all":
if not apiconf.taskprocmemory.get("all"):
resp = {"error": True, "error_value": "Downloading of all process memory dumps is disabled"}
Expand Down

0 comments on commit dab1d69

Please sign in to comment.