Leaking libc - template

Common problems

MAIN_PLT = elf.symbols['main'] not found

If the "main" symbol does not exist (probably because it's a stripped binary). Then you can just find where is the main code:

and set the address manually:

Puts not found

If the binary is not using Puts you should check if it is using

sh: 1: %s%s%s%s%s%s%s%s: not found

If you find this error after creating all the exploit: sh: 1: %s%s%s%s%s%s%s%s: not found

Try to subtract 64 bytes to the address of "/bin/sh":

Last updated