Metasploit mailing list archives

Re: Error from openvas_report_import function after scan completion


From: Average SecurityGuy <averagesecurityguy () gmail com>
Date: Fri, 23 Sep 2011 15:46:59 -0400

I am still working on the code for this module. I am rewriting the module to
simplify the code and improve the error handling. It also appeared that some
of the functionality was not fully implemented so I am trying to fix that as
well.

On Tue, Sep 13, 2011 at 9:21 PM, George Birmingham <
sec_engineer () roadrunner com> wrote:

 Greetings. Having completed the first scan using OpenVAS from Metasploit,
I received the following error when trying to import the scan results:

Test initiation:

*msf > openvas_task_start a2eb7c84-f28f-49c7-8ae4-3be813e1f954
    :
    :
    *<*Task executes without issuing any errors and was monitored using
the Browser (Greenbone Security Assistant) access to OpenVAS>*
    *:*
    :
*msf > openvas_task_list a2eb7c84-f28f-49c7-8ae4-3be813e1f954
[+] OpenVAS list of tasks

ID                                    Name        Status  Progress
--                                    ----        ------  --------
a2eb7c84-f28f-49c7-8ae4-3be813e1f954  RouterScan  Done    -1*

*msf > openvas_report_import a2eb7c84-f28f-49c7-8ae4-3be813e1f954*
[-] Error while running command openvas_report_import: undefined method
`elements' for nil:NilClass

Call stack:
/pentest/framework-4.0.0/msf3/lib/openvas/openvas-omp.rb:500:in
`report_get_byid'
/pentest/framework-4.0.0/msf3/plugins/openvas.rb:653:in
`cmd_openvas_report_import'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in
`send'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in
`run_command'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:342:in
`run_single'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in
`each'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in
`run_single'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/shell.rb:199:in `run'
/pentest/framework-4.0.0/msf3/msfconsole:130

*msf > openvas_report_import a2eb7c84-f28f-49c7-8ae4-3be813e1f954*
[-] Error while running command openvas_report_import: undefined method
`text' for nil:NilClass

Call stack:
/pentest/framework-4.0.0/msf3/lib/openvas/openvas-omp.rb:500:in
`report_get_byid'
/pentest/framework-4.0.0/msf3/plugins/openvas.rb:653:in
`cmd_openvas_report_import'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in
`send'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:380:in
`run_command'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:342:in
`run_single'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in
`each'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:336:in
`run_single'
/pentest/framework-4.0.0/msf3/lib/rex/ui/text/shell.rb:199:in `run'
/pentest/framework-4.0.0/msf3/msfconsole:130*
msf >*

In viewing the OpenVAS report in the browser, the router has two findings,
one HIGH and one MEDIUM.

What shall I try next ?

Thanks,

George Birmingham
Huntersville, NC


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




-- 
Stephen Haywood
Security Consultant

Twitter: @averagesecguy
Blog: averagesecurityguy.info <http://averagesecurityguy.info>
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

Current thread: