Hello guys,

I am trying to import Nessus files in Metasploit but I have no success. It's been few days now so I decided to ask for a little help.

I connected to the database and I tried to import the scan results, in both nbe and nessus format.

When I try to import in the nbe format it tells me that it successfully imported the file, but there are no hosts in the database (the time while uploading the file is only 2 sec, so it is not working).

When I try the nessus file (db_import_nessus_xml, because simply db_import doesn't works) I receive the following message:

msf > db_import_nessus_xml /root/scans/24sept.nessus
[-] The command 'db_import_nessus_xml' is deprecated; use 'db_import /root/scans
/24sept.nessus' instead.
[-] Error while running command db_import_nessus_xml: undefined method `text' for nil:NilClass

Call stack:
/opt/metasploit3/msf3/lib/msf/core/db.rb:2550:in `block (2 levels) in import_nessus_xml'
/opt/metasploit3/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each'
/opt/metasploit3/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
/opt/metasploit3/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
/opt/metasploit3/lib/ruby/1.9.1/rexml/element.rb:906:in `each'
/opt/metasploit3/msf3/lib/msf/core/db.rb:2547:in `block in import_nessus_xml'
/opt/metasploit3/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each'
/opt/metasploit3/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
/opt/metasploit3/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
/opt/metasploit3/lib/ruby/1.9.1/rexml/element.rb:906:in `each'
/opt/metasploit3/msf3/lib/msf/core/db.rb:2504:in `import_nessus_xml'
/opt/metasploit3/msf3/lib/msf/core/db.rb:2494:in `import_nessus_xml_file'
/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1176:in `cmd_db_import_nessus_xml'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `block in run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:143:in `run'
/opt/metasploit3/msf3/msfconsole:117:in `<main>'

So... what should I do next??