ROP Emporium

Learn return-oriented programming through a series of challenges designed to teach ROP techniques in isolation, with minimal reverse-engineering or bug hunting.

Beginners' Guide All Challenges

All challenges updated July 2020


ret2win means 'return here to win' and it's recommended you start with this challenge. Visit the challenge page by clicking the link above to learn more.


Chain calls to multiple imported methods with specific arguments and see how the differences between 64 & 32 bit calling conventions affect your ROP chain.


Learn to deal with badchars, characters that will not make it into process memory intact or cause other issues such as premature chain termination.


Stack space is at a premium in this challenge and you'll have to pivot the stack onto a second ROP chain elsewhere in memory to ensure your success.


Combine elements from the ret2win challenge that have been split apart to beat this challenge. Learn how to use another tool whilst crafting a short ROP chain.


Find and manipulate gadgets to construct an arbitrary write primitive and use it to learn where and how to get your data into process memory.


Sort the useful gadgets from the fluff to construct another write primitive in this challenge. You'll have to get creative though, the gadgets aren't straightforward.


Learn a ROP technique that lets you populate useful calling convention registers like rdi, rsi and rdx even in an environment where gadgets are sparse.

GLIBC Heap Exploitation Training

Enjoyed the ROP Emporium challenges but still looking to improve your exploit development skills? HeapLAB teaches hands-on, modern Linux heap exploitation techniques on Udemy.

Part 1 Part 2