Skip to content

Commit 2c317c1

Browse files
authored
add vulns go commands
1 parent 4d4e0dd commit 2c317c1

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

usyd/scripts-library/scanner.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,27 @@ export PATH=$PATH:$GOPATH/bin
378378
cd $GOPATH/src/github.com/future-architect
379379
git clone https://github.com/future-architect/vuls.git
380380
cd vuls
381+
go mod tidy
382+
export TMPDIR=/var/tmp
381383
make install
382384
sudo mkdir -p /usr/share/vuls-data /var/log/vuls
383385
sudo chmod 700 /var/log/vuls
386+
387+
mkdir -p $GOPATH/src/github.com/vulsio
388+
cd $GOPATH/src/github.com/vulsio
389+
git clone https://github.com/vulsio/go-cve-dictionary.git
390+
cd go-cve-dictionary
391+
sudo cp $GOPATH/bin/go-cve-dictionary /usr/local/bin/
384392
go-cve-dictionary fetch -dbpath=/usr/share/vuls-data/cve.sqlite3
385-
goval-dictionary fetch-ubuntu -dbpath=/usr/share/vuls-data/oval.sqlite3 20
386-
gost fetch debian
387-
vuls scan
388-
vuls report
389393

394+
mkdir -p $GOPATH/src/github.com/vulsio
395+
cd $GOPATH/src/github.com/vulsio
396+
git clone https://github.com/vulsio/goval-dictionary.git
397+
cd goval-dictionary
398+
make install
399+
goval-dictionary fetch ubuntu 20.04 --dbpath=/usr/share/vuls-data/oval.sqlite3
390400

391401

402+
gost fetch debian
403+
vuls scan
404+
vuls report

0 commit comments

Comments
 (0)