nmap-sqlite-output/README.md

31 lines
1002 B
Markdown
Raw Normal View History

2014-04-29 23:29:20 +02:00
nmap-sqlite
===========
2014-05-01 01:35:01 +02:00
This nmap plugin stores the following nmap output into a sqlite3 database: Hostname, IP, port number, protocol (tcp/udp), service and version.
2014-05-01 01:41:50 +02:00
Both, database file name and table name can be passed to the plugin via arguments (see @args or @example), data will always be appended to an existing table. Non-existant database files or tables are created during the scan. Nmap's regular output (-o) will not be modified in any way.
2014-05-01 01:33:41 +02:00
2014-05-01 01:35:01 +02:00
usage
=====
2014-05-01 01:44:15 +02:00
```
nmap --script sqlite-output <target>
```
2014-05-01 01:35:01 +02:00
example
=======
2014-05-01 01:44:15 +02:00
```
$ nmap -sS -A -F --script sqlite-output --script-args=dbname=scan.sqlite,dbtable=scandata scanme.nmap.org
$ sqlite3 can.sqlite
sqlite> select * from scandata;
scanme.nmap.org|74.207.244.221|22|tcp|ssh|OpenSSH5.3p1 Debian 3ubuntu7.1
scanme.nmap.org|74.207.244.221|80|tcp|http|Apache httpd2.2.14
```
2014-05-01 01:35:01 +02:00
args
=====
2014-05-01 01:44:15 +02:00
```
dbname: name of sqlite database file (default: scan.sqlite)
dbtable: name of database table in which the output will be written (default: scandata)
```