qrz.is/content/post/2014-05-05-nse-script-sqlite-output-for-nmap.md

23 lines
972 B
Markdown
Raw Normal View History

2021-07-13 19:53:07 -04:00
---
title: 'NSE-Script: SQLite output for Nmap'
author: micha
date: 2014-05-05T13:36:29+00:00
url: /nse-script-sqlite-output-for-nmap/
categories:
- Uncategorized
---
2021-07-16 04:49:30 -04:00
I wrote this little NSE script that allows you to store the output of Nmap into a SQLite database: <a href="https://git.qrz.is/clemens/nmap-sqlite-output" title="sqlite-output" target="_blank">https://github.com/exitnode/nmap-sqlite-output<br /> </a>
2021-07-13 19:53:07 -04:00
This might come in handy when performing large inventory scans. The SQLite database can be queried and sorted easily or exported as a CSV file. This way you can, for example, easily generate tables for your assessment report.
**Example:**
`$ nmap -sS -A -F --script sqlite-output scanme.nmap.org<br />
[...]<br />
$ sqlite3 scan.sqlite<br />
[...]<br />
sqlite> select * from scandata;<br />
scanme.nmap.org|74.207.244.221|22|tcp|ssh|open|OpenSSH5.3p1 Debian 3ubuntu7.1<br />
scanme.nmap.org|74.207.244.221|80|tcp|http|open|Apache httpd2.2.14`