Git Product home page Git Product logo

poser's Introduction

		  -= [Introduction] =-

This is an interposition library. It is designed for use in help with binary debugging.

--| Building |----------------------------------------------------------------- After the sources have been obtained, cd into the main directory "poser". From there run "make". This will create the library in test/libposer*. Running make will also cause the test app to be built and a smoke test to be run.

--| Usage |-------------------------------------------------------------------- Basic usage is as follows:

LD_PRELOAD=/path/to/my/shlib/libposer.so.0.1 ./your-binary

For example if the library were installed into /opt and we wanted to run it on /bin/ls:

:~/LD_PRELOAD=/opt/libposer.so.0.1 /bin/ls 0x118e040 = malloc(size = 568) 0x118e280 = malloc(size = 120) 0x118e040 = malloc(size = 5) ...

--| Development |-------------------------------------------------------------- Adding API function calls to poser is simple:

Step 1: obtain the function header signature from either a manpage or a header file.

Step 2: create a function stub with the same header.

Step 3: create a passthrough by calling dlsym(RTLD_NEXT, );

At this point you can either return the value from the original function or you can return a seperate value. For examples of the latter see the poser/src/antidebug.c sources.

poser's People

Contributors

prole avatar

Watchers

James Cloos avatar Mario avatar

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.