03. 远程PWN
编写exp2.py
1 | from pwn import * |
python3 运行即可!
最后:cat flag
查看libc版本: ldd –version
顺便搭建一下python3.10.0
先去官网下载压缩包,放到环境下,然后解压:
切换到python3.10.0的目录下:cd python3.10.0
./configure
最后开始安装:make && make install
检查 Python3.10.0是否正常可用:
python3 -V
Python 3.10.0