mrschyte / nmap-converter

Python script for converting nmap reports into XLS
BSD 2-Clause "Simplified" License
336 stars 87 forks source link

error #3

Closed blockchainguard closed 5 years ago

blockchainguard commented 5 years ago

Traceback (most recent call last): File "nmap-converter.py", line 143, in main(reports, workbook) File "nmap-converter.py", line 119, in main sheet_func(workbook, sheet, report) File "nmap-converter.py", line 24, in generate_summary sheet.write(sheet.lastrow + 1, idx, summary_bodyitem) File "nmap-converter.py", line 14, in "Scan Type": lambda report: report.scan_type, File "/usr/lib/python2.7/site-packages/libnmap/objects/report.py", line 113, in scan_type return self._scaninfo['type'] KeyError: 'type'

mrschyte commented 5 years ago

This is an error from the libnmap library, not nmap-converter. Please run the script using Python3 and make sure you have the latest version of libnmap installed and you are converting a valid XML NMAP report.