Skip to main content

Convert Nmap Vulners script output to CSV

Project description

nmapvulners2csv

nmapvulners2csv

Table of Contents

Getting Started

Run nmap with enabled script Vulners and save xml output, for example:

nmap -sV --script vulners -oX <nmap_output.xml>  

Example

The output of the tool is like the following: Execution example

Install & Run

To install it you just need to run:

pip install nmapvulners2csv

Run without installing

Prerequisites

Install dependencies by using the following command:

pip install -r requirements.txt
chmod +x nmapvulners2csv/nmapvulners2csv.py
Usage: nmapvulners2csv.py NMAP_XML_FILE <flags>
  optional flags:        --output | --descr
  

To run the converter:

nmapvulners2csv.py <nmap_output.xml>   

the script will generate a file output.csv in output dir. If you want to set the output file:

nmapvulners2csv.py <nmap_output.xml>  --output <output_csv_file> --dir <output_directory>

For multiple data:

for i in `ls -1 vulners*`; do python nmapvulners2csv.py $i ${i%%.xml}.csv ; done   

Evidences Description

nmapvulners2csv does not generate descriptions for vulnerabilities. You can add --descr flag to add descriptions in CSV. The script scrapes description information from Vulners site. The command is more time-expensive and send several HTTP requests against Vulners website. Not tested for IP ban and network issues.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Credits

nmapvulners2csv is proudly developed @SecSI by:

License

Distributed under Apache 2 License. See LICENSE for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

nmapvulners2csv-1.0.7-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file nmapvulners2csv-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: nmapvulners2csv-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.0 Linux/6.2.0-1018-azure

File hashes

Hashes for nmapvulners2csv-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 59e96e4bd937719d6cd1de08da5dd482f6dbe4703f4a0ae64c37097a337d2534
MD5 b235126985df8303fcb17b936e9d6d50
BLAKE2b-256 ec96b25154b0955c7d797079cb9b81161543a8b94f717138abb0219e9afee15c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page