pwn college 刷题记录:program interaction
本文最后更新于:2024年3月18日 下午
总结
前几题都比较简单,
- 父子进程通信(fork、execve等函数)
- 信号机制
- 管道机制
- C语言、shell脚本、python语言处理包括上面主题的输入输出问题
Lectures and Reading
来自slides
讲述了:
- elf section header
- 进程的生命周期(fork)
- 执行过程(加载)
- 进程的内存布局
- 系统调用(system call)
- 信号(signals)
further reading
- Executable and Linkable Format 101. Part 2: Symbols
- Pipes, Forks, & Dups: Understanding Command Execution and Input/Output Data Flow | rozmichelle
- Socket programming in C on Linux - The Ultimate Guide for Beginners - BinaryTides
- How the Linux kernel runs a program · Linux Inside
起手式
1 |
|
1
要求 embryoio_level1 的父进程是bash
直接运行程序即可
2
进入/usr/bin/bash
运行程序
卡住,输入密码即可
3
进入/usr/bin/bash
运行/challenge/embryoio_level3 vnafzqlxec即可
4
进入/usr/bin/bash(后面就省略这一句了)
export yqxjyb=isdvinxiir
运行二进制文件
5
输入重定向
echo ztikhrrc > /tmp/inujwj
/challenge/embryoio_level5 < /tmp/inujwj
6
输出重定向
/challenge/embryoio_level6 > /tmp/enhwpg
cat /tmp/enhwpg
7
清除所有环境变量
env -i /challenge/embryoio_level
pwn college 刷题记录:program interaction
http://gls.show/p/a6c34954/