mirror of
https://codeberg.org/mclemens/qrz.is.git
synced 2024-11-02 18:37:32 -04:00
e6adda7935
added tags to all posts
27 lines
888 B
Markdown
27 lines
888 B
Markdown
---
|
|
title: 'NSE-Script: SQLite output for Nmap'
|
|
type: post
|
|
author: micha
|
|
date: 2014-05-05T13:36:29+00:00
|
|
url: /nse-script-sqlite-output-for-nmap/
|
|
tags:
|
|
- Software
|
|
- Nmap
|
|
---
|
|
I wrote this little NSE script that allows you to store the output of Nmap into a SQLite database: [https://git.qrz.is/clemens/nmap-sqlite-output](https://git.qrz.is/clemens/nmap-sqlite-output)
|
|
|
|
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
|
|
[...]
|
|
$ sqlite3 scan.sqlite
|
|
[...]
|
|
sqlite> select * from scandata;
|
|
scanme.nmap.org|74.207.244.221|22|tcp|ssh|open|OpenSSH5.3p1 Debian 3ubuntu7.1
|
|
scanme.nmap.org|74.207.244.221|80|tcp|http|open|Apache httpd2.2.14
|
|
```
|