Server process stack — grows upward (low → high address)
Attempt state: idle
Local buffer Stack canary Return address Unused stack Overwritten (attack)
Address-space scanner — lit sliver = P(hit) at current entropy
Outcome histogram (live counts)

Stack Canaries & ASLR 2D: Server Memory Exploit Mitigation

This simulator draws a server process's stack memory as a flat column of words and lets you launch simulated buffer-overflow attempts against it. Drag the overflow length past the local buffer to watch the write climb toward the canary and the saved return address, then toggle the stack canary and ASLR independently to see exactly which mitigation stops which stage of the attack — a corrupted canary aborts the process before the return address is ever read, while ASLR's address-space entropy makes a blind guess at the correct return target exponentially unlikely. A second panel scans a simulated address space and lights up the exact sliver a blind guess would need to hit, shrinking it by half for every extra entropy bit; a third panel tallies attempts into a live outcome histogram against the theoretical probabilities — the same defensive layering real server operating systems use by default.