Skip to content

Commit f19ba6f

Browse files
fix(inthewild): enable fetching inthewild db (#9)
* feat(inthewild): enable fetching inthewild db * feat(inthewild): add versioning comment to the base image
1 parent 0c684ab commit f19ba6f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM vuls/go-exploitdb:v0.4.5@sha256:ba49bb2334b7747a05f8899ead84c5d09ca3f4879419aa76d63f308fa4215c9c
1+
# v0.4.5
2+
FROM vuls/go-exploitdb@sha256:83385d9d3dfe7bd8473b48788286bd607d8ab4898a04e5bfd66288e5ee2ad343
23

34
# Make directory to store DB if not volume mounted
45
RUN mkdir /vuls

update.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
set -euo pipefail
44

55
echo "Updating from awesomepoc..."
6-
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch awesomepoc
6+
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch awesomepoc || echo "Failed to fetch awesomepoc exploits db"
77

88
echo "Updating from exploitdb..."
9-
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch exploitdb
9+
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch exploitdb || echo "Failed to fetch exploitdb exploits db"
1010

1111
echo "Updating from githubrepos..."
12-
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch githubrepos
12+
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch githubrepos || echo "Failed to fetch githubrepos exploits db"
1313

14-
# Fetching inthewild is disabled because the following bug broke it: https://github.com/vulsio/go-exploitdb/issues/149
15-
# echo "Updating from inthewild..."
16-
# go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch inthewild
14+
echo "Updating from inthewild..."
15+
go-exploitdb --dbpath /vuls/go-exploitdb.sqlite3 fetch inthewild || echo "Failed to fetch inthewild exploits db"

0 commit comments

Comments
 (0)