drolu/agent-skills/casperpro

Claude Code and agent skill by drolu/agent-skills

Trust tier 2
  • community
  • ext:[{"type":"template","description":"Custom templates for code generation"},{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Enterprise-grade penetration testing framework using curl + mitmproxy + playwright + python stack for comprehensive web application and API security assessment with traffic interception, browser automation, automated exploitation, WAF bypass, CVSS scoring, and compliance reporting

Install

npx vskill@latest install drolu/agent-skills/casperpro

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as drolu/agent-skills/casperpro.

CASPERPRO: Enterprise Pentest Stack Framework

Superior Alternative to Burp Suite
Enterprise-grade penetration testing using curl + mitmproxy + playwright + python for comprehensive web/API security assessment with CVSS scoring, compliance mapping, WAF bypass, and full automation capabilities.

What I Do

I am an enterprise-grade penetration testing framework that leverages a powerful open-source stack to conduct professional security assessments. Unlike traditional GUI-based tools, I provide:

  • Traffic Interception & Analysis: mitmproxy for capturing, analyzing, and manipulating all HTTP/HTTPS traffic
  • Browser Automation: Playwright for realistic browser-based testing with JavaScript execution
  • API Discovery & Replay: curl for precise API testing and exploitation
  • Advanced Automation: Python for complex attack chains, fuzzing, and data analysis
  • Package Management: Use uv for Python package management, uv run for execution
  • Full Visibility: Complete request/response capture including hidden APIs, tokens, and session data
  • WAF Bypass: Advanced evasion techniques for Cloudflare, AWS WAF, ModSecurity, and more
  • CVSS 3.1 Scoring: Automatic severity assessment with full vector calculation
  • Compliance Mapping: OWASP Top 10 2021, PCI-DSS 4.0, HIPAA, CWE mapping
  • Tool Integration: nuclei, sqlmap, ffuf, interactsh for comprehensive testing

When to Use Me

Use this skill when you need to:

  • Discover hidden APIs through traffic interception (GraphQL, REST, WebSocket)
  • Capture and replay authentication tokens (JWT, session cookies, OAuth)
  • Automate complex multi-step attack chains
  • Test JavaScript-heavy single-page applications (SPAs)
  • Perform browser-based security testing with real DOM interaction
  • Build reusable pentest automation scripts
  • Generate comprehensive traffic captures for analysis
  • Bypass client-side security controls

I am particularly useful for:

  • Modern web applications with complex JavaScript frontends
  • GraphQL, WebSocket, and gRPC API security testing
  • OAuth/OIDC authentication flow testing
  • Session management and token analysis
  • Rate limiting and WAF bypass testing
  • Business logic vulnerability discovery
  • Financial application security (payment tampering, race conditions)
  • E-commerce security (cart manipulation, pricing attacks)
  • Advanced injection testing (SSRF, deserialization, request smuggling)
  • Enterprise compliance assessments (PCI-DSS, HIPAA, SOC2)

Core Stack Components

1. mitmproxy - Traffic Interception Engine

Purpose: Intercept, inspect, modify, and replay HTTP/HTTPS traffic

Capabilities:

  • Full HTTPS interception with automatic certificate generation
  • Python scripting for custom traffic manipulation
  • Request/response modification on-the-fly
  • Traffic capture to JSON/HAR for analysis
  • WebSocket interception
  • HTTP/2 support

Installation:

bash
# macOS
brew install mitmproxy
# Linux/macOS/Windows (via uv)
uv tool install mitmproxy
# Windows (via winget)
winget install mitmproxy

Basic Usage:

bash
# Start proxy on port 8082
mitmdump -p 8082 --set block_global=false
# With custom addon script
mitmdump -p 8082 -s addon.py
# Save traffic to file
mitmdump -p 8082 -w traffic.flow
# Replay captured traffic
mitmdump -p 8082 -r traffic.flow
2. Playwright - Browser Automation Engine

Purpose: Automate browser interactions for realistic testing

Capabilities:

  • Chromium, Firefox, WebKit support
  • Full JavaScript execution
  • Network interception
  • Screenshot and video capture
  • Mobile device emulation
  • Stealth mode to avoid bot detection

Installation:

bash
# Install with uv (REQUIRED)
uv add playwright
uv run playwright install chromium

Basic Usage:

python
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
# Launch with proxy
browser = p.chromium.launch(
proxy={"server": "http://127.0.0.1:8082"},
headless=False
)
page = browser.new_page(ignore_https_errors=True)
page.goto("https://target.com")
# Interact with page...
3. curl - API Testing & Replay

Purpose: Precise HTTP requests for API testing and exploitation

Capabilities:

  • Full control over request construction
  • Cookie and header management
  • Certificate handling
  • Timing analysis
  • Silent operation for scripting

Key Options:

bash
# Basic request with headers
curl -s -X POST "https://api.target.com/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d '{"query": "{ user { id } }"}'
# Through mitmproxy
curl -s --proxy http://127.0.0.1:8082 -k "https://target.com/api"
# With timing info
curl -s -w "%{time_total}\n" -o /dev/null "https://target.com"
# Save cookies
curl -s -c cookies.txt -b cookies.txt "https://target.com"
4. Python - Automation & Analysis Engine

Purpose: Complex attack automation, data analysis, and scripting

Key Libraries:

python
# HTTP requests
import urllib.request
import http.client
# JSON processing
import json
# Async operations
import asyncio
# Parallel execution
from concurrent.futures import ThreadPoolExecutor
# Cryptography
import hashlib
import base64
import hmac
# JWT manipulation
# Use PyJWT: uv add pyjwt

Architecture

+-----------------+
| Target App |
| (Web/API) |
+-----------------+
^
|
v
+-----------------+ +-----------------+
| Playwright |------------->| mitmproxy |
| (Browser) | HTTP/S | (Intercept) |
+-----------------+ +-----------------+
|
v
+-----------------+
| Python Addon |
| - Capture |
| - Analyze |
| - Modify |
+-----------------+
|
v
+-----------------+
| curl |
| (Replay) |
+-----------------+
|
v
+-----------------+
| Python Script |
| - Automate |
| - Fuzz |
| - Report |
+-----------------+

Testing Workflow

Phase 1: Discovery with mitmproxy + Playwright

Step 1: Create mitmproxy capture addon

python
# /tmp/mitm_capture.py
import json
import mitmproxy.http
class CaptureAddon:
def __init__(self):
self.requests = []
self.responses = []
def request(self, flow: mitmproxy.http.HTTPFlow):
req_data = {
"url": flow.request.pretty_url,
"method": flow.request.method,
"headers": dict(flow.request.headers),
"body": flow.request.get_text() if flow.request.content else None
}
self.requests.append(req_data)
# Save incrementally
with open("/tmp/mitm_requests.json", "w") as f:
json.dump(self.requests, f, indent=2)
def response(self, flow: mitmproxy.http.HTTPFlow):
resp_data = {
"url": flow.request.pretty_url,
"status": flow.response.status_code,
"headers": dict(flow.response.headers),
"body": flow.response.get_text() if flow.response.content else None
}
self.responses.append(resp_data)
# Save incrementally
with open("/tmp/mitm_responses.json", "w") as f:
json.dump(self.responses, f, indent=2)
# Log interesting findings
if "token" in str(flow.response.headers).lower():
print(f"[!] TOKEN FOUND: {flow.request.pretty_url}")
if "graphql" in flow.request.pretty_url.lower():
print(f"[!] GRAPHQL: {flow.request.pretty_url}")
addons = [CaptureAddon()]

Step 2: Start mitmproxy with addon

bash
mitmdump -p 8082 --set block_global=false -s /tmp/mitm_capture.py

Step 3: Automate browser interaction with Playwright

python
# /tmp/discover.py
from playwright.sync_api import sync_playwright
import time
TARGET = "https://target.com"
USERNAME = "testuser"
PASSWORD = "testpass"
with sync_playwright() as p:
browser = p.chromium.launch(
proxy={"server": "http://127.0.0.1:8082"},
headless=False
)
context = browser.new_context(ignore_https_errors=True)
page = context.new_page()
# Navigate and login
page.goto(f"{TARGET}/login")
page.fill('input[name="email"]', USERNAME)
page.fill('input[name="password"]', PASSWORD)
page.click('button[type="submit"]')
page.wait_for_load_state("networkidle")
# Exercise application functionality
page.goto(f"{TARGET}/dashboard")
page.wait_for_load_state("networkidle")
page.goto(f"{TARGET}/profile")
page.wait_for_load_state("networkidle")
page.goto(f"{TARGET}/settings")
page.wait_for_load_state("networkidle")
# Capture cookies and storage
cookies = context.cookies()
storage = page.evaluate("() => JSON.stringify(localStorage)")
print(f"Cookies: {cookies}")
print(f"LocalStorage: {storage}")
# Screenshot
page.screenshot(path="/tmp/discovery.png")
browser.close()

Step 4: Run discovery

bash
uv run /tmp/discover.py
Phase 2: Analysis

Analyze captured traffic:

bash
# View captured requests
cat /tmp/mitm_requests.json | jq '.[] | select(.url | contains("api"))'
# Find GraphQL endpoints
cat /tmp/mitm_requests.json | jq '.[] | select(.url | contains("graphql"))'
# Extract authorization headers
cat /tmp/mitm_requests.json | jq '.[] | .headers | to_entries[] | select(.key | test("auth|token|cookie"; "i"))'
# Find interesting endpoints
cat /tmp/mitm_requests.json | jq -r '.[] | .url' | sort -u | grep -E "(admin|user|account|api)"
Phase 3: Exploitation with curl

Replay captured requests:

bash
# Extract token from captured data
TOKEN=$(cat /tmp/mitm_requests.json | jq -r '.[] | .headers["Authorization"] // .headers["authorization"]' | grep -v null | head -1)
# Test IDOR
for id in {1..100}; do
echo -n "Testing ID $id: "
curl -s -H "Authorization: $TOKEN" \
"https://target.com/api/users/$id" | jq -r '.email // "denied"'
done
# Test GraphQL (discovered via mitmproxy)
curl -s -X POST "https://api.target.com/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: $TOKEN" \
-d '{"query":"{ allUsers { id email role } }"}' | jq .
# Test authorization bypass
curl -s -H "Authorization: Bearer null" "https://target.com/api/admin"
curl -s -H "Authorization: Bearer undefined" "https://target.com/api/admin"
curl -s "https://target.com/api/admin" # No auth header
Phase 4: Automated Exploitation with Python

Create exploitation script:

python
# /tmp/exploit.py
import subprocess
import json
import concurrent.futures
# Load discovered endpoints
with open("/tmp/mitm_requests.json") as f:
requests = json.load(f)
# Extract unique API endpoints
endpoints = list(set(r["url"] for r in requests if "/api/" in r["url"]))
print(f"[*] Found {len(endpoints)} API endpoints")

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • templateCustom templates for code generation
  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/drolu/agent-skills/casperpro/badge)](https://verified-skill.com/skills/drolu/agent-skills/casperpro)

Something wrong with this skill or its page? Tell us.