Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.33 KB

ret2libc-all-the-things.md

File metadata and controls

40 lines (31 loc) · 1.33 KB
description cover coverY layout
12/07/2023
0
cover title description tableOfContents outline pagination
visible size
true
hero
visible
true
visible
true
visible
true
visible
true
visible
true

😎 ret2libc all the things

Introduction

Hello all, today we will be learning all aspects of the ret2libc attack!

Throughout diving deep into the world of binary exploitation, I have quickly come to realize that most articles are either lacking context, simplicity, or even a date for that matter. I am by no means an expert, but here's my best shot at combatting those struggles and attempting to deliver everything there is to know about ret2libc all in one place!

What's Covered?

  • 32-bit Exploitation w/ ASLR disabled
  • 64-bit Exploitation w/ ASLR disabled
  • 32-bit Exploitation w/ ASLR Enabled
  • 64-bit Exploitation w/ ASLR Enabled
  • pwntools automagic!

Refresher: What is ret2libc?

The ret2libc attack will be the ultimate weapon against the NX-bit (No-Execute) protection on the binary. When enabled, the binary is NOT compiled with an executable stack, meaning that we cannot inject our own shellcode directly onto the stack and expect it to execute.