Skip to content

DharmaDoll/Search-Poc-from-CVE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search-Poc-from-CVE

Search PoC from cve using go-exploitdb and output to list.

Deployment of go-exploitdb docker

$ ./setup.sh

To update poc data, run setup.sh same way!

Search poc from CVE number

$ ./search_poc_from_cve.sh CVE-2022-0848 CVE-2022-0846

Search poc from CVE list

$ ./search_poc_from_cve.sh cve_sample.list

As needed you can see database

$ 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

It might be useful to set it in alias

$ cat <<"EOF" >> ~/.zshrc
search_poc () {
    docker run --rm -v local_volume:/go-exploitdb vuls/go-exploitdb search --type CVE --param "$@"
}
EOF

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages