Skip to content

CLI

The full CLI runs from a clone of the repository (it needs Foundry and the case repository present). The checker is also published standalone on npm.

Scaffolds a case manifest with placeholders.

Terminal window
pnpm exploitlens init --out exploitlens.manifest.json

Replays the case against both commits and writes a bundle. It prints the repository it is about to execute before running anything.

Terminal window
pnpm exploitlens run <manifest> [--root <dir>] [--out <dir>] [--run-id <id>] [--no-variants]

It exits on one question only: did the bundle it wrote verify against itself. Whether the patch holds is a separate question, answered by report.

Reads a written bundle and applies a merge policy, for CI.

Terminal window
pnpm exploitlens report <bundle-dir> [--require no-regression|verified]
  • --require no-regression (default) fails on regression and invalid.
  • --require verified fails on anything short of all four gates passing.

A bundle that fails its own verification fails at every level, because a bundle whose hashes do not hold is not evidence of anything.

The standalone checker, published on npm, needs no clone and no Foundry.

Terminal window
npx @exploitlens/verify <bundle-dir>

See Verifying a receipt.