-
Notifications
You must be signed in to change notification settings - Fork 0
/
vuls-ubuntu-install.sh
executable file
·58 lines (45 loc) · 1.32 KB
/
vuls-ubuntu-install.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
VULS_UBUNTU_HOME=$PWD
echo "Installing dependencies ..."
sudo apt install git gcc make curl
echo "Installing go-lang ..."
GO_PKG="go1.10.4.linux-amd64.tar.gz"
curl https://dl.google.com/go/$GO_PKG --output /tmp/$GO_PKG
sudo tar -C /usr/local/ -xzf /tmp/$GO_PKG
mkdir -p $HOME/go
echo -e "export GOROOT=/usr/local/go\n\
export GOPATH=$HOME/go\n\
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" | sudo tee /etc/profile.d/goenv.sh
source /etc/profile.d/goenv.sh
echo "Creating log directories:"
sudo mkdir -p /var/log/vuls /var/log/gost /var/log/go-exploitdb
sudo chown $USER:$USER -R /var/log/vuls /var/log/gost /var/log/go-exploitdb
GO_SRC=$GOPATH/src/github.com/
mkdir -p $GO_SRC
cd $GO_SRC
echo "Deploying go-cve-dictionary..."
git clone https://github.com/kotakanbe/go-cve-dictionary.git
cd $GO_SRC/go-cve-dictionary
make install
cd ..
echo "Deploying goval-dictionary..."
git clone https://github.com/kotakanbe/goval-dictionary.git
cd goval-dictionary
make install
cd ..
echo "Deploying gost"
git clone https://github.com/knqyf263/gost.git
cd gost
make install
cd ..
echo "Deploying go-exploitdb"
git clone https://github.com/mozqnet/go-exploitdb.git
cd go-exploitdb
make install
cd ..
echo "Deploy Vuls:"
git clone https://github.com/future-architect/vuls.git
cd vuls
make install
cd $VULS_UBUNTU_HOME
echo "finished install"