mirror of
https://github.com/lunchcat/sif.git
synced 2026-06-12 19:11:25 -07:00
5050900f29
the old scanner surfaced every response that wasn't 404/403, so modern SPA catch-all 200s flooded the output and made -dirlist near-useless. add ffuf-style matching: - -mc/-fc/-fr and -fs/-fw filter by status, regex, body size and word count; bodies are read through a capped io.LimitReader so size/word counts are deterministic and memory stays flat. filters win over matches. - -ac auto-calibrates the soft-404 baseline from a few deterministic non-existent paths and drops responses matching that wildcard shape. - -w overrides the size switch with a local file or remote list (fetched through the shared client so proxy/rate-limit apply); -e appends extensions per word. size and words are added to DirectoryResult for the json output.