vulsio / go-exploitdb

Tool for searching Exploits from Exploit Databases, etc.
MIT License
249 stars 56 forks source link

feat(fetch): remove awesomepoc because it has stopped updating #101

Closed MaineK00n closed 1 year ago

MaineK00n commented 2 years ago

What did you implement:

qazbnm456/awesome-cve-poc used to be one of the data sources, but it seems to have stopped being updated, so it will be removed from the data sources.

remove awesomepoc data in your DB

redis-cli HDEL EDB#DEP "AwesomePoc" for key in $(redis-cli --scan --pattern "EDB#EDB#AwesomePoc-*") do cveid="EDB#CVE#$(redis-cli --raw HKEYS $key)" member="$(echo $key | cut -c 9-)" redis-cli SREM $cveid $member redis-cli DEL $key done


## Type of change
- [x] New feature (non-breaking change which adds functionality)
- [x] This change requires a documentation update

# How Has This Been Tested?
```console
$ go-exploitdb fetch awesomepoc
Fetch the data of exploit

Usage:
  go-exploitdb fetch [command]

Available Commands:
  exploitdb   Fetch the data of offensive security exploit db
  githubrepos Fetch the data of github repos
  inthewild   Fetch the data of inTheWild Poc

Flags:
      --batch-size int   The number of batch size to insert. (default 500)
  -h, --help             help for fetch

Global 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
      --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 fetch [command] --help" for more information about a command.

Checklist:

You don't have to satisfy all of the following.

Is this ready for review?: YES

Reference