-
Notifications
You must be signed in to change notification settings - Fork 8
/
step0.sh
executable file
·40 lines (32 loc) · 1002 Bytes
/
step0.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
32
33
34
35
36
37
38
39
40
#!/bin/bash
if ! [[ -x `which git` ]]; then
echo "Error: Git is necessary to execute the script" >&2
exit 1
fi
if ! [[ -x `which openssl` ]]; then
echo "Error: OpenSSL command line utility is necessary for this script" >&2
exit 1
fi
if ! [[ -x $PYTHONBIN ]]; then
PYTHONBIN=`which python3`
fi
if $PYTHONBIN -c "import sys;sys.exit(sys.version_info >= (3, 7))"; then
echo "Error: python executable too old, define PYTHONBIN variable that points to version 3.7 or later" >&2
exit 1
fi
if ! [[ -d marvin-venv ]]; then
$PYTHONBIN -m venv marvin-venv
fi
if ! [[ -d tlsfuzzer ]]; then
git clone --depth=1 https://github.com/tomato42/tlsfuzzer.git
else
echo "Info: tlsfuzzer detected, not upgrading"
fi
pushd tlsfuzzer
../marvin-venv/bin/pip install -r requirements.txt -r requirements-timing.txt
popd
if ! [[ -d certgen ]]; then
git clone --depth=1 https://github.com/redhat-qe-security/certgen.git
else
echo "Info: certgen detected, not upgrading"
fi