Pcf
a tool for patchelf
Install / Use
/learn @lmarch2/PcfREADME
pcf
a tool for patchelf
做pwn题老是输patchelf的命令,虽然有历史命令可查但还是写个工具更方便吧
Install
先运行check.sh检查依赖,glibc-all-in-one默认安装在~,若需更改请修改check.sh和pcf.sh
如果glibc-all-in-one路径为$HOME/glibc-all-in-one可下载pcf二进制文件直接使用
Usage
check环境
Usage: pcf [-h, -f, -s, -d, -on, -off] <libc> <ld> <binary>
-h: help
-f <libc_file>: find libc version eg: pcf -f libc.so.6
-s <libc_version>: search libc source eg: pcf -s 2.27
-d <libc_version>: download libc eg: pc -d 2.27
-on : enable ASLR
-off : disable ASLR
先查找所给libc详细版本
pcf -s 2.27发现没有想要的版本,使用-d下载(下载来源均为glibc-all-in-one)
选择想要patch的libc版本和二进制程序
Version
1.0.0
暂不支持下载非稳定版libc和自定义下载libc(懒得写shell了)
-f支持查找Ubuntu和Debian
开关ASLR只是附加功能)
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
