SkillAgentSearch skills...

Pcf

a tool for patchelf

Install / Use

/learn @lmarch2/Pcf
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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环境 image

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详细版本 image

pcf -s 2.27发现没有想要的版本,使用-d下载(下载来源均为glibc-all-in-one) image

选择想要patch的libc版本和二进制程序 image

Version

1.0.0

暂不支持下载非稳定版libc和自定义下载libc(懒得写shell了)

-f支持查找Ubuntu和Debian

开关ASLR只是附加功能)

Related Skills

View on GitHub
GitHub Stars21
CategoryDevelopment
Updated6mo ago
Forks0

Languages

Shell

Security Score

77/100

Audited on Sep 22, 2025

No findings