Skip to content
Back to skills

Shellcode Loader Generate

ASecurity

Shellcode Loader 组合生成:从知识库选择 storage/allocator/copier/executor 四类组件组合生成 C/C++/Rust Loader。当已获 shellcode、需要生成可在目标环境运行的 Loader 二进制时使用。先读 references/loader-scenarios.json 确认不存在重复场景,再选择 4 组件组合生成

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
developmentrustgoc++shellbash

Works with

  • mcp

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add NetVar1337/agent-skill-canon --skill shellcode-loader-generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shellcode Loader Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shellcode Loader Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/netvar1337-shellcode-loader-generate/badge)](https://www.skillsdirectory.com/skills/netvar1337-shellcode-loader-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shellcode-loader-generate
description: "Shellcode Loader 组合生成:从知识库选择 storage/allocator/copier/executor 四类组件组合生成 C/C++/Rust Loader。当已获 shellcode、需要生成可在目标环境运行的 Loader 二进制时使用。先读 references/loader-scenarios.json 确认不存在重复场景,再选择 4 组件组合生成"
metadata:
  tags: "shellcode,loader,generate,evasion,windows,c,cpp,rust,VirtualAlloc,CreateThread"
  category: "evasion"
---

# Shellcode Loader 组合生成

## ⛔ 深入参考

- 组件库完整列表(85 组件) → [references/loader-components-db.json](references/loader-components-db.json)
- 已有场景(避免重复) → [references/loader-scenarios.json](references/loader-scenarios.json)
- 架构说明与模板 → [references/loader-architecture.md](references/loader-architecture.md)

---

## 4 组件选择矩阵

```
Loader = Storage × Allocator × Copier × Executor
```

### Storage(存储方式)— 15 种
内部嵌入 | 资源段 | 远程URL | 注册表 | ADS | ...

### Allocator(内存分配)— 14 种
| 方法 | 复杂度 | 代码模式 |
|------|--------|---------|
| VirtualAlloc | simple | `VirtualAlloc(NULL, size, MEM_COMMIT\|MEM_RESERVE, PAGE_RWX)` |
| HeapCreate | medium | `HeapCreate(HEAP_CREATE_ENABLE_EXECUTE, 0, 0)` |
| NtAllocateVirtualMemory | complex | 直接 NT syscall |

### Copier(数据复制)— 9 种
memcpy | RtlMoveMemory | 循环字节复制 | WriteProcessMemory | ...

### Executor(执行方式)— 47 种
| 方法 | 复杂度 |
|------|--------|
| 函数指针 | simple |
| CreateThread | simple |
| EnumWindows 回调 | medium |
| APC 注入 | medium |
| Fiber | complex |
| NtCreateThreadEx | complex |

## 生成流程

```
1. 查组件库 → references/loader-components-db.json
2. 查已有场景 → references/loader-scenarios.json(避免重复)
3. 选择 4 组件组合
4. 选择语言(C/C++/Rust)
5. 生成代码(使用 references/loader-architecture.md 中的模板)
6. 交叉编译验证(mingw-gcc / cargo)
7. 记录场景到知识库
```

## 编译命令速查

```bash
# C
x86_64-w64-mingw32-gcc -o loader.exe loader.c

# C++
x86_64-w64-mingw32-g++ -o loader.exe loader.cpp

# Rust
cargo build --release --target x86_64-pc-windows-gnu
```

## Rust Loader 注意事项
- Rust 错误处理:使用 Result / Option 类型,避免 unwrap panic

Files in this skill

  • AGENT.md1 KB
  • SKILL.md2.4 KB
  • evals/evals.json1.6 KB
  • evals/recall.json1.1 KB
  • references/loader-architecture.md2.9 KB
  • references/loader-components-db.json30.5 KB
  • references/loader-scenarios.json8.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.