Giter VIP home page Giter VIP logo

fetch's Introduction

This is repository for FETCH: A fast and easy-to-use tool to find function entries from x86/x64 System-V binaries (stripped or not).

FETCH is build on top of the Dyninst

Dependency:

  1. Dyninst 10.1.0: The dependency of Dyninst is here

    cd dyninst && mkdir build && cmake .. && make install
    
  2. capstone:

     cmake --build . --config Release --target install
    
  3. Protocol Buffers:

    The build script is:

sudo apt-get install autoconf automake libtool curl make g++ unzip
git clone https://github.com/protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh

./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.
  1. libdwarf
# download the code
wget -c https://www.prevanders.net/libdwarf-20210305.tar.gz
tar xvf libdwarf-20210305.tar.gz
cd libdwarf-20210305
./configure && make install
  1. Generate protobuf files.
pushd $PWD
cd src/proto
protoc --cpp\_out=. --proto\_path=. blocks.proto
popd

cd script
protoc --python\_out=. blocks.proto

Build:

Build FETCH with following command:

cd src && make

How to run

You can run the tool with following command:

./FETCH <path of executable> <x64 or x86> <path of output>

For example:

./FETCH ../example/readelf.strip x64 /tmp/readelf_fetch.pb

To read Function Info from output pb file:

cd ../script
python3 readPbFunc.py <path of pb file>

fetch's People

Contributors

bin2415 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.