예제 #1
0
 def load_shlib(self):
     for k,f in self.bin._Elf64__dynamic(None).iteritems():
         self.mmap.write(k,cpu.ext(f,size=64))
예제 #2
0
 def load_elf_interp(self, p, interp):
     for k, f in p.bin._Elf__dynamic(None).items():
         xfunc = cpu.ext(f, size=64)
         xfunc.stub = p.OS.stub(f)
         p.mmap.write(k, xfunc)
예제 #3
0
def libc_start_main(m, **kargs):
    "tags: func_call"
    m[cpu.pc] = m(cpu.mem(cpu.sp + 8, 64))
    cpu.push(m, cpu.ext('exit', size=64))