Skip to content

Commit 53394fb

Browse files
authored
Merge pull request rapid7#19986 from sjanusz-r7/add-teamcity-login-scanner-test
Add TeamCity Login Scanner spec test
2 parents 5a1e418 + a6d0401 commit 53394fb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/metasploit/framework/login_scanner/teamcity.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ def encrypt_data(text, public_key)
125125
LIKELY_SERVICE_NAMES = [
126126
# Comes from nmap 7.95 on MacOS
127127
'skynetflow',
128-
'teamcity'
128+
'teamcity',
129+
'http',
130+
'https'
129131
]
130132
PRIVATE_TYPES = [:password]
131133
REALM_KEY = nil

spec/modules/auxiliary/scanner/teamcity/teamcity_login_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
RSpec.describe Metasploit::Framework::LoginScanner::TeamCity do
55

6+
it_behaves_like 'Metasploit::Framework::LoginScanner::Base', has_realm_key: false, has_default_realm: false
7+
it_behaves_like 'Metasploit::Framework::LoginScanner::RexSocket'
8+
it_behaves_like 'Metasploit::Framework::LoginScanner::HTTP'
9+
610
let(:subject) { described_class.new }
711

812
# Sample public key taken from a running instance of TeamCity

0 commit comments

Comments
 (0)