diff --git a/Dockerfile b/Dockerfile index fe69aa9..41e4c21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR / # Install build tools and dependencies RUN apt-get update && apt-get install -y \ wget \ - default-jre \ + default-jdk \ ruby \ zip \ 7zip diff --git a/aperisolve/analyzers/binwalk.py b/aperisolve/analyzers/binwalk.py index 32d6fec..69920e7 100644 --- a/aperisolve/analyzers/binwalk.py +++ b/aperisolve/analyzers/binwalk.py @@ -44,7 +44,9 @@ def analyze_binwalk(input_img: Path, output_dir: Path) -> None: if extracted_dir.exists(): shutil.rmtree(extracted_dir) - if len(stderr) > 0: + # Only report error if stderr exists AND extraction failed. + # If zip_exist is True, binwalk worked (despite warnings), so we proceed. + if len(stderr) > 0 and not zip_exist: err = { "binwalk": { "status": "error",