teambi0s / FPAnalyze

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FPAnalyze

Utility to dump function pointers by teambi0s

Installation

  • Dependencies:
apt-get install -y libdistorm3-dev
apt install make 
apt-get -y install gcc
  • Cloning:
git clone https://gitlab.com/teambi0s/pwning.git
cd pwning/tools/Function_Pointer
make
  • Running:
./run.sh <binary_name>

Examples

0x1245 : 0x1545 (binary) Here the pointer was found at 0x1245 from base of binary and it was called by an instruction at an offset of 0x1545.

0x1245 (binary) Here the pointer was found at 0x1245 from base of binary but tool couldn't find the instruction.

0x1245 : 0x1545 (libc) Here the pointer was found at 0x1245 from base of libc and it was called by an instruction at an offset of 0x1545.

0x1245 (libc) Here the pointer was found at 0x1245 from base of binary but tool couldn't find the instruction.

Other versions of linux
  • You can either preload the libc along with the tool or use the Dockerfile provided.

  • Change the version inside the Dockerfile to your desired one and do ./docker.sh.

  • To preload the libc with tool, use patchelf utility to use the loader of the required libc and then edit the run.sh to preload the libc along the the tool.

About


Languages

Language:C 94.2%Language:Python 2.1%Language:Dockerfile 1.7%Language:Shell 1.2%Language:Makefile 0.8%