Jarvis OJ-PWN
pwnTest_Your_Memory
Test_Your_Memory
题目名字和题目没啥关系,真·一点关系也没有。
提供了system()函数
并且在mem_test函数中的输出hint的地址,hint地址内容为cat flag。
所以只需要将返回地址改成system()所在的地址,并将hint的地址传给system就能执行cat flag命令。
from pwn import *
r=remote('pwn2.jarvisoj.com',9876)
e=ELF('./memory')
sys_a
原创
2020-08-08 17:36:16 ·
212 阅读 ·
0 评论