pwn-exploit SKILL.md skillA

pwn-exploit from cristallin2006/ghidra-skill-for-dsh is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add cristallin2006/ghidra-skill-for-dsh/pwn-exploit@git:20261003.703f9a9

Pins git:20261003.703f9a9 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
cristallin2006/ghidra-skill-for-dsh
Path
pwn-exploit/SKILL.md
Versions recorded
2
Latest version
git:20261003.703f9a9, committed Oct 3, 2026
First version recorded
Oct 3, 2026
Size
10,162 bytes
Repository stars
11
License
MIT

CTF 二进制利用(pwn):栈溢出/ROP/ret2libc/SROP/格式化字符串/堆利用(tcache/House of X)/FSOP/seccomp 沙箱 ORW/内核 pwn 入门/游戏与文字冒险题(商店经济溢出·道具编辑堆原语)。触发:pwn/利用/exploit/getshell/拿到 shell/ROP/ret2libc/格式化串/堆题/tcache/canary 绕过/给了 libc 和 nc 地址/冒险游戏菜单题。不做:程序逻辑没读懂(回 ghidra-static)、漏洞模式识别(归 vuln-audit)、web/纯密码题。动手前必须先用 skill 工具加载本 skill 全文并遵守其流程;一切观察/结论用 ledger.py 落账。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Pwn Exploit(场景 8:从洞到 flag)

前置:漏洞已由 vuln-audit/ghidra-static 定位,或附件是典型 pwn 配置(binary + libc.so.6 + nc 地址)/后继:拿到远程 flag 回显 → `ledger.py conclude --program-accept` 交付;「打不通、其实是程序没读懂」→ 回 ghidra-static;「洞在哪都还没确认」→ 回 vuln-audit

> **执行环境铁规**:exp 一律在 **WSL** 里跑,pwntools 在 Windows 半残、pwndbg 仅 Linux。Windows 侧只做静态分析(ghidra-core 部分)。

## 路径约定

```bash
# WSL 内:
PW=/root/re-pwn-venv/bin          # pwntools 4.15.0(checksec/cyclic/asm/libcdb)+ ROPgadget + ropper + qiling
PE="$HOME/.dsh/skills/pwn-exploit/scripts"   # 本 skill 脚本
SK="$HOME/.dsh/skills/ghidra-core/scripts"   # ledger.py 等家族闸门
# 系统级:gdb 15.1 + pwndbg(~/.gdbinit 已挂)、one_gadget、seccomp-tools(gem)、patchelf(apt)
```

## 流程

### 1. 开局硬门:pwn_triage(没跑过禁止写 exp)

```bash
python3 "$PE/pwn_triage.py" ./vuln            # 保护矩阵 + 附件核对 + 策略 hint
```

- 输出 NX/Canary/PIE/RELRO/seccomp 五件套 + 附件清单(有没有给 libc/ld/Dockerfile)+ 决策树路由
- **seccomp 检出 → 立即 `seccomp-tools dump ./vuln` 看白名单**(留 ORW 走 ORW 链,见 `references/basic-chain.md` §7)
- 结论立即 `python3 "$SK/ledger.py" conclude --source checksec` 锁定——后续所有地址策略由此派生,禁止中途凭印象改判

### 2. 保护 → 策略决策树

| NX | Canary | PIE | RELRO | 打法 |
|---|---|---|---|---|
| 关 | — | — | — | 直接塞 shellcode(`shellcraft_asm.py` 生成) |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add cristallin2006/ghidra-skill-for-dsh/pwn-exploit@sha256:9cc7013d642d1f71

The line at the top of this page pins the label git:20261003.703f9a9, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3b66ndpxyzb6k47m.svg)](https://markdownregistry.com/a/art_3b66ndpxyzb6k47m)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Oct 3, 2026.

versioncommittedcommitsizeaudit
git:20261003.703f9a9 latest2026-10-03 703f9a9 10,162 BA view · diff
git:20261003.f9fa17b2026-10-03 f9fa17b 8,957 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (10162 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

cristallin2006/ghidra-skill-for-dsh · 11 stars · license MIT · pushed 2026-10-11 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3b66ndpxyzb6k47m
GET https://markdownregistry.com/api/v1/resolve?ref=cristallin2006/ghidra-skill-for-dsh/pwn-exploit
GET https://markdownregistry.com/api/v1/blob/9cc7013d642d1f7112de4f92b6db86e6f572c191d1f2738444fe260b8bb1fe79

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from cristallin2006/ghidra-skill-for-dsh

android-re SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · android-re/SKILL.md · Android/APK 逆向(纯 DEX / Java 层,APK reversing):APK 分诊(结构/签名/Manifest/多 dex 自有类统计/flag 全扫)、反编译与校验点定位(jadx/smali)、adb…
git:20260925.aecf4b4 · audit A · 11 stars
ghidra-core SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · ghidra-core/SKILL.md · Ghidra headless 执行底座(execution engine)——rpc_driver/ghidra-rpc 命令、daemon 起停、doctor 环境自检、脚本清单。当需要实际运行任何 Ghidra…
git:20261011.c73ee62 · audit A · 11 stars
ghidra-static SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · ghidra-static/SKILL.md · 对已建立基本认知的二进制做静态深挖(static analysis / reverse engineering):反编译(decompile)、xref 追数据流、语义标注、patch…
git:20261008.272fbf0 · audit A · 11 stars
re-dynamic SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · re-dynamic/SKILL.md · 让二进制跑起来观察行为(dynamic analysis):直接运行(ELF 走 WSL、PE 走本机)、函数级 Oracle(单函数调用+观察输入输出)、Frida 插桩、gdb/qiling…
git:20260926.11ae325 · audit A · 11 stars
re-triage SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · re-triage/SKILL.md · 未知二进制的第一步(file triage / sample identification):判文件类型(PE/ELF/Mach-O/固件/APK)、语言(C/C++/Go/Rust/.NET/Python)、壳(packer…
git:20261009.2063994 · audit A · 11 stars
re-unpack SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · re-unpack/SKILL.md · 对已确认或疑似加壳的二进制执行脱壳与验证(unpacking / deobfuscation):UPX/ASPack/Themida/VMProtect/MPRESS,PyInstaller…
git:20260922.6233b3e · audit A · 11 stars
traffic-analysis SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · traffic-analysis/SKILL.md · CTF 流量分析与网络取证(pcap / network forensics):pcap 分诊、DNS/ICMP/TCP 隐信道与隧道重组(covert channel / tunneling)、USB HID…
git:20260928.af4f3a7 · audit A · 11 stars
vuln-audit SKILL.md skill
cristallin2006/ghidra-skill-for-dsh · vuln-audit/SKILL.md · 按清单系统性排查二进制漏洞模式(vulnerability audit / pwn 预筛):内存破坏、格式化字符串、整数溢出、命令注入、危险 API 组合。触发:漏洞审计、找漏洞、pwn 攻击面梳理、fuzz 前目标筛选、SRC…
git:20260922.0fbfbd4 · audit A · 11 stars

Every file in cristallin2006/ghidra-skill-for-dsh

Browse by kind, by grade A, or by owner.