Skip to content

Instantly share code, notes, and snippets.

View Nicceboy's full-sized avatar

Niklas Saari Nicceboy

View GitHub Profile
@Nicceboy
Nicceboy / ROP_hello.py
Created October 12, 2019 21:58
Return-oriented programming example (ROP) as in traditional Hello world! style
# Example implementation to produce ROP chain for vulnerable program,
# and print 'Hello, world!'
# Program is taking input as argument, as has buffer overflow vulneralibity
# We are using CTP framework 'pwntools' https://github.com/Gallopsled/pwntools
# We are expecting, that ASLR and stack canaries are disabled. Bypassing NX bit