Convert Nmap Vulners script output to CSV
Project description
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:
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.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - 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 Distribution
Built Distribution
File details
Details for the file nmapvulners2csv-1.0.5.tar.gz
.
File metadata
- Download URL: nmapvulners2csv-1.0.5.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.16 Linux/5.15.0-1038-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fc6784defe7c2f6dee0ac13fc0f0963c83ceea6a0c6051c90123543bc43cd6 |
|
MD5 | 77e9e68b43a5d5afddff7f36b8695ba1 |
|
BLAKE2b-256 | 8a454a95357bd4258029198b0d8714710e6d19f5323b501a0ed7b35c05d65e9d |
File details
Details for the file nmapvulners2csv-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: nmapvulners2csv-1.0.5-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.16 Linux/5.15.0-1038-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac83325e2c7a8e1e56e6720612502705ed3bd79dcef92bd43c5b9d8545e59229 |
|
MD5 | 7d4859a657833154b469a86aab081e3d |
|
BLAKE2b-256 | 5e5c4331f6667c9dcb0ac65071d1687b2145b9cad96c1b56d726639ee444f53f |