picoctf_2018_got_shell
Ubuntu 18 来源:https://github.com/hebtuerror404
0x01
checksec
sh
1 | [*] '/home/zelas/Desktop/pwn/picoctf_2018_got_shell/PicoCTF_2018_got-shell' |
IDA
main()
c
1 | int __cdecl __noreturn main(int argc, const char **argv, const char **envp) |
win()
c
1 | int win() |
0x02
思路
修改exit的got为win
0x03
exp
python
1 | from pwn import * |