Repository navigation
Prepared on 2026-11-26.
Dayı Stego Solver 4.5.2 is a stability patch for
https://github.com/MacallanTheRoot/DayiStegoSolver. It ships the fixes merged
since 4.5.1 together with two small corrections found during release review.
Behavior change: stop after the first confirmed flag
Once any plugin reports a confirmed flag (in its output or in extracted
files), Dayı stops the scan:
- still-running
CONCURRENTplugins are cancelled and their subprocesses and
temporary files are cleaned up; - the archive, mini-wordlist and main-wordlist phases are not started;
- the TXT/JSON/Markdown reports, CTFd/Discord integrations and retained
workspace artifacts are still produced from the results collected so far.
What this means for you:
- Scans that find a flag usually finish sooner and run fewer brute-force
attempts. - A report may list fewer tools. Plugins that were cancelled or never started
do not appear in it. - If a challenge hides more than one flag, or the first match is a decoy,
later findings are not collected. 4.5.2 has no full-scan mode and no
option to turn the early stop off.
Fixed
- Flags in external-tool output (strings, exiftool, exiv2, binwalk, steghide,
stegseek, zsteg, OutGuess) are found while the output is drained. Flags past
the retained 10 MiB prefix and flags printed before a timeout are kept. The
stream each flag came from is shown in a newstream_flagsreport field. - A plugin that raises a timeout error is reported as timed out, not as an
unexpected error. - QR and OCR reliability: QR checks for supported images before choosing a
backend; OpenCV worker threads are limited in one shared helper; OCR adds a
bounded high-zoom band variant for large images and a small, regex-gated
repair set for common misreads (!fori, punctuation for_, flag
prefix case). - Text steganography: case-as-bit binary ASCII, SNOW-style trailing
whitespace and more whitespace-binary layouts, all behind a strict printable
filter and per-stream candidate cap. - File-type detection reads a bounded 4 KiB prefix and recognizes UTF-8 text,
so image-only tools skip text files. dayi doctorreports Python 3.14 and newer as unsupported, matching the
package's declared range, and its text output shows the maximum supported
version. On those versions it now exits 1 instead of 0.
Security
--flagpatterns are also checked on the parsed regex. Variable-count
repeats or alternations nested inside a variable-count repeat are rejected,
as are fixed-count repeats whose nested choices multiply past 256. This
closes bypasses such as(a{1,})+b,(?:a{1,40}){1,40}b,((a+))+band
(?:a?){30}b. Patterns such as(?:\d{1,3}\.){3}\d{1,3}and
CTF\{(?:[0-9a-f]{2}){16}\}are still accepted.
Rejected patterns produce the existing invalid-pattern error and exit 1.- A
--flagpattern with an oversized repeat count now produces the same
invalid-pattern error instead of a Python traceback. - This check is a heuristic. It does not make arbitrary user regexes safe:
some super-linear patterns are still accepted, and matching runs in-process
without a time limit. Accepted examples include adjacent unbounded repeats
such as\d+\d+\d+xand optional items written out one after another
(a?a?a?…aaa…); 4.5.1 accepted them too. Prefer simple patterns with a
literal prefix, such asCTF\{[^}]+\}.
Compatibility
- Python support remains CPython 3.10 through 3.13.
- The core has no mandatory runtime dependencies; optional dependencies keep
degrading cleanly when unavailable. - The deterministic registry remains at 22 plugins, including 12 operations in
theCONCURRENTphase. - CLI options, the
dayientry point and the doctor and plugin JSON schemas
(schema_version1) are unchanged. Scan exit codes keep their meaning
(0, 1, 130), but a--flagpattern that 4.5.1 accepted may now be rejected
and exit 1 (see Security). The scan JSON report gains the additive
stream_flagsfield.
Known limitations
- No full-scan mode: the scan always stops after the first confirmed flag.
- Thread-based work (binwalk post-processing, QR and OCR decoding) cannot be
interrupted, so the early stop and Ctrl+C may wait for it to finish. - Files and outputs above the documented size limits are still skipped or
truncated without a note in the report.
Detection remains bounded and heuristic. This patch does not claim perfect
detection, complete sandboxing, or universal CTF challenge coverage.
Verification
Release commit 3d1756cc3a0ad76bb30d5b02878b739a71174b64 (merge of #5), tag v4.5.2.
- GitHub Actions on the release commit (run 45876947247): tests on CPython 3.10, 3.11, 3.12 and 3.13 each reported 654 passed, 8 skipped, 262 subtests passed, with pyflakes, compileall and
git diff --check; the build and clean-install smoke job passed. - The 8 skipped tests need optional dependencies that the core-only CI does not install (Pillow, Scapy, oletools, pypdf, local QR libraries). Those tests were not run for this release.
- The attached wheel and source archive were built from a clean checkout of the release commit, checked with
scripts/validate_distribution.py, and installed with--no-depsinto fresh virtual environments:dayi --versionreports 4.5.2, there are no mandatory runtime dependencies, anddayi plugins list --jsonreports 22 plugins (12 in theCONCURRENTphase).
Installation
sha256sum -c SHA256SUMS
python -m pip install dayi_stego_solver-4.5.2-py3-none-any.whlRequires CPython 3.10–3.13. This release is published on GitHub only; it is not uploaded to PyPI.
Checksums (SHA-256)
ccd2ff723015cdb86948c03a26f84f0ae57995a07cee42b59236eeaa8366c818 dayi_stego_solver-4.5.2-py3-none-any.whl
10a61d8c3d40faa9b9c44e1a9deb92264b5d6377f4407115b7c16d673ec7ada0 dayi_stego_solver-4.5.2.tar.gz