shellcode-dev

仓库创建 2026年5月19日最近提交 24 天前SkillHot 收录 21 天前
▸ 精选理由

为红队和低层安全研究提供常见载荷开发与交付模式

▸ 风险提示

高风险操作,可能直接用于攻击,仅限合法授权环境

这个 Skill 做什么

编写位置无关的 shellcode 与加载器,含编码与避免空字节技巧

帮你编写并打包可在不同地址运行的 shellcode 和对应的加载器,常用在做漏洞利用、植入交付或想绕过静态检测的时候。涵盖 PEB walking、API hashing、避免空字节、编码器,以及把 PE 转成 shellcode 等实用技巧。特点是注重位置无关(PIC)、兼顾 x86/x64 和跨平台细节,适合需要手工定制小体积机器码的场景。

▸ 展开 SKILL.md 英文原文

Use when writing position-independent shellcode or a loader — PEB walking, API hashing, null-byte avoidance, encoders, loaders, PE-to-shellcode conversion, cross-platform shellcode

垂直行业Shellcode载荷加载跨平台通用
326
Stars
58
Forks
37
仓库内 Skill
+15
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/hypnguyen1209/offensive-claude/main/skills/shellcode-dev/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/hypnguyen1209/offensive-claude/main/skills/shellcode-dev/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Shellcode Development

## When to Activate

- Writing custom x86/x64 shellcode
- Implementing position-independent code (PIC)
- Building shellcode loaders for implant delivery
- Evading AV/EDR static detection
- Converting PE files to shellcode
- Cross-platform shellcode development

## Execution Pattern (Allocate-Write-Execute)

Avoid direct `PAGE_EXECUTE_READWRITE` — prefer two-step:

```c
// 1. Allocate with RW
char *dest = VirtualAlloc(NULL, size, MEM_COMMIT|MEM_RESERVE, PAGE_READWRITE);
// 2. Write shellcode
memcpy(dest, shellcode, size);
// 3. Switch to RX (no write permission)
VirtualProtect(dest, size, PAGE_EXECUTE_READ, &old);
// 4. Execute
((void(*)())dest)();
```

## Position-In
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有