Fetch PoC repository contents
cve_fetch_poc_codeFetch proof-of-concept code from a GitHub repository, including top-level files and README, to inspect exploit implementations for authorized security research and validation.
Instructions
Fetch the actual proof-of-concept material from a GitHub repository: its top-level file listing plus the decoded README (bounded in size).
Use after cve_get_pocs to inspect a specific PoC. Intended for authorized security research and defensive validation. Set GITHUB_TOKEN to raise rate limits and access more repos.
Args:
repo (string): 'owner/repo' or a full github.com URL.
response_format ('markdown'|'json', default 'markdown').
Returns (json): { fullName, htmlUrl, files[], readme, readmeTruncated }.
Examples:
cve_fetch_poc_code(repo="kozmer/log4j-shell-poc").
cve_fetch_poc_code(repo="https://github.com/kozmer/log4j-shell-poc").
Errors:
"GitHub rate limit exceeded (429)" — set GITHUB_TOKEN.
"GitHub has no record for that identifier (404)" — repo not found or private.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repo as 'owner/repo' or a full github.com URL (typically from cve_get_pocs). | |
| response_format | No | Output format: 'markdown' (default, human-readable) or 'json' (full structured data). | markdown |