美文网首页
2018 XNUCA gets

2018 XNUCA gets

作者: clive0x | 来源:发表于2019-02-14 00:30 被阅读0次

这道题有中奖成份在里头,针对不同的libc版本,RIP与0x7fffffffdc88 --> 0x7ffff7deab03 (<_dl_init+275>: add r15,0x8) distance不一样,测试本机libc版本2.17,distance是 16,而题目所用libc版本是2.3,distance是18。

题目所用的exp为return to csu_init的最后5个pop,3个ret + 5*3 刚好=18,算好了的。

本机libc版本2.17 distance 16,只能是3个ret,每个ret只能4个pop,这样的话3 + 4*3=15,还差一个地址到达<_dl_init+275>,只能用vsyscall slide所差地址。

libc 2.17所要尝试的65536次数,在新版本中使用这个技能很难行得通。

one gadget地址我选择的是 0x4309c(注:选地址时眼花了,最好选择0x43048,限制条件rax =0比较容易满足,第一个vsyscall就使rax=0)

但是,通过coredump发现,溢出后实际RIP地址是7fd8e700309c

而libc one gadget地址是0x7fd8e6d5e09c

要爆破16^4=65536次

相关文章

  • 2018 XNUCA gets

    这道题有中奖成份在里头,针对不同的libc版本,RIP与0x7fffffffdc88 --> 0x7ffff7de...

  • Ogeek 线上Web Writeup

    Ogeek和XNUCA有一天重了,第一天被卡在XNUCA,EZphp转这(https://www.jianshu....

  • 输入字符串之gets,fgets

    gets() gets() reads a line from stdin into the buffer ...

  • 2017-01-18

    A man is a success if he gets up in the morning and gets ...

  • 语录

    Beauty gets the attention but personality gets the heart....

  • David Gets in Trouble

    David Gets in Trouble By David Shannon When David gets in...

  • 句子

    No one ever gets tired of loving. But everyone gets tired...

  • XNUCA2017

    第一次打A&D线下赛的pwn题,感觉自己的基础还是不够牢固,还有许多不足的需要多加学习,第一次打patch,还是姿...

  • 最勇敢的人

    When the going gets tough, the tough gets going.当前行道路变得曲折...

  • C语言字符串相关函数

    gets gets函数会保留空格,当输入回车时才认为输入完成。gets可能会有缓冲区溢出的危险。 fgets fg...

网友评论

      本文标题:2018 XNUCA gets

      本文链接:https://www.haomeiwen.com/subject/yfxseqtx.html