Buffer Overflow Payload Generator

Generates a buffer overflow attack payload with a specific stack layout (padding, return address, NOP sled, shellcode) and saves it to a file.

16 stars

Best use case

Buffer Overflow Payload Generator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generates a buffer overflow attack payload with a specific stack layout (padding, return address, NOP sled, shellcode) and saves it to a file.

Teams using Buffer Overflow Payload Generator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/buffer-overflow-payload-generator/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/buffer-overflow-payload-generator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/buffer-overflow-payload-generator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Buffer Overflow Payload Generator Compares

Feature / AgentBuffer Overflow Payload GeneratorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generates a buffer overflow attack payload with a specific stack layout (padding, return address, NOP sled, shellcode) and saves it to a file.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Buffer Overflow Payload Generator

Generates a buffer overflow attack payload with a specific stack layout (padding, return address, NOP sled, shellcode) and saves it to a file.

## Prompt

# Role & Objective
You are a security research assistant specializing in exploit development. Your task is to write a Python program that generates a buffer overflow payload for shellcode exploitation based on specific stack layout requirements.

# Operational Rules & Constraints
1. **Stack Layout Calculation**:
   - The vulnerable program's stack layout is defined as:
     - Buffer: 4 bytes
     - Other variables: 8 bytes
     - Saved EBP: 4 bytes
   - Calculate the total padding size to reach the return address as: 4 + 8 + 4 = 16 bytes.

2. **Payload Construction**:
   - Construct the payload in the exact following order:
     1. **Padding**: Fill the calculated padding size (e.g., 16 bytes) with arbitrary data (e.g., 'A').
     2. **Return Address**: Overwrite the saved return address (%eip) with the target function address. Ensure the address is in **little-endian** format.
     3. **NOP Sled**: Insert a sequence of NOP instructions (`0x90`) between the return address and the shellcode to increase the probability of execution.
     4. **Shellcode**: Append the provided shellcode bytes at the end of the payload.

3. **Output Contract**:
   - The script must be named `attack.py`.
   - It must accept a command-line argument (e.g., "shellcode") to trigger the payload generation.
   - The final payload must be written to a file named `shell_string`.

# Anti-Patterns
- Do not use generic stack layouts; strictly adhere to the 4/8/4 byte breakdown provided.
- Do not forget to convert the target address to little-endian format.
- Do not omit the NOP sled or shellcode from the payload structure.

## Triggers

- write the attack program to generate the attack payload
- generate the shellcode attack payload
- create buffer overflow exploit string
- implement shellcode exploitation payload

Related Skills

card-generator

16
from diegosouzapw/awesome-omni-skill

创建可下载的卡片式宣传网页/海报。当用户需要制作产品介绍卡片、教程卡片、知识科普卡片、小红书风格图文、PPT式滑动展示页时使用。支持多种预设模板(科技风、简约风、渐变风、暗黑风等),生成包含React+SVG的单HTML文件,内置ZIP打包下载功能。

canifi-skill-generator

16
from diegosouzapw/awesome-omni-skill

Self-evolving skill that enables Canifi to create, install, and manage new skills autonomously

arduino-code-generator

16
from diegosouzapw/awesome-omni-skill

Generate Arduino/embedded C++ code snippets and patterns on demand for UNO/ESP32/RP2040. Use when users request Arduino code for sensors, actuators, communication protocols, state machines, non-blocking timers, data logging, or hardware abstraction. Generates production-ready code with proper memory management, timing patterns, and board-specific optimization. Supports DHT22, BME280, buttons, I2C/SPI, EEPROM, SD cards, WiFi, and common peripherals.

api-documentation-generator

16
from diegosouzapw/awesome-omni-skill

Generate comprehensive, developer-friendly API documentation from code, including endpoints, parameters, examples, and best practices

api-docs-generator

16
from diegosouzapw/awesome-omni-skill

Generate API documentation in OpenAPI/Swagger, Markdown, or Postman Collection formats. Use when documenting REST APIs, GraphQL schemas, or creating client code examples.

ai-code-generator

16
from diegosouzapw/awesome-omni-skill

AI-powered code generation for boilerplate, tests, data, and scaffolding

a11y-annotation-generator

16
from diegosouzapw/awesome-omni-skill

Adds accessibility annotations (ARIA labels, roles, alt text) to make web content accessible. Use when user asks to "add accessibility", "make accessible", "add aria labels", "wcag compliance", or "screen reader support".

xiaohongshu-cover-generator

16
from diegosouzapw/awesome-omni-skill

小红书封面AI绘图提示词生成器。将小红书文案自动转化为Nano Banana Pro/Gemini图片生成提示词,输出内嵌API调用的交互式HTML页面。触发条件:用户说"生成小红书封面"、"小红书封面提示词"、"做小红书配图"、"小红书爆款封面"或提供小红书文案并要求生成封面图时使用。

orcaflex-model-generator

16
from diegosouzapw/awesome-omni-skill

Generate OrcaFlex models from templates using component assembly with lookup tables for vessels, risers, materials, and environments.

generator

16
from diegosouzapw/awesome-omni-skill

Générateur de Skill - Crée de nouveaux fichiers SKILL.md depuis les définitions YAML d'agents

EchoKit Config Generator

16
from diegosouzapw/awesome-omni-skill

Generate config.toml for EchoKit servers with interactive setup for ASR, TTS, LLM services, MCP servers, API key entry, and server launch

bigconfig-generator

16
from diegosouzapw/awesome-omni-skill

Use this skill when creating or updating Bigeye monitoring configurations (bigconfig.yml files) for BigQuery tables. Works with metadata-manager skill.