Home / Commands / awarexone/Agentic-Bug-Hunter

poc

Capture reproducible PoC evidence for a finding β€” raw request/response, copy-paste curl, HAR, optional screenshot, and a report-ready evidence.md. Secrets redacted by default. Usage: /poc capture <url> [-H ...] | /poc from-request req.txt [--response resp.txt]

commandLicense: MIT Source: awarexone/Agentic-Bug-Hunter

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/poc.md https://raw.githubusercontent.com/awarexone/Agentic-Bug-Hunter/HEAD/commands/poc.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/poc.md https://raw.githubusercontent.com/awarexone/Agentic-Bug-Hunter/HEAD/commands/poc.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source β†—

---
description: Capture reproducible PoC evidence for a finding β€” raw request/response, copy-paste curl, HAR, optional screenshot, and a report-ready evidence.md. Secrets redacted by default. Usage: /poc capture <url> [-H ...] | /poc from-request req.txt [--response resp.txt]
---

# /poc

Turn a finding into a **reproducible evidence bundle** β€” the exact request, the
exact response, a copy-paste `curl`, a HAR you can import into Burp, an optional
screenshot, and a `evidence.md` section ready to paste into `/report`. This is
the proof layer the report pipeline expects (`skills/report-writing`,
`commands/report.md`).

## Usage

```
/poc capture https://api.target.com/v1/users/1 -H "Authorization: Bearer $TOK" \
     --target target.com --vuln-class idor --severity high --finding-id F-12

/poc from-request req.txt --response resp.txt --target target.com --vuln-class idor
```

Run directly:

```bash
# live: send the request (SSRF-guarded) and bundle it
bughunter/tools/poc_bundler.py capture <url> -X GET -H "Cookie: session=..." \
    --target t.com --vuln-class idor --severity high --finding-id F-12 --screenshot

# offline: bundle a saved raw request (e.g. copied out of Burp)
bughunter/tools/poc_bundler.py from-request request.txt --response response.txt \
    --target t.com --vuln-class idor
```

## Output

A folder laid out exactly as `commands/report.md` expects:

```text
findings/<target>-<vuln-class>/evidence/<finding-id>/
β”œβ”€β”€ request.http      raw request you sent
β”œβ”€β”€ response.http     raw response that proves impact
β”œβ”€β”€ repro.sh          copy-paste curl reproduction
β”œβ”€β”€ evidence.har      HAR 1.2 β€” import into Burp / devtools
β”œβ”€β”€ screenshot.png    optional (best-effort via httpx)
β”œβ”€β”€ evidence.md       paste this into /report
└── bundle.json       manifest + response-body SHA-256
```

## Secrets safety (on by default)

Bug bounty evidence carries **live auth** β€” session cookies, bearer tokens, API
keys. By default every sensitive header (`Authorization`, `Cookie`, `Set-Cookie`,
`X-Api-Key`, …) is **redacted** in all artifacts so the bundle is safe to paste
into a report. `repro.sh` stays runnable by referencing each secret through an
environment variable (`$AUTHORIZATION`, `$COOKIE`, …) instead of hardcoding it.
Pass `--no-redact` only for local/personal use.

## Safety rails

- `capture` uses the repo's SSRF-guarded opener (`bughunter/tools/safe_http.py`) β€” a target
  can't 302 the capture into cloud metadata or an internal host.
- `PUT`/`DELETE`/`PATCH` are refused unless you pass `--confirm-unsafe` (they can
  mutate production state), mirroring the autopilot `SafeMethodPolicy`.
- The full response body is SHA-256'd in `bundle.json` so the evidence is
  tamper-evident; large bodies are truncated in the text artifacts but hashed in
  full.

## Wiring it in

Attach the bundle to its lead so nothing is lost:

```bash
lead_board.py touch <target> <lead_id> --status reported --finding-id F-12
```

The bundle's `evidence.md` and screenshots also surface automatically in the
`/dashboard` findings view.