Skip to content

SAP modules crash on result printing #20915

@Chepycou

Description

@Chepycou

Steps to reproduce

How'd you do it?

  1. Use auxiliary/scanner/sap/sap_soap_rfc_system_info or sap_icf_public_info.rb
  2. Run it against a target

Expected behavior

Results should be printed

Current behavior

the following error message is printed :

[-] Auxiliary failed: NoMethodError undefined method `gsub!' for an instance of Rex::Text::WrappedTable
[-] Call stack:
[-]   /usr/share/metasploit-framework/vendor/bundle/ruby/3.3.0/gems/rex-text-0.2.61/lib/rex/text/color.rb:60:in `substitute_colors'
[-]   /usr/share/metasploit-framework/lib/rex/ui/text/output.rb:68:in `print'
[-]   /usr/share/metasploit-framework/lib/rex/ui/subscriber.rb:75:in `print'
[-]   /usr/share/metasploit-framework/modules/auxiliary/scanner/sap/sap_soap_rfc_system_info.rb:187:in `run_host'
[-]   /usr/share/metasploit-framework/lib/msf/core/auxiliary/scanner.rb:116:in `block (2 levels) in run'
[-]   /usr/share/metasploit-framework/lib/msf/core/thread_manager.rb:105:in `block in spawn'
[-]   /usr/share/metasploit-framework/vendor/bundle/ruby/3.3.0/gems/logging-2.4.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

Metasploit version

Framework: 6.4.110-dev
Console : 6.4.110-dev

Additional Information

Basically the same fix as Pull request #20505

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions