duwqijlk/browser-capture
Security & PrivacyZero-dependency CDP and stealth-Hook capture CLI and AI skill for reverse-engineering browser traffic.
This repo is an agent skill pack · 1 skillsSkill list and install →What it does
browser-capture is a Node.js command-line tool and AI-agent skill for capturing browser traffic and reverse-engineering front-end code over the Chrome DevTools Protocol (CDP). It connects to BitBrowser, AdsPower, or any Chrome/Chromium/Brave/VisibleV8 debugging port, records HTTP/HTTPS bodies and cookies, WebSocket frames, SSE/NDJSON streams and DOM storage, and can dump static and dynamically generated JavaScript plus .wasm binaries.
Three capture modes trade stealth against depth: stealth uses CDP only with no page injection; standard adds anonymous main-world Hooks; deep also collects Worker/ServiceWorker source, async call stacks, WASM and heap data. The tool implements its own WebSocket CDP client on Node's built-in fetch/WebSocket, so there are no third-party dependencies.
It is aimed at front-end reverse engineers, security researchers and authorized interface-debugging work, and can be dropped into coding/reverse-engineering agents as a standard skill.
Quick start
Requirements: Node.js >= 22 on Windows, macOS or Linux, and a running browser or fingerprint-browser client with a reachable local debugging endpoint. No npm install is needed.
git clone https://github.com/duwqijlk/browser-capture.git
cd browser-capture
node bin/capture.cjs --help
Start a basic capture against a direct Chrome port, then stop it to flush data and restore hooks:
node bin/capture.cjs start -p chrome --window 9222 --url https://example.org/
# ... browse ...
node bin/capture.cjs stop -p chrome --window 9222
node bin/capture.cjs export-har -p chrome --window 9222 --out ./capture.har
For BitBrowser and AdsPower, replace -p chrome with -p bitbrowser --window <seq> or -p adspower --window <serial_number>; the default local endpoints are documented as 127.0.0.1:54348 and 127.0.0.1:50325 respectively provider table. Deep mode adds static/dynamic source dumping, async stacks and WASM extraction:
node bin/capture.cjs start -p chrome --window 9222 --mode deep --url https://example.org/
After capture, correlate links call stacks to local source snippets, and export-har writes a HAR 1.2 file. The full command set and output layout are in the output schema. To use it as an agent skill, place the directory under ~/.claude/skills/browser-capture or the corresponding skills folder for other agents SKILL.md.
Usage constraints
- Works only against loopback endpoints (
127.0.0.1/localhost); the README states all CDP/browser APIs are restricted to local addresses. - Browser control requires provider-specific setup: BitBrowser and AdsPower must already be running locally, while direct Chrome needs a started remote-debugging port.
- Capturing full request bodies, cookies,
crypto.subtlecalls and heap snapshots produces sensitive data on disk; the output directory should be handled accordingly. - Some capabilities are mode-limited: source dumping, async stacks and WASM extraction are
deep-only, andstealthperforms no page injection at all. - MIT licensed. The README limits use to authorized debugging, security research, performance analysis and front-end learning disclaimer.
HotRepo's take
The project appeared on HotRepo's new-project list on 2026-11-23 with 102 stars gained in roughly eight hours, alongside 52 forks, so the early audience engaged by cloning rather than only starring. No GitHub all-language daily rank has been recorded, and the single snapshot cannot establish a trend. What stands out from the material is the engineering approach — zero dependencies, three inspection modes, lexical-length-preserving debugger neutralization and offline stack-to-source correlation — which is a more concrete differentiator than the "stealth" label itself. The README also points to a Telegram group framed as an "AI 羊毛" community, which is worth considering when judging the project's intended audience alongside its stated research-use scope.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- cyberkaida/reverse-engineering-assistantGhidra extension exposing reverse-engineering tools to LLM clients through an MCP server, for interactive or headless binary analysis.
- NationalSecurityAgency/ghidraAn NSA-built reverse engineering framework for disassembling and decompiling binaries when you need to understand code you cannot see.