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