Example analysis of using nmap-converter to convert nmap scan result XML into XLS

WBOY
Release: 2023-05-17 13:04:19
forward
1755 people have browsed it

Use nmap-converter to convert the nmap scan result XML into XLS practice

1. Foreword

As a network security practitioner, sometimes you need to use the port scanning tool nmap to perform large-volume port scanning , but the output results of Nmap are in three formats: .nmap, .xml and .gnmap, and contain a lot of unnecessary information, which is very inconvenient to process. The output results are converted into Excel tables to process the later output. A technical expert shared a Python script to convert nmap reports to XLS, so today we can use this script to convert nmap reports to XLS files.

2. nmap-converter

The address of this project is: https://github.com/mrschyte/nmap-converter

2) Environmental requirements

(1) Python (python2.7 for this test)

(2) Depends on python modules: python-libnmap, XlsxWriter, installation: pip install python-libnmap, pip install XlsxWriter

3) Usage: nmap-converter.py [-h] [-o XLS] XML [XML ...]

Example: nmap-converter.py -o test.xlsx test.xml

(test.xlsx is the converted Excel, test.xml is the nmap output xml format result)

3. Use actual combat

1) Prepare the file

Place the python conversion script nmap-converter.py and the xml file test.xml scanned by nmap in the same directory.

2) Open cmd and execute: nmap-converter.py -o test.xlsx test .xml,

3) Conversion results

After the conversion is completed, a test.xlsx file is generated in the directory and can be processed using Excel.

The above is the detailed content of Example analysis of using nmap-converter to convert nmap scan result XML into XLS. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template