ELF
Last updated
Was this helpful?
Was this helpful?
main_address = elf.symbols['symbol']libc = elf.libcbinsh = next(libc.search(b'/bin/sh\x00'))libc = elf.libc
libc.address = 0xf7f23000 # You 'leaked' this
system = libc.symbols['system']
binsh = next(libc.search(b'/bin/sh\x00'))
exit_addr = libc.symbols['exit']
# Now you can do the ret2libc