Three gated wrappers in tools_ext.c. hydra_scan and medusa_scan name a target
and go through gated_run(); msfvenom_build has no target, runs locally and
writes an audit line before the action. Flag sets read from the tools' own
sources (hydra.1 in the thc repo, Debian medusa(1), the msfvenom opt list),
not remembered.
A hit is the tool's verdict, not ours: medusa documents exit 1/2 as
FOUND_PAIR_EXIT_HOST/_AUDIT, hydra returns 0 either way and prints the hit, so
each wrapper parses its tool's own output and records it as evidence. A run
that finds nothing writes no finding.
Refused on purpose: hydra -M, medusa -H/-C and the host-file options read
targets out of a file the gate never parsed; msfvenom -l/--list/--help/
--refresh-cache print and exit without rendering a payload. The --list hole was
found by a test, not by review.
Test evidence: 1600/1600 (was 1576); tools_ext.c line coverage 80.9 -> 83.8,
total 84.8%. Red proof, both directions: forcing hydra_found to return 0 turns
exactly "hydra_scan reads the tool's own 'valid password found' as a hit" red
with 32 green; putting -M/-H/-C back on the allowlists turns exactly the three
host-file checks red with 37 green; restored, 40/40. Full release-check exit 0,
distcheck apex-twin-1.99.0 builds and passes 1600/1600 from the tarball.