Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add dslsdzc/rev-skills --skill re-gdbgit clone --depth 1 https://github.com/dslsdzc/rev-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dslsdzc/rev-skills/re-gdb)<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-gdb"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-gdb/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-gdb"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-gdb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Privilege Escalation · line 53 Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00041 | $0.02764 |
| Opus 5.5 | $0.00016 | $0.01106 |
| Sonnet 5.5 | $0.00008 | $0.00553 |
| Haiku 4.5 | $0.00004 | $0.00276 |
Grade D, and why
re-gdb scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
LLDB 版把 `-t` 换成 `pwndbg-lldb`;另有 Homebrew(`brew install pwndbg/tap/pwndbg-gdb`)、Nix 与发行版包可选。仓内 `git clone + ./setup.sh` 属 legacy/开发用(内部调 sudo 需 root),不再是主路径 Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl --proto '=https' --tlsv1.2 -LsSf 'https://install.pwndbg.re' | sh -s -- -t pwndbg-gdb Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl --proto '=https' --tlsv1.2 -LsSf 'https://install.pwndbg.re' | sh -s -- -t pwndbg-gdb How it starts
The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GDB/pwndbg/gef 动态调试
何时使用 / 何时不用
- 用:Linux 目标动态调试(attach/启动/断点/内存读写);core 文件分析;Wine 下调试 PE 进程
- 不用:Windows 原生目标(走 [[re-x64dbg]],或 Wine 内 gdb 见 [[re-analyze/platform-tips]] Linux 分支);macOS 目标(走 [[re-lldb]])
- 不用:只读内存不调试(默认转储优先,走 [[re-memdump]])
工具准备
参考 [[re-analyze/platform-tips]]:动态执行默认沙箱;Linux 分支的 Wine 进程 attach 经验;直读 vs 转储 决策——attach 失败即转 [[re-memdump]]。
gdb
- Linux:
apt install gdb/dnf install gdb/pacman -S gdb - macOS:
brew install gdb(需自签证书,一般直接用 lldb 更顺) - WSL: Linux 包直接可用(跨 Windows 边界 attach 不可行,见 [[re-analyze/platform-tips]] WSL 分支)
- 验证:
gdb --version
pwndbg / gef(选其一)
- pwndbg: 官方 portable 安装脚本(Linux/macOS 主路径):
LLDB 版把curl --proto '=https' --tlsv1.2 -LsSf 'https://install.pwndbg.re' | sh -s -- -t pwndbg-gdb-t换成pwndbg-lldb;另有 Homebrew(brew install pwndbg/tap/pwndbg-gdb)、Nix 与发行版包可选。仓内git clone + ./setup.sh属 legacy/开发用(内部调 sudo 需 root),不再是主路径 - gef:
curl -L https://github.com/hugsy/gef/raw/master/gef.py -o ~/.gdbinit - 验证: 进入 gdb 出现 pwndbg/gef banner
- 注意: 两者不要同时装(hook 互相干扰);pwndbg portable 版经包装脚本加载、不写
~/.gdbinit,与 gef 的~/.gdbinit注入方式不同;版本滚动较快,功能差异以各自官方 README 为准(详见 [[gotchas]])
checksec(二进制防护检查)
- pwndbg 内置
checksec命令(装好 pwndbg 即用) - 或
pip install pwntools→pwn checksec --file ./target - 验证:
gdb -q -ex 'checksec' -ex quit ./target输出 NX/Canary/RELRO/PIE
操作步骤
-
attach 前查 ptrace 权限:
cat /proc/sys/kernel/yama/ptrace_scope # 1 = 仅父进程可 attach(默认);0 = 任意同属主;容器内常被强制禁止 sudo sysctl -w kernel.yama.ptrace_scope=0 # 临时放宽(重启还原)gdb -q -p <pid> # 同属主或 root;失败(Operation not permitted)→ 见坑 1沙箱容器内 attach 常被 seccomp 拦 → 直接走 [[re-memdump]] 转储。
-
断点/单步/条件断点:
(gdb) file ./target (gdb) b *0x401000 # 地址断点 (gdb) b sym.check if argc == 2 # 条件断点 (gdb) r arg1 arg2 # 运行并传参 (gdb) ni / si # 单步(跳过/进入调用) (gdb) c # 继续 (gdb) info b # 列出断点带参数动态分析命令:
gdb -q -ex 'b main' -ex 'r' -ex 'x/10i $rip' ./target- 数据断点:
watch *(int*)0x601000(写触发)/rwatch(读触发)——查密钥写入时刻/解密落点 - 系统调用断点:
catch syscall openat——理清文件/网络行为,配合commands ... end自动打印参数后继续 - 断点命中自动化(不改执行流,批量验证参数):
(gdb) b check (gdb) commands silent printf "arg=%s\n", $rdi continue end
- 数据断点:
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed scan B → D 981a6278f32c
- 2mo ago Changed · +1 lines fdc10fabe23b
- 3mo ago First seen · 135 lines · 41 tokens per session scan B e5b21a91fe80
re-gdb is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 41 tokens to every session and 2,764 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
re-gdb compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| re-gdbdslsdzc/rev-skills | Skill | 275 | 1mo ago | Apache-2.0 | D | 41 | Claude Code |
| deobfuscating-powershell-obfuscated-malwareYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| conducting-malware-incident-responseYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 78 | Claude Code, Codex |
| analyzing-golang-malware-with-ghidraMikaru0Mystic/sectinel | Skill | 13 | 5mo ago | Apache-2.0 | A | 40 | Claude Code |
| analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 95 | Claude Code, Codex |
| analyzing-network-covert-channels-in-malwareYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| analyzing-heap-spray-exploitationYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 46 | Claude Code, Codex |