Update metasploit...
After,Code:# cd /pentest/exploits/framework3/; svn update; msfconsole
And then:Code:msf> load nessus
Be happy.Code:msf> nessus_help
Regards,
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??
Update metasploit...
After,Code:# cd /pentest/exploits/framework3/; svn update; msfconsole
And then:Code:msf> load nessus
Be happy.Code:msf> nessus_help
Regards,
(gdb) disass m(y_br)ain
®
Thank you very much.
Unfortunatelly it is not working.
First of all, my metasploit is on another computer than my scanner. I just copied the scan results from my server and I want to import them in metasploit to see what vulnerabilities are exploitable. I don't want to exploit them (now), I just need a list woth the most vulnerable ones in order to help me prioritize the remediation process.
I tried to follow the tutorial from the metasploit course, but it is not working with the new version of metasploit
If you have another solution please help. I will try myself, too.
Regards.