Skip to content

ruotongyu/FETCH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors