Skip to content

Commit 0e8900b

Browse files
author
Andriy Brukhovetskyy
committed
Merge branch 'master' of github.com:kevoreilly/CAPEv2
2 parents 35dedb0 + 6ab5264 commit 0e8900b

File tree

6 files changed

+94
-223
lines changed

6 files changed

+94
-223
lines changed

analyzer/windows/dll/capemon.dll

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### [27.01.2025]
2+
* Monitor update: Fix import reconstruction (advanced submission option)
3+
14
### [23.01.2025]
25
* Monitor update: Fix bug with dumping PE images with abnormally large PE header (e.g. 5ba3d13c57f6b08f34d8ec4f200091b458fdf48141c23ce959d9cda4804a7f5e) (thanks Kevin Ross)
36

requirements.txt

Lines changed: 84 additions & 211 deletions
Large diffs are not rendered by default.

utils/process.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -286,18 +286,11 @@ def processing_finished(future):
286286
_ = future.result()
287287
log.info("Reports generation completed for Task #%d", task_id)
288288
except TimeoutError as error:
289-
exc_clsname = error.__class__.__name__
290-
exc_message = str(error) or "unknown error"
291-
log.error("[%d] Processing Timeout %s. Function: %s - %s", task_id, exc_message, error.args[1], exc_clsname)
292-
Database().set_status(task_id, TASK_FAILED_PROCESSING)
293-
except pebble.ProcessExpired as error:
294-
exc_clsname = error.__class__.__name__
295-
exc_message = str(error) or "unknown error"
296-
log.error("[%d] Exception when processing task: %s - %s", task_id, exc_message, exc_clsname, exc_info=True)
297-
Database().set_status(task_id, TASK_FAILED_PROCESSING)
298-
except Exception as error:
289+
log.error("[%d] Processing timeout: %s. Function: %s", task_id, error, error.args[1])
290+
db.set_status(task_id, TASK_FAILED_PROCESSING)
291+
except (pebble.ProcessExpired, Exception) as error:
299292
log.error("[%d] Exception when processing task: %s", task_id, error, exc_info=True)
300-
Database().set_status(task_id, TASK_FAILED_PROCESSING)
293+
db.set_status(task_id, TASK_FAILED_PROCESSING)
301294

302295
pending_future_map.pop(future)
303296
pending_task_id_map.pop(task_id)

web/analysis/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2515,7 +2515,9 @@ def on_demand(request, service: str, task_id: str, category: str, sha256):
25152515
"xlsdeobf",
25162516
"strings",
25172517
"floss",
2518-
) and not getattr(on_demand_config_mapper.get(service, {}), service).get("on_demand"):
2518+
) and not getattr(
2519+
on_demand_config_mapper.get(service, {}), service
2520+
).get("on_demand"):
25192521
return render(request, "error.html", {"error": "Not supported/enabled service on demand"})
25202522

25212523
# Self Extracted support folder

0 commit comments

Comments
 (0)