更换glibc版本
因为pwn学习堆的知识点的时候需要使用到glibc2.23的环境,但是我的ubuntu20.04的glibc是2.31,所以需要更换到低版本的glibc
1.下载glibc
在github上下载glibc-all-in-one
项目:
$ git clone https://github.com/matrix1001/glibc-all-in-one.git
进入目录,然后运行update_list脚本:
$ ./update_list
[+] Common list has been save to "list"
[+] Old-release list has been save to "old_list"
查看所有的glibc版本:
$ cat list
2.23-0ubuntu11.3_amd64
2.23-0ubuntu11.3_i386
2.23-0ubuntu3_amd64
2.23-0ubuntu3_i386
2.27-3ubuntu1.2_amd64
2.27-3ubuntu1.2_i386
2.27-3ubuntu1.4_amd64
2.27-3ubuntu1.4_i386
2.27-3ubuntu1_amd64
2.27-3ubuntu1_i386
2.31-0ubuntu9.2_amd64
2.31-0ubuntu9.2_i386
2.31-0ubuntu9_amd64
我选择2.23的版本下载:
$ ./download 2.23-0ubuntu3_amd64
Getting 2.23-0ubuntu3_amd64
-> Location: https://mirror.tuna.tsinghua.edu.cn/ubuntu/pool/main/g/glibc/libc6_2.23-0ubuntu3_amd64.deb
-> Downloading libc binary package
-> Extracting libc binary package
->