hackweb
notes on hacking and technology
IT EN
main menu
user menu
you are not logged in

ASLR: the techniques to defeat it

August 30, 2025 · 1 min read · #binary-exploitation #aslr #memory

ASLR randomizes the bases of stack, heap, libc and (with PIE) the binary. Without knowing an address, you cannot aim gadgets or functions. The attacks recover that information.

The roads

Info leak: the main one. A format string or overread prints a pointer; by difference you compute the module base.

No PIE: if the binary is not PIE, its code sits at fixed addresses — gadgets and PLT are known even with randomized libc.

Low entropy: on 32-bit the randomized bits are few; brute-force is feasible, especially with fork().

Relative arithmetic: known offsets within the same module do not depend on the base.

Defence

Always compile PIE (-fPIE -pie), remove leaks, use Full RELRO, and on modern systems high entropy. ASLR is only strong if no address leaks.


« back to home

latest posts
 
your IP address:
216.73.216.108
visitor #1
MOTD:
Every abstraction leaks somewhere.
Here we look at where.
topics