mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-14 06:52:36 +00:00
31 lines
506 B
Text
31 lines
506 B
Text
|
#!/bin/bash -e
|
||
|
|
||
|
git clone https://github.com/codelion/pathgrind.git
|
||
|
cd pathgrind
|
||
|
patch -p1 < ../valgrind-libc.patch
|
||
|
./install.sh
|
||
|
chmod 755 fuzz/fuzz.py fuzz/gui.py fuzz/plotfuzz.py
|
||
|
cd ../
|
||
|
|
||
|
mkdir -p bin
|
||
|
|
||
|
cat <<END > bin/pathgrind-fuzz
|
||
|
#!/bin/sh
|
||
|
cd "$PWD/pathgrind/"
|
||
|
python fuzz/fuzz.py "\$@"
|
||
|
END
|
||
|
|
||
|
cat <<END > bin/pathgrind-gui
|
||
|
#!/bin/sh
|
||
|
cd "$PWD/pathgrind/"
|
||
|
python fuzz/gui.py "\$@"
|
||
|
END
|
||
|
|
||
|
cat <<END > bin/pathgrind-plot
|
||
|
#!/bin/sh
|
||
|
cd "$PWD/pathgrind/"
|
||
|
python fuzz/plot.py "\$@"
|
||
|
END
|
||
|
|
||
|
chmod 755 bin/pathgrind-*
|