Skip to content

Commit

Permalink
decode name on size error
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Feb 11, 2025
1 parent 42ff0a6 commit e968263
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### [10.02.2025]
* We are now on `Poetry v2`. If you see next message, you need to upgrade your `poetry` version.
* This one might be tricky as depends if your `poetry` was installed with `apt` or script. But something like this should works:
* `curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python3 -`
```
The Poetry configuration is invalid:
- Additional properties are not allowed ('requires-poetry' was unexpected)
```
* If you see missed `crispy_bootstrap4`. Just run `poetry install` as `cape` user.

### [05.02.2025]
* Monitor update: Fix hooking deadlock with delay-loaded dlls & make LdrpCallInitRoutine hook transparent

Expand Down
9 changes: 4 additions & 5 deletions lib/cuckoo/common/demux.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,8 @@ def demux_sample(filename: bytes, package: str, options: str, use_sflock: bool =
log.error("Detected password protected office file, but no sflock is installed: poetry install")
error_list.append(
{
os.path.basename(
filename
): "Detected password protected office file, but no sflock is installed or correct password provided"
os.path.basename(filename).decode():
"Detected password protected office file, but no sflock is installed or correct password provided"
}
)

Expand All @@ -313,7 +312,7 @@ def demux_sample(filename: bytes, package: str, options: str, use_sflock: bool =
else:
error_list.append(
{
os.path.basename(filename),
os.path.basename(filename).decode():
"File too big, enable 'allow_ignore_size' in web.conf or use 'ignore_size_check' option",
}
)
Expand Down Expand Up @@ -349,7 +348,7 @@ def demux_sample(filename: bytes, package: str, options: str, use_sflock: bool =
else:
error_list.append(
{
os.path.basename(filename),
os.path.basename(filename).decode():
"File too big, enable 'allow_ignore_size' in web.conf or use 'ignore_size_check' option",
}
)
Expand Down

0 comments on commit e968263

Please sign in to comment.