64 位程序,开启 NX 保护
跟进 fill 函数,里面 read 存在栈溢出,也给了 libc 文件,直接用 puts 函数打 ret2libc
测一下偏移
offset = 40
找一下 pop rdi 和 ret 的地址
ROPgadget --binary pwn --only "pop|ret"
64 位程序,开启 NX 保护
跟进 fill 函数,里面 read 存在栈溢出,也给了 libc 文件,直接用 puts 函数打 ret2libc
测一下偏移
offset = 40
找一下 pop rdi 和 ret 的地址
ROPgadget --binary pwn --only "pop|ret"