Skip to content

Commit 386441d

Browse files
committed
TeamCity: Consolidate HTTP TeamCity into module
1 parent c37f4e6 commit 386441d

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

lib/msf/core/exploit/remote/http/teamcity.rb

Lines changed: 0 additions & 25 deletions
This file was deleted.

modules/auxiliary/scanner/teamcity/teamcity_login.rb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55

66
require 'metasploit/framework/credential_collection'
77
require 'metasploit/framework/login_scanner/teamcity'
8-
require 'msf/core/exploit/remote/http/teamcity'
98

109
class MetasploitModule < Msf::Auxiliary
1110
include Msf::Auxiliary::Scanner
1211
include Msf::Auxiliary::AuthBrute
13-
include Msf::Exploit::Remote::HTTP::Teamcity
12+
include Msf::Exploit::Remote::HttpClient
1413

1514
def initialize(info = {})
1615
super(update_info(info,
@@ -21,6 +20,14 @@ def initialize(info = {})
2120
)
2221
)
2322

23+
register_options(
24+
[
25+
Msf::OptString.new('TARGETURI', [true, 'The base path to the TeamCity application', '/']),
26+
Opt::RPORT(8111),
27+
OptBool.new('PASSWORD_SPRAY', [true, 'Reverse the credential pairing order. For each password, attempt every possible user.', true]),
28+
], self.class
29+
)
30+
2431
options_to_deregister = ['DOMAIN']
2532
deregister_options(*options_to_deregister)
2633
end
@@ -59,7 +66,6 @@ def run_scanner(scanner)
5966

6067
def run_host(ip)
6168
cred_collection = build_credential_collection(
62-
realm: datastore['DATABASE'],
6369
username: datastore['USERNAME'],
6470
password: datastore['PASSWORD']
6571
)

0 commit comments

Comments
 (0)