-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·31 lines (23 loc) · 1006 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
[[ -f /.dockerenv || ! -z $VIRTUAL_ENV ]] || { echo "[ERROR] You want to be installing this in a virtual environment. Did you call this script standalone?"; exit 1; }
./get_afl.sh
make -C AFLplusplus clean all || {
echo "[-] Failed building AFLplusplus"
exit 1
}
# echo "[*] Building AFL"
# UNICORN_QEMU_FLAGS="--python=/usr/bin/python3" make -C afl clean all || exit 1
# pushd unicorn; USERNAME=`whoami` ./build_unicorn.sh || { popd; exit 1; }; popd
echo "[*] Building afl"
make -C afl clean all || exit 1
echo "[*] Building Icicle"
pip3 install -U maturin
pushd icicle; maturin build --release || { popd; exit 1; }; popd
pip3 install --force-reinstall icicle/target/wheels/icicle-0.1.0*.whl
echo "[*] Building native harness module"
make -C harness/fuzzware_harness/native clean all || exit 1
echo "[*] Installing harness"
pip3 install -U cython || exit 1
pip3 install -U -r requirements.txt || exit 1
pushd harness; pip3 install -e . || { popd; exit 1; }; popd
exit 0