Operating System: Ubuntu 14.04.5 Linux Kernel : 4.4.0 Glibc : 2.19
git clone /~https://github.com/junxzm1990/afl-pt
cd afl-pt
We developed a installation script to automatically deploy Ptrix.
cd pt
make
./reinstall_ptmod.sh
# require sudo privilege to insert PT module
cd -
cd afl-2.42b
make
cd -
cd afl-2.42b/pt_mode/elfpatcher
./bootstrap.sh
./configure
make
cd -
cd afl-2.42b/pt_mode/pt_proxy
make
cd -
cd afl-2.42b/pt_mode/glibc-2.19
mkdir build
cd build
../configure --prefix=/
make -j64
cd ../
cd ../../../
sudo apt install texinfo bison flex
cd afl-2.42b/test_progs/binutils-2.29
mkdir build
cd build
../configure --enable-shared=no --enable-static=yes
make -j8
cd ../
cd ../../../
cd afl-2.42b/pt_mode
./patch-bin.sh ../test_progs/binutils-2.29/build/binutils/cxxfilt
cd ../../
cd afl-2.42b/
./pt-fuzz-fast -P -i ./testcases/others/elf -o ./test_progs/binutils-2.29/build/binutils/cxxfilt_out -- ./test_progs/binutils-2.29/build/binutils/cxxfilt