You should open up a bug with this on the metasploit-framework github issue
tracker. You can also cc @brandonprry on it.


On Fri, Aug 22, 2014 at 6:13 AM, Jack Daniels <
jackdaniels7...@googlemail.com> wrote:

> Hello all.
>
> This might be a silly mistake, but I am stuck, please help me out.
>
>
> I am using openvas 4.0 in metasploit msf console.
>
> I am able to perform scan on local lan. I am able to export that scan to
> my local drive.
>
> But I am unable to import scan report in to console database using 
> *openvas_report_import
> 11 5, * the response was like
>
>
> msf > openvas_report_import 11 5
> [*] Importing report to database.
> [-] Error while running command openvas_report_import: Could not
> automatically determine file type
>
> Call stack:
> /usr/share/metasploit-framework/lib/msf/core/db.rb:3178:in
> `import_filetype_detect'
> /usr/share/metasploit-framework/lib/msf/core/db.rb:2953:in `import'
> /usr/share/metasploit-framework/plugins/openvas.rb:527:in
> `cmd_openvas_report_import'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:427:in
> `run_command'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:389:in
> `block in run_single'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in
> `each'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in
> `run_single'
> /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:200:in `run'
> /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:15:in
> `start'
> /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in
> `start'
> /opt/metasploit/apps/pro/msf3/msfconsole:22:in `<main>'
> msf >
>
>
> when I tried to do *openvas_report_import 11 8, * the response was like
>
> msf >
> msf > openvas_report_import 11 8
> [*] Importing report to database.
> [-] Error while running command openvas_report_import: could not connect
> to server: Connection refused
> Is the server running on host "192.168.56.102" and accepting
>  TCP/IP connections on port 5432?
>
>
> Call stack:
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in
> `initialize'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in
> `new'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in
> `connect'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:324:in
> `initialize'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
> `new'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in
> `postgresql_connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in
> `new_connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in
> `checkout_new_connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in
> `block (2 levels) in checkout'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in
> `loop'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in
> `block in checkout'
> /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in
> `checkout'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in
> `block in connection'
> /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in
> `connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in
> `retrieve_connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in
> `retrieve_connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in
> `connection'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/model_schema.rb:229:in
> `columns'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/model_schema.rb:244:in
> `column_defaults'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.17/lib/active_record/base.rb:482:in
> `initialize'
> /usr/share/metasploit-framework/lib/rex/parser/nokogiri_doc_mixin.rb:166:in
> `new'
> /usr/share/metasploit-framework/lib/rex/parser/nokogiri_doc_mixin.rb:166:in
> `db_valid_attributes'
> /usr/share/metasploit-framework/lib/rex/parser/nokogiri_doc_mixin.rb:143:in
> `db_report'
> /usr/share/metasploit-framework/lib/rex/parser/openvas_nokogiri.rb:162:in
> `record_service'
> /usr/share/metasploit-framework/lib/rex/parser/openvas_nokogiri.rb:110:in
> `end_element'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/document.rb:127:in
> `end_element_namespace'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/parser.rb:112:in
> `parse_with'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/parser.rb:112:in
> `parse_memory'
> /opt/metasploit/apps/pro/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.1/lib/nokogiri/xml/sax/parser.rb:84:in
> `parse'
> /usr/share/metasploit-framework/lib/msf/core/db.rb:3287:in
> `import_openvas_new_xml'
> /usr/share/metasploit-framework/lib/msf/core/db.rb:2955:in `import'
> /usr/share/metasploit-framework/plugins/openvas.rb:527:in
> `cmd_openvas_report_import'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:427:in
> `run_command'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:389:in
> `block in run_single'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in
> `each'
> /usr/share/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:383:in
> `run_single'
> /usr/share/metasploit-framework/lib/rex/ui/text/shell.rb:200:in `run'
> /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:15:in
> `start'
> /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in
> `start'
> /opt/metasploit/apps/pro/msf3/msfconsole:22:in `<main>'
> msf >
>
>
>
> _______________________________________________
> Openvas-discuss mailing list
> Openvas-discuss@wald.intevation.org
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>



-- 
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to