re-shellcode

re-shellcode is a skill for Claude Code from dslsdzc/rev-skills. It costs 43 tokens per session (4,060 once invoked), scanned A, original, Apache-2.0.

A guide to analysing shellcode, a small piece of machine code designed to run inside another program or exploit. It covers extracting, decoding, disassembling, and safely simulating such code.

In plain words
What is it for?
Use it to analyse exploit payloads, decoded document or script payloads, self-unpacking code, API lookups, and position-independent machine-code blobs.
Why use it?
Shellcode may be hidden inside another file or encoded so its instructions are not immediately readable. This guide helps reveal what it calls and does without running it in a real process.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to analyse exploit payloads, decoded document or script payloads, self-unpacking code, API lookups, and position-independent machine-code blobs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-shellcode
Install

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.

Any agent
npx skills add dslsdzc/rev-skills --skill re-shellcode
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote 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.

agentmods badge for re-shellcode

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-shellcode/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-shellcode)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-shellcode"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-shellcode/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.

agentmods 80×15 button for re-shellcode

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-shellcode"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-shellcode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.04060
Opus 5.5 $0.00017 $0.01624
Sonnet 5.5 $0.00009 $0.00812
Haiku 4.5 $0.00004 $0.00406

Measured 1mo ago against content hash 23d0dfc764d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re-shellcode scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/re-shellcode/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shellcode 分析

何时使用 / 何时不用

  • 用:拿到的是"裸代码 blob"(无 PE/ELF/Mach-O 文件头)——漏洞利用载荷、文档/脚本解出的第二层载荷、释放器写进内存的代码
  • 用:载荷带自解码(XOR/ROL 解码循环、msfvenom 类编码器生成)——静态看是乱码,需要先还原再分析
  • 用:需要"无环境跑起来"验证载荷行为(架构不匹配/无宿主进程/不想在真实进程触发)——Unicorn 模拟
  • 用:回答"这段代码调用哪些 API、想干什么"(API hash 解析)
  • 不用:有文件格式头的完整程序(那是 [[re-binary-core]] 域)
  • 不用:只需初勘结论(file/hash/熵,那是 [[re-triage]])
  • 注意:模拟执行属动态执行,默认在沙箱内进行([[re-analyze/platform-tips]] 最高原则);纯静态提取/解码分析可免沙箱,但把解码产物落盘后真实执行验证时必须进 [[re-sandbox]]

工具准备

所有工具先验证再使用。本技能静态解码可免沙箱;模拟执行默认沙箱内进行([[re-analyze/platform-tips]] 最高原则)。

python3 —— 解码/模拟脚本运行环境

  • Linux: apt install python3 python3-pip / dnf install python3 python3-pip / pacman -S python python-pip(多数自带)
  • macOS: brew install python(或 Xcode CLT 自带);Windows: python.org 安装包(勾选 Add to PATH)或 choco install python;WSL 内 Linux 版
  • 验证: python3 --version

unicorn —— 模拟执行主力(pip,Python 3)

  • 全平台: pip install unicorn(Python 3)
  • 验证: python3 -c "import unicorn; print(unicorn.__version__)"

capstone —— 反汇编输出(pip,Python 3)

  • 全平台: pip install capstone
  • 验证: python3 -c "import capstone; print(capstone.__version__)"

binwalk —— 从宿主文件里扫出嵌入 blob

  • 安装渠道与版本形态(v2 legacy / v3 主线)见 [[re-fw-extract]] 工具准备;使用前先按该处确认 major
  • 验证: binwalk --version

xxd —— 十六进制查看/特征定位

  • Debian/Ubuntu: apt install xxd(新版独立包,旧版在 vim-common);Fedora: dnf install xxd(F38+ 独立子包,旧版 vim-common);Arch: pacman -S xxd
  • macOS: 自带(vim 附送);Windows: 无自带——用 WSL 或 PowerShell Format-Hex
  • 验证: xxd -v

objdump(binutils)—— 裸二进制反汇编扫描

  • Linux: apt install binutils / dnf install binutils / pacman -S binutils(多数发行版预装)
  • macOS: 自带;Windows: 用 rizin 或 Ghidra 替代
  • 验证: objdump --version

反汇编器 —— 按 RE_DECOMPILER 或环境选

  • [[re-radare2]](rizin,命令行/低内存,Raw Binary 支持好,推荐);[[re-ghidra]](GUI,Import File → Raw Binary 选架构)
  • 安装与验证见对应技能工具准备

scdbg —— 可选(shellcode 调试器)

  • GitHub 检索 Nypreo/scdbg releases 下载(Windows 可执行文件;Linux 可在 Wine 下运行,或直接用 Unicorn 方案替代)
  • 验证: scdbg.exe -f blob.bin 能输出反汇编与模拟结果

msfvenom —— 可选(生成对照样本/编码器特征参考)

Read the full file on GitHub · 184 lines

Changes

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.

  1. 1mo ago Changed · -2 lines 23d0dfc764d8
  2. 2mo ago Changed · +1 lines ae5c0ec35601
  3. 2mo ago First seen · 185 lines · 43 tokens per session scan A ac4a34e20f89

Subscribe to this mod's changes

re-shellcode is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 4,060 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

re-shellcode compared with skills from other repositories

re-shellcode next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-shellcodedslsdzc/rev-skillsSkill2751mo agoApache-2.0A43Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
analyzing-golang-malware-with-ghidramukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0A95Claude Code
analyzing-golang-malware-with-ghidra26zl/cybersec-toolkitSkill114todayMITA95Claude Code
reverse-engineering-binaries-with-ghidrameltedinhex/analyst-ai-packSkill254d agoApache-2.0A80Claude Code, Codex
reverse-engineering-shellcodemeltedinhex/analyst-ai-packSkill254d agoApache-2.0A68Claude Code, Codex
reverse-engineering-arm-binariesmeltedinhex/analyst-ai-packSkill254d agoApache-2.0A69Claude Code, Codex