Metasploit mailing list archives

Re: Can no import Nmap scan results into database


From: thelab <thelab13 () gmail com>
Date: Mon, 6 Sep 2010 10:37:23 -0400

your not specifying your output format in nmap:

-oA : for all formats
-oX : for just xml

On Sep 6, 2010, at 8:10 AM, Spring Systems wrote:

I have the following problem: I can no import Nmap scanning resilts into a database. Nmap installed into default dir 
C:\Program Files\Nmap 
First I run  Zenmap GUI, do scanning, then save result in default directory (Nmap), result is .xml file. Then run msf 
console, created new database (I had no before)
 msf > db_create
then tried import result in several ways:

db_import_nmap_xml result.xml

but got
[*] Could not read the NMAP file

tried with path to file(full or short)

msf > db_import_nmap_xml nmap/result.xml
[*] Could not read the NMAP file

This not work, so tried run Nmap from console:

msf > nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,3389 xxx.xxx.xxx.xx  filename

After scan finished, tried to import results:

msf > db_import_nmap_xml filename.xml

but it not works:
[*] Could not read the NMAP file

What is wrong? I followed tutorials in http://www.offensive-security.com/metasploit-unleashed/port-scanning

Regards,
Spring
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

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

Current thread: