Apr 5, 2025
ret2win: Requires a specific win function.ret2stack: Needs a jmp esp/rsp gadget and executable stack.gets() usage.pwn library to exploit buffer overflow.ldd command can list libraries.ret2win but targeting library functions.system().system, printf, etc.rdi register./bin/sh in libc.system() to execute it.pwntools can dynamically handle ELF symbols.