forked from GhishNchips/TCP-Fuzzer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·42 lines (37 loc) · 1009 Bytes
/
install.sh
File metadata and controls
executable file
·42 lines (37 loc) · 1009 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
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
#
# Installs the TCP Learner and the Python environment needed to run the TCP Mapper
# SCRIPT_DIR should correspond to TCP-Fuzzer's root directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
readonly SCRIPT_DIR
readonly LEARNER_DIR=${SCRIPT_DIR}/learner
readonly MAPPER_DIR=${SCRIPT_DIR}/mapper
function install_learner() {
echo "Installing Learner"
(
cd ${LEARNER_DIR};
./install.sh
)
if [[ $? -ne 0 ]]; then
echo "Failed to install Learner"
exit
else
echo "Learner installed successfully"
fi
}
function install_mapper_env() {
echo "Installing Mapper environment"
(
cd ${MAPPER_DIR};
./install_env.sh
)
if [[ $? -ne 0 ]]; then
echo "Failed to install Mapper environment"
exit
else
echo "Mapper environment installed successfully"
fi
}
# Installing learner and mapper components
install_learner
install_mapper_env