Skip to content

Latest commit

 

History

History
97 lines (63 loc) · 2.87 KB

README.md

File metadata and controls

97 lines (63 loc) · 2.87 KB

CVE Details Fetcher

github stars

This script fetches and displays details about specified CVE (Common Vulnerabilities and Exposures) IDs using the CIRCL CVE API. It also checks for available exploits related to the CVE IDs using searchsploit and nomi-sec.

print

Prerequisites

Ensure the following tools are installed on your system:

  • curl
  • jq
  • searchsploit

You can install them using the following commands:

sudo apt-get install curl jq exploitdb

or you can use the following commands:

git clone https://gitlab.com/exploit-database/exploitdb.git

Script Usage

Make sure to set the appropriate permissions to execute the script:

chmod +x cve_details_fetcher.sh

Command-Line Arguments

  • --cve <CVE ID>: Specify a single CVE ID to fetch details for.
  • --list <CVE list file>: Specify a file containing a list of CVE IDs, one per line.
  • --ref <number of references to show>: (Optional) Specify the number of references to display. Default is 3.
  • --e: (Optional) Include this flag to show exploits related to the CVE from the CVE API and searchsploit.

Examples

  1. Fetch details for a single CVE ID:
./cve_details_fetcher.sh --cve 2022-0001
  1. Fetch details for a single CVE ID and show related exploits:
./cve_details_fetcher.sh --cve 2022-0001 --e
  1. Fetch details for a list of CVE IDs from a file:
./cve_details_fetcher.sh --list cve_list.txt
  1. Fetch details for a list of CVE IDs from a file and show related exploits:
./cve_details_fetcher.sh --list cve_list.txt --e

To fetch and display details for multiple CVE IDs from a file:

./cve_details_fetcher.sh --list cve_list.txt --ref 5 --e

print

Feature

  • Option to show only exploit.

Notes

  • Ensure searchsploit is correctly configured and its path is added to your PATH environment variable.
  • Adjust the script and commands as needed based on your environment and requirements.

Copyright © 2022-present bortotti Org