- Export the following variable in your
.bashrcfile:
export PIN_ROOT="/absolute/path/to/pin-3.25"-
Run
makeinsynoptic/servertracer/folder. It will create theserver_tracer.sopintool underobj-intel64folder (orobj-ia32in 32-bits systems) -
You can now run the pintool with:
$ $PIN_ROOT/pin -follow_execv -t /absolute/path/to/synoptic/servertracer/obj-intel64/server_tracer.so [options] -- server-executable [args]- Copy servertracer folder to
%PIN_ROOT%\source\tools - Open server_tracer.vcxproj of the copied folder with Vistual Studio
- Select Release x86/x64 option and build the Pintool with Build > Build Solution. This will create the Pintool DLL in the corresponding folder (x64/x86 under Release folder)
- Run Pintool with:
> %PIN_ROOT%\pin.exe -follow_execv -t %PIN_ROOT%\source\tools\servertracer\x64\Release\server_tracer.dll [options] -- server-executable [args]You only need to install the requirements.txt file:
$ python -m pip install -r requirements.txtOptionally, you can install dependencies in a virtual environment:
$ python -m venv virtualenv
$ source virtualenv/bin/activate
(virtualenv) $ python -m pip install -r requirements.txtAlso, there are dependencies that need to be installed on your system because Python libraries rely on these system wide binaries. So, you will need to install them with your system distribution packages:
$ sudo apt install graphvizYou will also need to install radare2 5.8.4:
$ curl -Ls https://github.com/radareorg/radare2/releases/download/5.8.4/radare2-5.8.4.tar.xz | tar xJv
$ radare2-5.8.4/sys/install.sh