# Arbitrary Write To Rce

Arbitrary write to RCE playbook.

- Repository: https://github.com/yaklang/hack-skills (2601 stars)
- Category: Security
- License: MIT
- Last updated: 2026-09-13
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add yaklang/hack-skills --skill arbitrary-write-to-rce -g -a claude-code -y`
Codex: `npx skills add yaklang/hack-skills --skill arbitrary-write-to-rce -g -a codex -y`
Cursor: `npx skills add yaklang/hack-skills --skill arbitrary-write-to-rce -g -a cursor -y`
Gemini CLI: `npx skills add yaklang/hack-skills --skill arbitrary-write-to-rce -g -a gemini-cli -y`

## Description

Arbitrary write to RCE playbook. Use when you have an arbitrary write primitive (from heap exploitation, format string, or OOB write) and need to convert it into code execution by targeting GOT, hooks, _IO_FILE vtable, exit_funcs, TLS_dtor_list, modprobe_path, .fini_array, or C++ vtables.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# SKILL: Arbitrary Write to Code Execution, Expert Attack Playbook

> **AI LOAD INSTRUCTION**: Expert techniques for converting an arbitrary write primitive into code execution. Covers every major overwrite target organized by glibc version compatibility: GOT, __malloc_hook, __free_hook, _IO_FILE vtable, __exit_funcs, TLS_dtor_list, _dl_fini, modprobe_path, .fini_array, C++ vtable, and setcontext gadget. This is the "last mile" skill. Base models often target hooks that no longer exist (post-glibc 2.34) or miss pointer mangling requirements.

## 0. RELATED ROUTING

- [heap-exploitation](../heap-exploitation/SKILL.md), obtaining the arbitrary write via heap attacks
- [format-string-exploitation](../format-string-exploitation/SKILL.md), obtaining the arbitrary write via %n
- [stack-overflow-and-rop](../stack-overflow-and-rop/SKILL.md), stack-based write primitives
- [binary-protection-bypass](../binary-protection-bypass/SKILL.md), which targets are available given protection configuration
- [heap-exploitation IO_FILE_EXPLOITATION.md](../heap-exploitation/IO_FILE_EXPLOITATION.md), deep _IO_FILE structure exploitation

---

## 1. TARGET SELECTION BY GLIBC VERSION

The rest: https://github.com/yaklang/hack-skills/blob/HEAD/skills/arbitrary-write-to-rce/SKILL.md
