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
sqlite3
sqlite> DELETE FROM exploits WHERE exploit_type = "AwesomePoc"
redis
#!/bin/bash
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.
[ ] Write tests
[x] Write documentation
[x] Check that there aren't other open pull requests for the same issue/feature
[x] Format your source code by make fmt
[x] Pass the test by make test
[x] Provide verification config / commands
[x] Enable "Allow edits from maintainers" for this PR
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
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Is this ready for review?: YES
Reference