Results 1 to 3 of 3

Thread: Can't import Nessus files in Metasploit

  1. #1
    Just burned his ISO
    Join Date
    Aug 2010
    Posts
    2

    Default Can't import Nessus files in Metasploit

    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??

  2. #2
    Good friend of the forums espreto's Avatar
    Join Date
    Mar 2010
    Location
    Brazil
    Posts
    303

    Default Re: Can't import Nessus files in Metasploit

    Update metasploit...

    Code:
    # cd /pentest/exploits/framework3/; svn update; msfconsole
    After,

    Code:
    msf> load nessus
    And then:

    Code:
    msf> nessus_help
    Be happy.

    Regards,
    (gdb) disass m(y_br)ain

    ®

  3. #3
    Just burned his ISO
    Join Date
    Aug 2010
    Posts
    2

    Default Re: Can't import Nessus files in Metasploit

    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.

Similar Threads

  1. [Nessus + Metasploit]
    By bwen51 in forum Beginners Forum
    Replies: 3
    Last Post: 04-27-2010, 07:46 AM
  2. Nessus 4.2.2 and Metasploit v3.3.4
    By hanc2006 in forum Beginners Forum
    Replies: 2
    Last Post: 04-21-2010, 05:42 PM
  3. Using Nessus and/or Nexpose together with metasploit
    By imported_Warlord711 in forum OLD Pentesting
    Replies: 1
    Last Post: 02-03-2010, 04:46 AM
  4. Importing Nessus NBE scans into Metasploit
    By snorty mcsnort in forum OLD Newbie Area
    Replies: 0
    Last Post: 01-27-2009, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •