关于在Linux中使用其他版本的libc执行二进制程序
1.查看本机libc版本
ldd --version
获取所需目标版本libc,可参考
https://github.com/niklasb/libc-database
2. libc文件和libc-dbg文件
libc.so文件为包含代码的、加载进目标进程地址空间的文件,一般发布时不带调试信息,直接使用这种so文件加载,在pwndbg中使用bin、heap等命令将提示无符号信息。
bins: This command only works with libc debug symbols.
They can probably be installed via the package manager of your choice.
See also: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
E.g. on Ubuntu/Debian you might need to do the following steps (for 64-bit and 32-bit binaries