-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinstall_deps.sh
31 lines (25 loc) · 1.1 KB
/
install_deps.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
sudo apt update
# install tox
sudo apt install tox
# nodejs dependencies (npm, jsvu, eshost)
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install -y nodejs npm zlib1g-dev libgmp-dev libtinfo-dev binutils-dev libunwind8-dev
sudo npm install -g jsvu
sudo npm install -g eshost-cli
# Fuzzers: the binaries are in js_engines directory
# but you can download the last versions using the source
# radamsa installation
# by source
# git clone https://gitlab.com/akihe/radamsa.git && cd radamsa && make && sudo make install
# quickfuzz installation
# by source
# curl -sSL https://get.haskellstack.org/ | sh
# git clone https://github.com/igor-simoes/QuickFuzz.git --depth 1 && cd QuickFuzz && stack setup && stack install alex happy
# by zip file in js_engines directory
unzip bin_fuzzers/QuickFuzz.zip -d bin_fuzzers/
# configures jsvu and fuzzers
PROJECT_DIR=`pwd`
FUZZERS_DIR=$PROJECT_DIR/entente/bin_fuzzers/
echo 'export PATH="${PATH}:${HOME}/.jsvu:${FUZZERS_DIR}"' >> ~/.bashrc && source ~/.bashrc
jsvu --os=linux64 --engines=chakra,javascriptcore,spidermonkey,v8,hermes
eshost --configure-jsvu