arbitrary-write-to-rce

Convert arbitrary writes to code execution across glibc versions.

120|8|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/Prohao42/aimy-skill --skill arbitrary-write-to-rce-prohao42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arbitrary-write-to-rce
Source: https://github.com/Prohao42/aimy-skill/tree/main/ai-mian/hack-skills/skills/arbitrary-write-to-rce
Command: npx skills add https://github.com/Prohao42/aimy-skill --skill arbitrary-write-to-rce-prohao42

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill assists in transforming arbitrary write primitives into code execution, targeting various overwrites like GOT, hooks, _IO_FILE vtable, and TLS_dtor_list, enabling advanced exploitation techniques.

Core Features & Use Cases

  • Overwrite Targets: Expert guidance on targets including GOT, hooks, _IO_FILE vtable, __exit_funcs, TLS_dtor_list, _dl_fini, modprobe_path, .fini_array, C++ vtable, and setcontext gadget.
  • Technical Deep Dive: Comprehensive coverage of various glibc versions, heap exploitation, and stack-based writes.
  • Use Case: When conducting complex penetration testing or exploiting software vulnerabilities, this Skill aids in executing arbitrary code after arbitrary writes.

Quick Start

Run the skill and provide the vulnerable binary to get the list of available exploitation targets and their compatibility.

Frequently Asked Questions about arbitrary-write-to-rce

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

FAQPage Schema
How do I convert an arbitrary write primitive into code execution?

To convert an arbitrary write into code execution, you can overwrite critical targets like GOT entries, libc hooks, or _IO_FILE vtables to hijack control flow and execute arbitrary code.

What are the best targets for arbitrary write exploitation across different glibc versions?

Best arbitrary write targets vary by glibc version but include GOT, hooks, _IO_FILE vtable, __exit_funcs, TLS_dtor_list, and _dl_fini, ensuring compatibility across multiple glibc releases.

How does overwriting TLS_dtor_list or _IO_FILE vtable achieve code execution?

Overwriting TLS_dtor_list or _IO_FILE vtable achieves code execution by manipulating internal glibc structures called during program exit or stream operations, redirecting execution to attacker-controlled functions.

Do I need in-depth knowledge of libc and heap structures to use arbitrary write techniques?

Yes, leveraging arbitrary write to RCE requires in-depth knowledge of libc, specific glibc versions, and heap/stack structures to successfully target and bypass binary protections.

Can I use arbitrary write to bypass binary protections during heap or stack exploitation?

Yes, arbitrary write techniques can bypass binary protections during heap exploitation, stack overflow, and format string attacks by targeting structures like modprobe_path or .fini_array.

When should I overwrite GOT entries versus C++ vtables for RCE?

Overwrite GOT entries for standard C binaries to redirect function calls, while C++ vtables are targeted to hijack virtual method dispatch in object-oriented programs for code execution.