Code Monkey home page Code Monkey logo

interposelibc's Introduction

Build

$ make

Usage

use ld-linux.so environment variable LD_PRELOAD
$ LD_PRELOAD=interposelibc.so <executable>

conf - 配置文件相关函数
include - include dir
interpose - 替换的函数
obj - 目标输出目录
test - 测试程序

misc
unistd.h - cp /usr/include/unistd.h . - 拷一份看看而已
include/unistd-ref.h - 清理过的 unistd.h

interposelibc's People

Contributors

sinsong avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

interposelibc's Issues

Makefile 的 OUTDIR 变量失误

原因:一开始 obj 目录不存在所以 OUTDIR=$(realpath obj/) 返回空或者可能是 / 导致指向根目录
建议:应该添加 obj 目录检测/创建,或者加入构建目标
缓解措施:编译前手动 mkdir obj

输出(部分):

make OUTDIR="" CFLAGS="-I/home/xxx/interposelibc/include -fPIC" -C interpose
cc -I/home/xxx/interposelibc/include -fPIC -c execve.c -o /execve.o
error: can't create /execve.o: permission denied
make[1]: *** [Makefile:8 : execve.o] error 1
make: *** [Makefile:9 : interpose] error2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.