agentleFS
usk6666usk6666/yorishiro-proxy/.claude/skills/pentest-proxy/SKILL.md

pentest-proxy

Skill16 starsChanged 3 months agoApache-2.0View on GitHub

Pentest temporary-use workflow using yorishiro-proxy as an MITM proxy via CLI

  • Deletes or force-pushes

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use yorishiro-proxy as an MITM proxy during penetration testing via CLI.

    line 8
  2. Very specific:

    All commands use the yorishiro-proxy client subcommand over Bash.

    line 9
  3. Distinctive:

    Check if a server is already running:

    line 18
  4. Distinctive:

    If no active server is found, start one:

    line 24
  5. Distinctive:

    Verify it is ready:

    line 30
  6. Distinctive:

    Check fuzz job status and retrieve results:

    line 104
  7. Distinctive:

    Stop the proxy listener and delete flow data:

    line 129
  8. Distinctive:

    If the response contains User A's data, an IDOR vulnerability exists.

    line 164
  9. Distinctive:

    If the unauthenticated response still returns protected data, an auth bypass exists.

    line 202

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/pentest-proxy

Use yorishiro-proxy as an MITM proxy during penetration testing via CLI. All commands use the yorishiro-proxy client subcommand over Bash.

Prerequisites

  • yorishiro-proxy binary is available on PATH
  • Target application is accessible from the proxy host

1. Server Startup

Check if a server is already running:

yorishiro-proxy client list-servers

If no active server is found, start one:

yorishiro-proxy server -mcp-http-addr 127.0.0.1:9090 &

Verify it is ready:

yorishiro-proxy client query resource=status

2. Start Proxy Listener

yorishiro-proxy client proxy_start listen_addr=127.0.0.1:8080

Configure the target application or browser to use 127.0.0.1:8080 as its HTTP proxy.

3. Install CA Certificate

Export the CA certificate for HTTPS interception:

yorishiro-proxy client query resource=ca_cert

Install the output PEM into the target's trust store.

4. Configure TLS Passthrough (Optional)

Bypass TLS interception for specific upstream hosts (these hosts will NOT be intercepted):

yorishiro-proxy client configure tls_passthrough.add='*.cdn.example.com,static.example.com'

5. Capture Traffic

Send requests through the proxy (e.g., curl, browser, or the target app) and list captured flows:

yorishiro-proxy client query resource=flows limit=20

6. Inspect a Flow

yorishiro-proxy client query flow FLOW_ID
yorishiro-proxy client query messages FLOW_ID

Note: query supports positional args: first arg is resource, second is id.

7. Resend a Request

Replay a recorded request as-is:

yorishiro-proxy client resend action=resend params.flow_id=FLOW_ID

Compare the original and replayed responses:

yorishiro-proxy client resend action=compare params.flow_id_a=ORIGINAL_ID params.flow_id_b=REPLAYED_ID

8. Fuzz a Parameter

Launch a fuzz campaign against a captured flow. The fuzz tool requires structured JSON for positions and payload sets, so use @- (stdin) or a JSON file for complex configurations:

yorishiro-proxy client fuzz action=fuzz params.flow_id=FLOW_ID \
  params.attack_type=sequential \
  params.positions='[{"id":"pos-0","location":"query","name":"search","payload_set":"payloads"}]' \
  params.payload_sets='{"payloads":{"type":"wordlist","values":["test1","test2","test3"]}}'

Check fuzz job status and retrieve results:

yorishiro-proxy client query resource=fuzz_jobs
yorishiro-proxy client query resource=fuzz_results fuzz_id=FUZZ_ID

Control a running fuzz job:

yorishiro-proxy client fuzz action=fuzz_pause params.fuzz_id=FUZZ_ID
yorishiro-proxy client fuzz action=fuzz_resume params.fuzz_id=FUZZ_ID
yorishiro-proxy client fuzz action=fuzz_cancel params.fuzz_id=FUZZ_ID

9. Export Results

Export flows as HAR for reporting:

yorishiro-proxy client manage action=export_flows params.format=har params.output_path=flows.har

10. Cleanup

Stop the proxy listener and delete flow data:

yorishiro-proxy client proxy_stop
yorishiro-proxy client manage action=delete_flows params.flow_id=FLOW_ID

To delete all flows:

yorishiro-proxy client manage action=delete_flows params.confirm=true

Typical Scenarios

IDOR Detection

  1. Authenticate as User A, browse the target to capture flows:
    yorishiro-proxy client query resource=flows limit=50
  2. Identify a flow containing a user-specific resource ID (e.g., /api/users/123/profile):
    yorishiro-proxy client query flow FLOW_ID
  3. Resend the request (still as User A) to confirm baseline:
    yorishiro-proxy client resend action=resend params.flow_id=FLOW_ID
  4. Switch to User B credentials and resend the same flow. Compare responses:
    yorishiro-proxy client resend action=compare params.flow_id_a=USER_A_FLOW params.flow_id_b=USER_B_FLOW
  5. If the response contains User A's data, an IDOR vulnerability exists.

SQL Injection Testing

  1. Capture a flow containing a parameter of interest:
    yorishiro-proxy client query resource=flows limit=20
    yorishiro-proxy client query messages FLOW_ID
  2. Launch a fuzz campaign against the flow:
    yorishiro-proxy client fuzz action=fuzz params.flow_id=FLOW_ID \
      params.attack_type=sequential \
      params.positions='[{"id":"pos-0","location":"query","name":"id","payload_set":"sqli"}]' \
      params.payload_sets='{"sqli":{"type":"wordlist","values":["'\''","1 OR 1=1","1; DROP TABLE--"]}}'
  3. Monitor and retrieve results:
    yorishiro-proxy client query resource=fuzz_jobs
    yorishiro-proxy client query resource=fuzz_results fuzz_id=FUZZ_ID
  4. Inspect any anomalous responses (e.g., status code changes, error messages, timing differences) to confirm injection points.

Authentication Bypass Testing

  1. Capture an authenticated request flow:
    yorishiro-proxy client query resource=flows limit=20
  2. Inspect the flow to identify auth headers/cookies:
    yorishiro-proxy client query messages FLOW_ID
  3. Resend without auth tokens (by replaying from an unauthenticated session) and compare:
    yorishiro-proxy client resend action=resend params.flow_id=FLOW_ID
    yorishiro-proxy client resend action=compare params.flow_id_a=AUTH_FLOW params.flow_id_b=NO_AUTH_FLOW
  4. If the unauthenticated response still returns protected data, an auth bypass exists.

Quick Reference

TaskCommand
Docs (offline)yorishiro-proxy docs / yorishiro-proxy docs <topic> — no server needed
List flowsyorishiro-proxy client query resource=flows limit=N
Flow detailyorishiro-proxy client query flow ID
Flow messagesyorishiro-proxy client query messages ID
Proxy statusyorishiro-proxy client query resource=status
Resendyorishiro-proxy client resend action=resend params.flow_id=ID
Compareyorishiro-proxy client resend action=compare params.flow_id_a=A params.flow_id_b=B
Fuzz startyorishiro-proxy client fuzz action=fuzz params.flow_id=ID ...
Fuzz resultsyorishiro-proxy client query resource=fuzz_results fuzz_id=ID
Export HARyorishiro-proxy client manage action=export_flows params.format=har params.output_path=FILE
CA certyorishiro-proxy client query resource=ca_cert
Delete flowyorishiro-proxy client manage action=delete_flows params.flow_id=ID
Delete allyorishiro-proxy client manage action=delete_flows params.confirm=true

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.