Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kevoreilly/CAPEv2
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriy Brukhovetskyy committed Jan 27, 2025
2 parents 35dedb0 + 6ab5264 commit 0e8900b
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 223 deletions.
Binary file modified analyzer/windows/dll/capemon.dll
Binary file not shown.
Binary file modified analyzer/windows/dll/capemon_x64.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### [27.01.2025]
* Monitor update: Fix import reconstruction (advanced submission option)

### [23.01.2025]
* Monitor update: Fix bug with dumping PE images with abnormally large PE header (e.g. 5ba3d13c57f6b08f34d8ec4f200091b458fdf48141c23ce959d9cda4804a7f5e) (thanks Kevin Ross)

Expand Down
295 changes: 84 additions & 211 deletions requirements.txt

Large diffs are not rendered by default.

15 changes: 4 additions & 11 deletions utils/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,18 +286,11 @@ def processing_finished(future):
_ = future.result()
log.info("Reports generation completed for Task #%d", task_id)
except TimeoutError as error:
exc_clsname = error.__class__.__name__
exc_message = str(error) or "unknown error"
log.error("[%d] Processing Timeout %s. Function: %s - %s", task_id, exc_message, error.args[1], exc_clsname)
Database().set_status(task_id, TASK_FAILED_PROCESSING)
except pebble.ProcessExpired as error:
exc_clsname = error.__class__.__name__
exc_message = str(error) or "unknown error"
log.error("[%d] Exception when processing task: %s - %s", task_id, exc_message, exc_clsname, exc_info=True)
Database().set_status(task_id, TASK_FAILED_PROCESSING)
except Exception as error:
log.error("[%d] Processing timeout: %s. Function: %s", task_id, error, error.args[1])
db.set_status(task_id, TASK_FAILED_PROCESSING)
except (pebble.ProcessExpired, Exception) as error:
log.error("[%d] Exception when processing task: %s", task_id, error, exc_info=True)
Database().set_status(task_id, TASK_FAILED_PROCESSING)
db.set_status(task_id, TASK_FAILED_PROCESSING)

pending_future_map.pop(future)
pending_task_id_map.pop(task_id)
Expand Down
4 changes: 3 additions & 1 deletion web/analysis/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,9 @@ def on_demand(request, service: str, task_id: str, category: str, sha256):
"xlsdeobf",
"strings",
"floss",
) and not getattr(on_demand_config_mapper.get(service, {}), service).get("on_demand"):
) and not getattr(
on_demand_config_mapper.get(service, {}), service
).get("on_demand"):
return render(request, "error.html", {"error": "Not supported/enabled service on demand"})

# Self Extracted support folder
Expand Down

0 comments on commit 0e8900b

Please sign in to comment.