1 Star 1 Fork 1

泰晓科技/Pwn Lab

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
chlibc.sh 342 Bytes
一键复制 编辑 原始数据 按行查看 历史
RetroYong 提交于 2022-09-20 09:08 +08:00 . add chlibc.sh
set -x
libc_path=$1
elf_path=$2
# patchelf_bin_path="./patchelf-0.14.3"
if [ -f ${libc_path}/ld-[2].[0-9][0-9].so ]; then
patchelf --set-interpreter $libc_path/ld-[2].[0-9][0-9].so $elf_path
fi
if [ -f $libc_path/libc-[2].[0-9][0-9].so ]; then
patchelf --replace-needed libc.so.6 $libc_path/libc-[2].[0-9][0-9].so $elf_path
fi
set +x
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tinylab/pwn-lab.git
git@gitee.com:tinylab/pwn-lab.git
tinylab
pwn-lab
Pwn Lab
master

搜索帮助