Metasploit mailing list archives

Re: Can no import Nmap scan results into database


From: Spring Systems <korund () hotmail com>
Date: Tue, 7 Sep 2010 14:43:26 +0000




Date: Mon, 6 Sep 2010 13:34:33 -0500
Subject: Re: [framework] Can no import Nmap scan results into database
From: todb () planb-security net
To: lists () carnal0wnage com
CC: korund () hotmail com; framework () spool metasploit com

db_import_nmap_xml blah.xml
[*] Could not read the NMAP file

Generally, db_import is a better method than the various
db_import_file_format commands; the specific commands will get
deprecated here soon(ish). db_import handles multiple files and does
some basic type detection so you can import several files from several
products at once.

msf > db_import whatever.xml
[-] No such file whatever.xml

The error is a little more specific, too, since it distinguishes
between not found and not readable.

-tod

ps just committed r10246 to deprecate db_import_nmap_xml and friends.

pps yeah Spring Systems, the problem seems to be missing the -oX for nmap.
---------------------------


Tried sevaral ways, not works anyway.


] The specified database already exists, connecting
[*] Successfully connected to the database
[*] File: /home/admin/.msf3/sqlite3.db
msf > load db_tracker
[*] Successfully loaded plugin: db_tracker
msf > db_import c:/program files/nmap/test.xml
[-] No such file c:/program
[-] No such file files/nmap/test.xml
msf > db_import nmap/test.xml
[-] No such file nmap/test.xml
msf > db_import test.xml
[-] No such file test.xml
msf > db_import -oX test.xml
[-] No such file -oX
[-] No such file test.xml
msf > db_import -oX nmap/test.xml
[-] No such file -oX
[-] No such file nmap/test.xml
msf > db_import c:\program files\nmap\test.xml
[-] No such file c:program
[-] No such file filesnmaptest.xml
msf > db_import program files/nmap/test.xml -oX
[-] No such file program
[-] No such file files/nmap/test.xml
[-] No such file -oX


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

Current thread: