$ rm go.mod go.sum
$ go mod init
go: creating new go.mod: module github.com/tttfrfr2/go-exploitdb
go: to add module requirements and sums:
go mod tidy
$ go mod tidy
go: finding module for package github.com/vulsio/go-exploitdb/commands
go: finding module for package github.com/inconshreveable/log15
go: finding module for package github.com/spf13/cobra
go: finding module for package github.com/mitchellh/go-homedir
go: finding module for package github.com/spf13/viper
go: finding module for package github.com/vulsio/go-exploitdb/config
go: finding module for package github.com/vulsio/go-exploitdb/db
go: finding module for package github.com/vulsio/go-exploitdb/fetcher
go: finding module for package github.com/vulsio/go-exploitdb/models
go: finding module for package github.com/vulsio/go-exploitdb/server
go: finding module for package github.com/vulsio/go-exploitdb/util
go: finding module for package golang.org/x/xerrors
go: finding module for package github.com/cheggaaa/pb/v3
go: finding module for package github.com/go-redis/redis/v8
go: finding module for package github.com/mattn/go-sqlite3
go: finding module for package gorm.io/driver/mysql
go: finding module for package gorm.io/driver/postgres
go: finding module for package gorm.io/driver/sqlite
go: finding module for package gorm.io/gorm
go: finding module for package gorm.io/gorm/clause
go: finding module for package gorm.io/gorm/logger
go: finding module for package github.com/gocarina/gocsv
go: finding module for package github.com/russross/blackfriday/v2
go: finding module for package github.com/vulsio/go-exploitdb/git
go: downloading github.com/gocarina/gocsv v0.0.0-20220422102445-f48ffd81e276
go: finding module for package golang.org/x/net/html/charset
go: finding module for package gopkg.in/src-d/go-git.v4
go: finding module for package gopkg.in/src-d/go-git.v4/plumbing/object
go: finding module for package gopkg.in/src-d/go-git.v4/plumbing/storer
go: finding module for package github.com/labstack/echo
go: finding module for package github.com/labstack/echo/middleware
go: finding module for package github.com/parnurzeal/gorequest
go: found github.com/vulsio/go-exploitdb/commands in github.com/vulsio/go-exploitdb v0.4.2
go: found github.com/inconshreveable/log15 in github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
go: found github.com/mitchellh/go-homedir in github.com/mitchellh/go-homedir v1.1.0
go: found github.com/spf13/cobra in github.com/spf13/cobra v1.4.0
go: found github.com/spf13/viper in github.com/spf13/viper v1.11.0
go: found github.com/vulsio/go-exploitdb/config in github.com/vulsio/go-exploitdb v0.4.2
go: found github.com/vulsio/go-exploitdb/db in github.com/vulsio/go-exploitdb v0.4.2
go: found github.com/vulsio/go-exploitdb/fetcher in github.com/vulsio/go-exploitdb v0.4.2
go: found github.com/vulsio/go-exploitdb/models in github.com/vulsio/go-exploitdb v0.4.2
go: found github.com/vulsio/go-exploitdb/server in github.com/vulsio/go-exploitdb v0.4.2
go: found github.com/vulsio/go-exploitdb/util in github.com/vulsio/go-exploitdb v0.4.2
go: found golang.org/x/xerrors in golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f
go: found github.com/cheggaaa/pb/v3 in github.com/cheggaaa/pb/v3 v3.0.8
go: found github.com/go-redis/redis/v8 in github.com/go-redis/redis/v8 v8.11.5
go: found github.com/mattn/go-sqlite3 in github.com/mattn/go-sqlite3 v1.14.12
go: found gorm.io/driver/mysql in gorm.io/driver/mysql v1.3.3
go: found gorm.io/driver/postgres in gorm.io/driver/postgres v1.3.5
go: found gorm.io/driver/sqlite in gorm.io/driver/sqlite v1.3.2
go: found gorm.io/gorm in gorm.io/gorm v1.23.5
go: found gorm.io/gorm/clause in gorm.io/gorm v1.23.5
go: found gorm.io/gorm/logger in gorm.io/gorm v1.23.5
go: found github.com/gocarina/gocsv in github.com/gocarina/gocsv v0.0.0-20220422102445-f48ffd81e276
go: found github.com/russross/blackfriday/v2 in github.com/russross/blackfriday/v2 v2.1.0
go: found github.com/vulsio/go-exploitdb/git in github.com/vulsio/go-exploitdb v0.4.2
go: found golang.org/x/net/html/charset in golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4
go: found gopkg.in/src-d/go-git.v4 in gopkg.in/src-d/go-git.v4 v4.13.1
go: found gopkg.in/src-d/go-git.v4/plumbing/object in gopkg.in/src-d/go-git.v4 v4.13.1
go: found gopkg.in/src-d/go-git.v4/plumbing/storer in gopkg.in/src-d/go-git.v4 v4.13.1
go: found github.com/labstack/echo in github.com/labstack/echo v3.3.10+incompatible
go: found github.com/labstack/echo/middleware in github.com/labstack/echo v3.3.10+incompatible
go: found github.com/parnurzeal/gorequest in github.com/parnurzeal/gorequest v0.2.16
How Has This Been Tested?
$ make install
GO111MODULE=on go install -ldflags "-X 'github.com/vulsio/go-exploitdb/config.Version=v0.2.0' -X 'github.com/vulsio/go-exploitdb/config.Revision=cd637be'"
otuki@otukicysec:~/go/src/github.com/tttfrfr2/go-exploitdb (modUpdate)
$ go-exploitdb
Go Exploit DB
Usage:
go-exploitdb [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
fetch Fetch the data of exploit
help Help about any command
search Search the data of exploit
server Start go-exploitdb HTTP server
version Show version
Flags:
--config string config file (default is $HOME/.go-exploitdb.yaml)
--dbpath string /path/to/sqlite3 or SQL connection string
--dbtype string Database type to store data in (sqlite3, mysql, postgres or redis supported)
--debug debug mode (default: false)
--debug-sql SQL debug mode
-h, --help help for go-exploitdb
--http-proxy string http://proxy-url:port (default: empty)
--log-dir string /path/to/log
--log-json output log as JSON
--log-to-file output log to file
Use "go-exploitdb [command] --help" for more information about a command.
Checklist:
You don't have to satisfy all of the following.
[ ] Write tests
[ ] Write documentation
[ ] Check that there aren't other open pull requests for the same issue/feature
[x] Format your source code by make fmt
[ ] Pass the test by make test
[ ] Provide verification config / commands
[x] Enable "Allow edits from maintainers" for this PR
What did you implement:
Updated modules whcih go-exploitdb depends on
How Has This Been Tested?
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: Yes