A module registry in src/tools_exploit.c with eight modules and one
check/run path. check proves the bug with a marker this process
generates, run carries what the operator supplies; a confirmed hit
saves evidence, writes a finding with CVE/CWE/severity and records an
audit line before it acts. The gate decides the target, nothing else
is decided for the operator.
Modules: shellshock (CVE-2014-6271), log4shell (CVE-2021-44228,
loopback JNDI listener or callback_base), struts2_s2045
(CVE-2017-5638), tomcat_put (CVE-2017-12617, check cleans up),
redis_write (CVE-2022-0543), cmd_inject (six operators, op=auto),
traversal (CVE-2021-41773/42013), jenkins_script (Groovy console).
payload_list/payload_build: templates with {lhost}/{lport} and ten
encoders. Shared helpers instead of copies: the callback listener moved
to apex_cb_open/apex_cb_wait, http_once passes headers through the curl
path so a module can inject a header over TLS, and the default
User-Agent no longer overrides the operator's.
Tests: 1564 end-to-end checks (was 1521), 420 tools (was 414), coverage
84.8%. Red proof: setting confirmed=0 in the shellshock branch turns
exactly the four shellshock checks red (1555/4), restored afterwards.
make release-check exit 0; distcheck builds and passes 1.97.0 from the
tarball. Gate audit parses tools_exploit.c and its indirect
exploit_call() gate path: 420 tools, 6 record-filter exceptions.