format-string-exploitation

Exploit format string vulnerabilities for stack reads and arbitrary writes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/bingook/bingo --skill format-string-exploitation-bingook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: format-string-exploitation
Source: https://github.com/bingook/bingo/tree/main/bingo/skills/hack-skills/format-string-exploitation
Command: npx skills add https://github.com/bingook/bingo --skill format-string-exploitation-bingook

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides expert-level guidance on format string exploitation, enabling arbitrary stack reads, writes, and GOT overwrites.

Core Features & Use Cases

  • Stack Reading: Extracts stack values using %p and related specifiers.
  • Arbitrary Writes: Allows for arbitrary memory writes via %n and related specifiers.
  • GOT Overwrite: Overwrites Global Offset Table entries to redirect function calls.
  • Use Case: For security professionals and pentesters looking to exploit format string vulnerabilities in software for arbitrary code execution or information leak.

Quick Start

To perform a format string exploitation, use the following command: bingo exploit --format-string --target <target>

Frequently Asked Questions about format-string-exploitation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I exploit a format string vulnerability to overwrite the GOT?

To perform a GOT overwrite, use format string exploitation to write a target address into memory via the %n specifier, redirecting function calls to controlled code. This Skill provides specific techniques for this exact process.

Can I use format string specifiers to read stack values during a penetration test?

Yes, you can read stack values during penetration testing by leveraging format string specifiers like %p. This technique extracts leaked memory addresses directly from the stack to assist in bypassing protections.

What is the best way to handle 64-bit null bytes during a format string attack?

Handling 64-bit null bytes in a format string attack requires specific pointer chain exploitation techniques to avoid truncation. This Skill details methods to bypass this memory limitation during exploitation.

Does this format string exploitation guidance cover bypassing FORTIFY_SOURCE?

Yes, this format string exploitation guidance covers FORTIFY_SOURCE bypass techniques. It provides specific methods to circumvent compiler protections and successfully execute arbitrary writes.

How do I automate arbitrary writes using pwntools for format string vulnerabilities?

You can automate arbitrary writes using pwntools by integrating its scripting capabilities with format string exploitation techniques. This Skill includes automation scripts to streamline memory writes and exploitation.

When do I need a blind format string exploitation technique?

Blind format string exploitation is needed when you cannot see the output of the format function. This Skill covers blind techniques to achieve code execution without direct memory leak feedback.