This module extracts CVE vulnerability information from the MITRE CVE database and saves the results to a CSV file. It performs web scraping to fetch CVE records based on keywords provided via the command line and converts the results into a pandas DataFrame
for easy processing.
pip install -r requirements.txt
python cve2csv.py
Help menu:
python cve2csv.py -h
usage: cve2csv.py [-h] [-o OUTPUT] [-d DELIMITER] [-e ENCODING] [-v | -q] keyword
Fetch CVE data from MITRE and save to CSV.
positional arguments:
keyword Search keyword for CVE entries.
options:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT Output CSV file name.
-d DELIMITER, --delimiter DELIMITER CSV delimiter.
-e ENCODING, --encoding ENCODING CSV encoding.
-v, --verbose Increase output verbosity.Use -v, -vv, or -vvv for more verbosity.
-q, --quiet Suppress all output except errors.
Contributions are welcome! If you have improvements, bug fixes, or new modules to add, feel free to submit a pull request.
The content of this repository is licensed under the BSD-3-Clause License.
Feel free to get in touch with me!