From a99fae420a531ec4d029878bddad9436c4d94213 Mon Sep 17 00:00:00 2001 From: sjanusz-r7 Date: Tue, 17 Dec 2024 14:27:41 +0000 Subject: [PATCH] Capitalize TeamCity correctly --- lib/metasploit/framework/login_scanner/teamcity.rb | 2 +- lib/msf_autoload.rb | 3 ++- modules/auxiliary/scanner/teamcity/teamcity_login.rb | 2 +- spec/modules/auxiliary/scanner/teamcity/teamcity_login_spec.rb | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/metasploit/framework/login_scanner/teamcity.rb b/lib/metasploit/framework/login_scanner/teamcity.rb index f4cc52f0702d..6589ac5fcb55 100644 --- a/lib/metasploit/framework/login_scanner/teamcity.rb +++ b/lib/metasploit/framework/login_scanner/teamcity.rb @@ -7,7 +7,7 @@ module LoginScanner # This is the LoginScanner class for dealing with JetBrains TeamCity instances. # It is responsible for taking a single target, and a list of credentials # and attempting them. It then saves the results. - class Teamcity < HTTP + class TeamCity < HTTP module Crypto # https://github.com/openssl/openssl/blob/a08a145d4a7e663dd1e973f06a56e983a5e916f7/crypto/rsa/rsa_pk1.c#L125 diff --git a/lib/msf_autoload.rb b/lib/msf_autoload.rb index c546aa8dc195..86c40223ab70 100644 --- a/lib/msf_autoload.rb +++ b/lib/msf_autoload.rb @@ -297,7 +297,8 @@ def custom_inflections 'appapi' => 'AppApi', 'uds_errors' => 'UDSErrors', 'smb_hash_capture' => 'SMBHashCapture', - 'rex_ntlm' => 'RexNTLM' + 'rex_ntlm' => 'RexNTLM', + 'teamcity' => 'TeamCity' } end diff --git a/modules/auxiliary/scanner/teamcity/teamcity_login.rb b/modules/auxiliary/scanner/teamcity/teamcity_login.rb index 44cdbdb6f883..31e6aed9fd45 100644 --- a/modules/auxiliary/scanner/teamcity/teamcity_login.rb +++ b/modules/auxiliary/scanner/teamcity/teamcity_login.rb @@ -93,7 +93,7 @@ def run_host(ip) ssl: datastore['SSL'] ) - scanner = Metasploit::Framework::LoginScanner::Teamcity.new(scanner_opts) + scanner = Metasploit::Framework::LoginScanner::TeamCity.new(scanner_opts) run_scanner(scanner) end end diff --git a/spec/modules/auxiliary/scanner/teamcity/teamcity_login_spec.rb b/spec/modules/auxiliary/scanner/teamcity/teamcity_login_spec.rb index 6583ba2e22dc..22e69a16080a 100644 --- a/spec/modules/auxiliary/scanner/teamcity/teamcity_login_spec.rb +++ b/spec/modules/auxiliary/scanner/teamcity/teamcity_login_spec.rb @@ -1,7 +1,7 @@ require 'rspec' require 'metasploit/framework/login_scanner/teamcity' -RSpec.describe Metasploit::Framework::LoginScanner::Teamcity do +RSpec.describe Metasploit::Framework::LoginScanner::TeamCity do let(:subject) { described_class.new }