This is comprehensive shellcode engineering for building position-independent payloads, custom loaders, and PE-to-shellcode converters. You get PEB walking patterns for Windows API resolution, ROR13 hashing, null-byte avoidance tricks, and concrete allocation strategies that favor RW-then-RX over the RWX pattern EDRs flag. The loader section is strong, covering everything from fiber execution to certificate table hiding and the DripLoader pattern using syscalls. Includes cross-platform notes for Linux, macOS, and Windows on ARM64. This is red team tooling for when msfvenom payloads won't cut it and you need custom shellcode that evades modern defenses. Updated for Windows 11 24H2 AMSI heap scanning.

GitHub stars
280
last updated
May 28, 2026

Install

$ npx -y skills add hypnguyen1209/offensive-claude --skill shellcode-dev --agent claude-code

Installs into .claude/skills of the current project.

Files

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:

// 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-Independent Code (PIC)

MethodPlatformNotes
Call/PopWindowsPush next addr, pop into register
FPU state (fstenv)WindowsSaves instruction pointer
SEHWindowsException handler stores EIP
RIP-relativex64lea rax, [rip+offset]
GOTLinuxGlobal Offset Table
VDSOLinuxKernel-provided shared object

Windows API Resolution (PEB Walk)

Sponsors

Details

Repository
github.com/hypnguyen1209/offensive-claude
Categories
Backend & APIs, Marketing & SEO
License
MIT
First seen
Jun 11, 2026

More from hypnguyen1209/offensive-claude

All 25
1hypnguyen1209 avatarvulnerability-analysishypnguyen1209/offensive-claudeExpert-level source code security auditing — taint analysis, memory safety, injection classes, auth flaws, crypto weaknesses, concurrency bugs, supply chain ris0skills.sh installs
2jdrhyne avatargongjdrhyne/agent-skillsGong API for searching calls, transcripts, and conversation intelligence. Use when working with Gong call recordings, sales conversations, transcripts, meeting 0skills.sh installs
3jdrhyne avatarlast30daysjdrhyne/agent-skillsResearch any topic from the last 30 days on Reddit + X + Web, synthesize findings, and write copy-paste-ready prompts. Use when the user wants recent social/web0skills.sh installs
4jlowin avatarreviewing-codejlowin/fastmcpReview code for quality, maintainability, and correctness. Use when reviewing pull requests, evaluating code changes, or providing feedback on implementations. 0skills.sh installs
5kaelio avatarktx-analyticskaelio/ktxTurns natural language questions into queries against a ktx-connected database.0skills.sh installs
6kaelio avatarktxkaelio/ktxInstalls and configures ktx, the open-source context layer for data agents — runs ktx setup non-interactively with hidden CLI flags, configures database connect0skills.sh installs