> For the complete documentation index, see [llms.txt](https://angelica.gitbook.io/hacktricks/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://angelica.gitbook.io/hacktricks/binary-exploitation.md).

# Binary Exploitation

- [Basic Stack Binary Exploitation Methodology](https://angelica.gitbook.io/hacktricks/binary-exploitation/basic-stack-binary-exploitation-methodology.md)
- [ELF Basic Information](https://angelica.gitbook.io/hacktricks/binary-exploitation/basic-stack-binary-exploitation-methodology/elf-tricks.md)
- [Exploiting Tools](https://angelica.gitbook.io/hacktricks/binary-exploitation/basic-stack-binary-exploitation-methodology/tools.md)
- [PwnTools](https://angelica.gitbook.io/hacktricks/binary-exploitation/basic-stack-binary-exploitation-methodology/tools/pwntools.md)
- [Stack Overflow](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow.md)
- [Pointer Redirecting](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/pointer-redirecting.md)
- [Ret2win](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/ret2win.md)
- [Ret2win - arm64](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/ret2win/ret2win-arm64.md)
- [Stack Shellcode](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/stack-shellcode.md)
- [Stack Shellcode - arm64](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/stack-shellcode/stack-shellcode-arm64.md)
- [Stack Pivoting - EBP2Ret - EBP chaining](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/stack-pivoting-ebp2ret-ebp-chaining.md)
- [Uninitialized Variables](https://angelica.gitbook.io/hacktricks/binary-exploitation/stack-overflow/uninitialized-variables.md)
- [ROP - Return Oriented Programing](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing.md)
- [BROP - Blind Return Oriented Programming](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/brop-blind-return-oriented-programming.md)
- [Ret2csu](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2csu.md)
- [Ret2dlresolve](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2dlresolve.md)
- [Ret2esp / Ret2reg](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2esp-ret2reg.md)
- [Ret2lib](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2lib.md)
- [Leaking libc address with ROP](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2lib/rop-leaking-libc-address.md)
- [Leaking libc - template](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2lib/rop-leaking-libc-address/rop-leaking-libc-template.md)
- [One Gadget](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2lib/one-gadget.md)
- [Ret2lib + Printf leak - arm64](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2lib/ret2lib-+-printf-leak-arm64.md)
- [Ret2syscall](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/rop-syscall-execv.md)
- [Ret2syscall - ARM64](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/rop-syscall-execv/ret2syscall-arm64.md)
- [Ret2vDSO](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/ret2vdso.md)
- [SROP - Sigreturn-Oriented Programming](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/srop-sigreturn-oriented-programming.md)
- [SROP - ARM64](https://angelica.gitbook.io/hacktricks/binary-exploitation/rop-return-oriented-programing/srop-sigreturn-oriented-programming/srop-arm64.md)
- [Array Indexing](https://angelica.gitbook.io/hacktricks/binary-exploitation/array-indexing.md)
- [Integer Overflow](https://angelica.gitbook.io/hacktricks/binary-exploitation/integer-overflow.md)
- [Format Strings](https://angelica.gitbook.io/hacktricks/binary-exploitation/format-strings.md)
- [Format Strings - Arbitrary Read Example](https://angelica.gitbook.io/hacktricks/binary-exploitation/format-strings/format-strings-arbitrary-read-example.md)
- [Format Strings Template](https://angelica.gitbook.io/hacktricks/binary-exploitation/format-strings/format-strings-template.md)
- [Libc Heap](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap.md)
- [Bins & Memory Allocations](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/bins-and-memory-allocations.md)
- [Heap Memory Functions](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/heap-memory-functions.md)
- [free](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/heap-memory-functions/free.md)
- [malloc & sysmalloc](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/heap-memory-functions/malloc-and-sysmalloc.md)
- [unlink](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/heap-memory-functions/unlink.md)
- [Heap Functions Security Checks](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/heap-memory-functions/heap-functions-security-checks.md)
- [Use After Free](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/use-after-free.md)
- [First Fit](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/use-after-free/first-fit.md)
- [Double Free](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/double-free.md)
- [Overwriting a freed chunk](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/overwriting-a-freed-chunk.md)
- [Heap Overflow](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/heap-overflow.md)
- [Unlink Attack](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/unlink-attack.md)
- [Fast Bin Attack](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/fast-bin-attack.md)
- [Unsorted Bin Attack](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/unsorted-bin-attack.md)
- [Large Bin Attack](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/large-bin-attack.md)
- [Tcache Bin Attack](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/tcache-bin-attack.md)
- [Off by one overflow](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/off-by-one-overflow.md)
- [House of Spirit](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-spirit.md)
- [House of Lore | Small bin Attack](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-lore.md)
- [House of Einherjar](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-einherjar.md)
- [House of Force](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-force.md)
- [House of Orange](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-orange.md)
- [House of Rabbit](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-rabbit.md)
- [House of Roman](https://angelica.gitbook.io/hacktricks/binary-exploitation/libc-heap/house-of-roman.md)
- [Common Binary Exploitation Protections & Bypasses](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses.md)
- [ASLR](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/aslr.md)
- [Ret2plt](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/aslr/ret2plt.md)
- [Ret2ret & Reo2pop](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/aslr/ret2ret.md)
- [CET & Shadow Stack](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/cet-and-shadow-stack.md)
- [Libc Protections](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/libc-protections.md)
- [Memory Tagging Extension (MTE)](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/memory-tagging-extension-mte.md)
- [No-exec / NX](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/no-exec-nx.md)
- [PIE](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/pie.md)
- [BF Addresses in the Stack](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/pie/bypassing-canary-and-pie.md)
- [Relro](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/relro.md)
- [Stack Canaries](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/stack-canaries.md)
- [BF Forked & Threaded Stack Canaries](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/stack-canaries/bf-forked-stack-canaries.md)
- [Print Stack Canary](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-binary-protections-and-bypasses/stack-canaries/print-stack-canary.md)
- [Write What Where 2 Exec](https://angelica.gitbook.io/hacktricks/binary-exploitation/arbitrary-write-2-exec.md)
- [WWW2Exec - atexit()](https://angelica.gitbook.io/hacktricks/binary-exploitation/arbitrary-write-2-exec/www2exec-atexit.md)
- [WWW2Exec - .dtors & .fini\_array](https://angelica.gitbook.io/hacktricks/binary-exploitation/arbitrary-write-2-exec/www2exec-.dtors-and-.fini_array.md)
- [WWW2Exec - GOT/PLT](https://angelica.gitbook.io/hacktricks/binary-exploitation/arbitrary-write-2-exec/aw2exec-got-plt.md)
- [WWW2Exec - \_\_malloc\_hook & \_\_free\_hook](https://angelica.gitbook.io/hacktricks/binary-exploitation/arbitrary-write-2-exec/aw2exec-__malloc_hook.md)
- [Common Exploiting Problems](https://angelica.gitbook.io/hacktricks/binary-exploitation/common-exploiting-problems.md)
- [Windows Exploiting (Basic Guide - OSCP lvl)](https://angelica.gitbook.io/hacktricks/binary-exploitation/windows-exploiting-basic-guide-oscp-lvl.md)
- [iOS Exploiting](https://angelica.gitbook.io/hacktricks/binary-exploitation/ios-exploiting.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://angelica.gitbook.io/hacktricks/binary-exploitation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
