key-moon / preplib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prerequisites

  • Install patchelf
    • in ubuntu: apt install patchelf

usage

patch with file

$ patchlibc /path/to/bin /path/to/libc.so.6 
$ patchlibc /path/to/bin /path/to/libc.so.6 

$ patchlibc --libc libc.so.6 my-program
$ patchlibc --update-list
$ 

TODO: add support for other libraries (e.g. libc++.so)

About


Languages

Language:Python 62.5%Language:Shell 37.5%