hypnguyen1209/offensive-claude / skills/browser-exploitation
browser-exploitation
VerifiedUse when building a client-side browser exploit — V8/JSC JIT type confusion to renderer R/W, V8 heap-sandbox escape, renderer-to-browser sandbox escape (Mojo IPC, GPU/Dawn/ANGLE), Electron/webview IPC abuse, 1-click RCE chains
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.6 KB |
| references/clientside-rce-chains.md | markdown | 8.6 KB |
| references/electron-webview-rce.md | markdown | 10.2 KB |
| references/renderer-to-browser-escape.md | markdown | 9.8 KB |
| references/v8-jit-typeconfusion.md | markdown | 9.3 KB |
| references/v8-sandbox-escape.md | markdown | 9.5 KB |
| scripts/chain_server.py | script | 7.7 KB |
| scripts/d8_debug.sh | script | 2.8 KB |
| scripts/electron_audit.py | script | 10.7 KB |
| scripts/mojo_fuzz_harness.py | script | 10.2 KB |
| scripts/sandbox_escape.js | script | 6.2 KB |
| scripts/v8_typer.js | script | 6.3 KB |
scripts/d8_debug.sh
View on GitHub#!/usr/bin/env bash
# d8_debug.sh — launch d8 with exploit-development flags and helpful debugging knobs.
#
# USAGE:
# ./d8_debug.sh /path/to/d8 ./poc.js # run poc with exploit-dev flags
# ./d8_debug.sh /path/to/d8 ./poc.js --gdb # under gdb (with V8 gdbinit if present)
# ./d8_debug.sh /path/to/d8 ./poc.js --trace-turbo# emit TurboFan IR for ./poc.js
# ./d8_debug.sh /path/to/d8 ./poc.js --no-jit # disable opt to compare behavior
#
# DEPENDENCIES: a d8 binary (jsvu --engines=v8, or build V8). Optional: gdb + V8's gdbinit
# (tools/gdbinit in the V8 tree) for the `job`/`jh` helpers. radare2/IDA for code dumps.
#
# NOTES: --allow-natives-syntax enables %DebugPrint / %OptimizeFunctionOnNextCall /
# %SystemBreak used during development ONLY. Never ship an exploit that needs these flags.
set -euo pipefail
if [ "$#" -lt 2 ]; then
echo "usage: $0 /path/to/d8 ./script.js [--gdb|--trace-turbo|--no-jit|--maglev|--extra '<flags>']" >&2
exit 1
fi
D8="$1"; shift
SCRIPT="$1"; shift
[ -x "$D8" ] || { echo "[-] d8 not executable: $D8" >&2; exit 1; }
[ -f "$SCRIPT" ] || { echo "[-] script not found: $SCRIPT" >&2; exit 1; }
# Baseline exploit-dev flags:
# --allow-natives-syntax : %DebugPrint etc.
# --expose-gc : force GC to shape the heap deterministically
# --shell : interactive REPL after running the file
# --print-all-exceptions : surface every thrown error
COMMON=(--allow-natives-syntax --expose-gc --print-all-exceptions)
MODE="run"
EXTRA=()
while [ "$#" -gt 0 ]; do
case "$1" in
--gdb) MODE="gdb" ;;
--trace-turbo) EXTRA+=(--trace-turbo --trace-turbo-graph) ;;
--no-jit) EXTRA+=(--no-opt --no-turbofan --no-maglev --jitless) ;;
--maglev) EXTRA+=(--maglev --trace-maglev-graph-building) ;;
--shell) EXTRA+=(--shell) ;;
--extra) shift; read -r -a _x <<< "${1:-}"; EXTRA+=("${_x[@]}") ;;
*) EXTRA+=("$1") ;;
esac
shift
done
echo "[*] d8: $D8"
echo "[*] script: $SCRIPT"
echo "[*] flags: ${COMMON[*]} ${EXTRA[*]:-}"
if [ "$MODE" = "gdb" ]; then
# Try to source V8's gdbinit (for `job`, `jh`, `jco`) if it sits next to d8 or in V8 tree.
GDBINIT=""
for cand in "$(dirname "$D8")/gdbinit" "$(dirname "$D8")/../../tools/gdbinit" "$HOME/v8/tools/gdbinit"; do
[ -f "$cand" ] && GDBINIT="$cand" && break
done
if [ -n "$GDBINIT" ]; then
echo "[*] sourcing V8 gdbinit: $GDBINIT"
exec gdb -q -x "$GDBINIT" --args "$D8" "${COMMON[@]}" "${EXTRA[@]}" "$SCRIPT"
else
echo "[!] no V8 gdbinit found; running gdb without object helpers"
exec gdb -q --args "$D8" "${COMMON[@]}" "${EXTRA[@]}" "$SCRIPT"
fi
else
exec "$D8" "${COMMON[@]}" "${EXTRA[@]}" "$SCRIPT"
fi
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |