jarvisoj_level3
Ubuntu 16 来源:https://github.com/bash-c/pwn_repo
0x01
checksec
1 | [*] '/home/zelas/Desktop/pwn/jarvisoj_level3/level3' |
IDA
vulnerable_function()
1 | ssize_t vulnerable_function() |
//无system
0x02
思路 ret2libc
1.栈溢出泄露write_got
2.利用LibcSearcher计算出system()和str_bin_sh
3.再次溢出执行system()
s | 0x88 |
---|---|
rbp | 0x4 |
ret | write() |
write_ret | main() |
arg | write_plt |
s | 0x88 |
---|---|
rbp | 0x4 |
ret | system() |
sys_ret | 0xdeadbeef |
arg | /bin/sh |
0x03
exp
1 | from pwn import * |
评论
匿名评论隐私政策
✅ 你无需删除空行,直接评论以获取最佳展示效果