Search PoC from cve using go-exploitdb and output to list.
$ ./setup.sh
To update poc data, run setup.sh
same way!
$ ./search_poc_from_cve.sh CVE-2022-0848 CVE-2022-0846
$ ./search_poc_from_cve.sh cve_sample.list
$ docker run -v local_volume:/go-exploitdb vuls/go-exploitdb
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5ba9bad6fd4b vuls/go-exploitdb "go-exploitdb --help" 6 seconds ago Exited (0) 5 seconds ago eager_sinoussi
$ docker cp 5ba9bad6fd4b:/go-exploitdb/go-exploitdb.sqlite3 ./
$ docker rm 5ba
# View from sqlite command
$ sqlite3 go-exploitdb.sqlite3
$ cat <<"EOF" >> ~/.zshrc
search_poc () {
docker run --rm -v local_volume:/go-exploitdb vuls/go-exploitdb search --type CVE --param "$@"
}
EOF