Fix openstego when no password

This commit is contained in:
Zeecka
2026-01-02 17:29:21 +01:00
parent 07d800d583
commit 2ee0e97a0d
+6
View File
@@ -49,6 +49,12 @@ class OpenStegoAnalyzer(SubprocessAnalyzer):
"""Process the stdout/stderr.""" """Process the stdout/stderr."""
return stderr return stderr
def process_error(self, stdout: str, stderr: str) -> str:
"""Process the stderr."""
if "OpenStego is a steganography application" in stderr:
return "OpenStego needs a password to work."
return stderr
def analyze_openstego(input_img: Path, output_dir: Path, password: str = "") -> None: def analyze_openstego(input_img: Path, output_dir: Path, password: str = "") -> None:
"""Analyze an image submission using openstego.""" """Analyze an image submission using openstego."""