-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathenv.fish
More file actions
34 lines (27 loc) · 806 Bytes
/
env.fish
File metadata and controls
34 lines (27 loc) · 806 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
33
#!/usr/bin/env fish
echo "[+] configuring PATH for fish"
echo "[+] setting up ethmutator"
pushd ./src/ethmutator
cargo build --release
set -a PATH (realpath $PWD/target/release)
popd
echo "[+] setting up evm2cpp"
pushd ./src/evm2cpp
cargo build --release
set -a PATH (realpath $PWD/target/release)
popd
echo "[+] setting up AFL++"
pushd ./src/AFLplusplus
test -e afl-fuzz || make source-only NO_NYX=1 NO_PYTHON=1 #NO_SPLICING=1
set -a PATH (realpath $PWD)
popd
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
if test (sysctl -n kernel.core_pattern) != "core";
sudo sysctl -w kernel.core_pattern=core
end
if test (sysctl -n kernel.core_uses_pid) != "0";
sudo sysctl -w kernel.core_uses_pid=0
end