cap

MITM proxy built for reverse engineering. LLM-ready output, multi-language codegen, sign algorithm inference, native desktop GUI.

Go Single Binary MIT License CLI + GUI

Why cap?

CapabilityBurp SuitemitmproxyHTTP Toolkitcap
CLI Automation✗✓✗✓
Native GUIJava△ basicElectronWails + Svelte
LLM/Agent OutputXMLHARHARCompact JSONL
Multi-lang Codegen✗curl+py✗5 languages
Sign Detection✗✗✗✓ auto
Sign Inference✗✗✗MD5/SHA/HMAC
Source Mapping✗✗✗jadx → URL
Android SetupmanualmanualappADB direct
Request ReplayRepeater✗✗✓ + modify
API Auto-Grouping✗✗✗host + path
Flow Comparison✗✗✗side-by-side
Sequence Replay✗✗✗token propagation
Protobuf Decode✗addon✗schema-less
Traffic Dashboard✗✗✗P95 / timeline
HAR/Charles Import✓✓✓✓
Plugin SystemBAppaddon✗live editor
Embedded Terminal✗✗✗multi-tab
Open Source$449/yr✓coreMIT

Features

MITM Proxy

HTTP/HTTPS interception with auto-generated ECDSA CA. SQLite persistence with WAL mode. Noise header stripping.

Android One-Command

cap android connect — sets proxy via ADB, injects CA cert (mount --bind / Magisk / legacy). Supports Android 7–15.

Multi-Language Export

Generate runnable code from any captured request: cURL, Python requests, Go net/http, Java OkHttp3, JavaScript fetch.

LLM-Ready JSONL

Compact one-line-per-flow output. Noise stripped, sign params tagged, bodies inline. Feed directly to your coding agent.

Sign Inference

Analyzes sign parameter values across requests. Guesses MD5/SHA1/SHA256/HMAC by length, encoding, and brute-force verification.

Source Mapping

Scans jadx decompiled output for Retrofit annotations and OkHttp patterns. Links each captured URL to its source file and method.

Request Replay

Replay any captured request. Modify headers, body, URL before sending. Diff the original and replayed responses.

WebSocket & SSE

Capture WebSocket frames (text/binary, both directions) and Server-Sent Events streams alongside HTTP flows.

Embedded Terminal

Multi-tab PTY terminal inside the GUI. Run adb, frida, curl without leaving the app. Geek-style monospace interface.

Install

git clone https://github.com/overkazaf/cap.git
cd cap
go build -o cap ./cmd/cap
./cap --help

Requirements: Go 1.21+, macOS or Linux. GUI needs Xcode CLI tools on macOS.

Quick Start

# Start proxy
cap start -a 0.0.0.0:8080

# Connect Android
cap android connect

# View flows
cap flows --host api.example.com

# Export code
cap export --flow f1 --lang python

# Feed to LLM
cap export --format agent | pbcopy

# Desktop GUI
cap gui