Metasploit mailing list archives

db_nmap doesn't populate DB


From: Tasos Laskos <tasos.laskos () gmail com>
Date: Sat, 16 Oct 2010 19:26:03 +0100

 Hi guys,

I'm trying to use db_nmap but for some reason it doesn't populate the database.

Version: metasploit v3.5.0-dev [core:3.5 api:1.0]
SVN revision: 10702 (latest from SVN)

Step by step:
-----------------
msf > db_connect root@127.0.0.1/msf
msf > db_driver
[*]    Active Driver: mysql
[*]        Available: mysql

[*]     DB Support: Enable the sqlite3 driver with the following command:
[*]                 $ gem install sqlite3-ruby
[-]     Note that sqlite is not supported due to numerous issues.
[-]     It may work, but don't count on it

[*]     DB Support: Enable the postgresql driver with the following command:
[*]                   * This requires libpq-dev and a build environment
[*]                 $ gem install postgres
[*]                 $ gem install pg # is an alternative that may work

msf > db_nmap -P0 127.0.0.1

Starting Nmap 5.21 ( http://nmap.org ) at 2010-10-16 19:22 BST
Nmap scan report for localhost.localdomain (127.0.0.1)
Host is up (0.00016s latency).
Not shown: 993 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
631/tcp  open  ipp
3306/tcp open  mysql
8010/tcp open  xmpp

Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
msf > db_hosts

Hosts
=====

address address6 arch comm comments created_at info mac name os_flavor os_lang os_name os_sp purpose state updated_at svcs vulns workspace ------- -------- ---- ---- -------- ---------- ---- --- ---- --------- ------- ------- ----- ------- ----- ---------- ---- ----- ---------

msf >
--------------

Am I doing something wrong or is this a bug?

Cheers,
Tasos L.

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: