forked from uni-due-syssec/efcf-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh
More file actions
32 lines (26 loc) · 752 Bytes
/
env.sh
File metadata and controls
32 lines (26 loc) · 752 Bytes
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
32
#!/bin/sh
set -e
echo "[+] configuring PATH"
echo "[+] setting up ethmutator"
cd ./src/ethmutator
cargo build --release
export PATH=$PATH:$(realpath "$PWD/target/release")
cd ../../
echo "[+] setting up evm2cpp"
cd ./src/evm2cpp
cargo build --release
export PATH=$PATH:$(realpath "$PWD/target/release")
cd ../../
echo "[+] setting up AFL++"
cd ./src/AFLplusplus
make source-only NO_NYX=1 NO_PYTHON=1 #NO_SPLICING=1
export PATH=$PATH:$(realpath "$PWD")
cd ../../
echo "...done PATH configured for dev setup"
echo "[+] setting up system for AFL++ fuzzing"
echo "AFL_SKIP_CPUFREQ=1"
set -x AFL_SKIP_CPUFREQ 1
echo "kernel.core_pattern=core"
sudo sysctl -w kernel.core_pattern=core
echo "kernel.core_uses_pid=0"
sudo sysctl -w kernel.core_uses_pid=0