Skip to content

Commit ea54696

Browse files
author
HD Moore
committed
Remove redundant params now provided by the mixin helper
1 parent 8e8a366 commit ea54696

13 files changed

+7
-55
lines changed

modules/auxiliary/scanner/http/appletv_login.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ def run_host(ip)
7676

7777
scanner = Metasploit::Framework::LoginScanner::HTTP.new(
7878
configure_http_login_scanner(
79-
host: ip,
80-
port: rport,
8179
uri: "/stop",
8280
cred_details: cred_collection,
8381
stop_on_success: datastore['STOP_ON_SUCCESS'],

modules/auxiliary/scanner/http/axis_login.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ def run_host(ip)
8080

8181
scanner = Metasploit::Framework::LoginScanner::Axis2.new(
8282
configure_http_login_scanner(
83-
host: ip,
84-
port: rport,
8583
uri: uri,
8684
cred_details: cred_collection,
8785
stop_on_success: datastore['STOP_ON_SUCCESS'],

modules/auxiliary/scanner/http/buffalo_login.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ def run_host(ip)
4545

4646
scanner = Metasploit::Framework::LoginScanner::Buffalo.new(
4747
configure_http_login_scanner(
48-
host: ip,
49-
port: rport,
5048
cred_details: cred_collection,
5149
stop_on_success: datastore['STOP_ON_SUCCESS'],
5250
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],

modules/auxiliary/scanner/http/chef_webui_login.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,13 @@ def init_loginscanner(ip)
143143

144144
@scanner = Metasploit::Framework::LoginScanner::ChefWebUI.new(
145145
configure_http_login_scanner(
146-
host: ip,
147-
port: rport,
148146
uri: datastore['TARGETURI'],
149147
cred_details: @cred_collection,
150148
stop_on_success: datastore['STOP_ON_SUCCESS'],
151149
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],
152150
connection_timeout: 5
153151
)
154152
)
155-
156-
@scanner.ssl = datastore['SSL']
157-
@scanner.ssl_version = datastore['SSLVERSION']
158153
end
159154

160155
end

modules/auxiliary/scanner/http/glassfish_login.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ def initialize
5252
# the LoginScanner class so the authentication can proceed properly
5353
#
5454

55-
# Overrides the ssl method from HttpClient
56-
def ssl
57-
@scanner.ssl || datastore['SSL']
58-
end
59-
6055
#
6156
# For a while, older versions of Glassfish didn't need to set a password for admin,
6257
# but looks like no longer the case anymore, which means this method is getting useless
@@ -96,17 +91,12 @@ def init_loginscanner(ip)
9691

9792
@scanner = Metasploit::Framework::LoginScanner::Glassfish.new(
9893
configure_http_login_scanner(
99-
host: ip,
100-
port: rport,
10194
cred_details: @cred_collection,
10295
stop_on_success: datastore['STOP_ON_SUCCESS'],
10396
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],
10497
connection_timeout: 5
10598
)
10699
)
107-
108-
@scanner.ssl = datastore['SSL']
109-
@scanner.ssl_version = datastore['SSLVERSION']
110100
end
111101

112102
def do_report(ip, port, result)

modules/auxiliary/scanner/http/hp_sys_mgmt_login.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,13 @@ def init_loginscanner(ip)
7777

7878
@scanner = Metasploit::Framework::LoginScanner::Smh.new(
7979
configure_http_login_scanner(
80-
host: ip,
81-
port: rport,
8280
uri: datastore['URI'],
8381
cred_details: @cred_collection,
8482
stop_on_success: datastore['STOP_ON_SUCCESS'],
8583
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],
8684
connection_timeout: 5
8785
)
8886
)
89-
90-
@scanner.ssl = datastore['SSL']
91-
@scanner.ssl_version = datastore['SSLVERSION']
9287
end
9388

9489
def do_report(ip, port, result)

modules/auxiliary/scanner/http/http_login.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ def run_host(ip)
154154

155155
scanner = Metasploit::Framework::LoginScanner::HTTP.new(
156156
configure_http_login_scanner(
157-
host: ip,
158-
port: rport,
159157
uri: @uri,
160158
method: datastore['REQUESTTYPE'],
161159
cred_details: cred_collection,

modules/auxiliary/scanner/http/ipboard_login.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ def run_host(ip)
3939

4040
scanner = Metasploit::Framework::LoginScanner::IPBoard.new(
4141
configure_http_login_scanner(
42-
host: ip,
43-
port: rport,
4442
uri: normalize_uri(target_uri.path),
4543
cred_details: cred_collection,
4644
stop_on_success: datastore['STOP_ON_SUCCESS'],

modules/auxiliary/scanner/http/jenkins_login.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,17 @@ def initialize
3333

3434
def run_host(ip)
3535
cred_collection = Metasploit::Framework::CredentialCollection.new(
36-
blank_passwords: datastore['BLANK_PASSWORDS'],
37-
pass_file: datastore['PASS_FILE'],
38-
password: datastore['PASSWORD'],
39-
user_file: datastore['USER_FILE'],
40-
userpass_file: datastore['USERPASS_FILE'],
41-
username: datastore['USERNAME'],
42-
user_as_pass: datastore['USER_AS_PASS']
36+
blank_passwords: datastore['BLANK_PASSWORDS'],
37+
pass_file: datastore['PASS_FILE'],
38+
password: datastore['PASSWORD'],
39+
user_file: datastore['USER_FILE'],
40+
userpass_file: datastore['USERPASS_FILE'],
41+
username: datastore['USERNAME'],
42+
user_as_pass: datastore['USER_AS_PASS']
4343
)
4444

4545
scanner = Metasploit::Framework::LoginScanner::Jenkins.new(
4646
configure_http_login_scanner(
47-
host: ip,
48-
port: rport,
4947
cred_details: cred_collection,
5048
stop_on_success: datastore['STOP_ON_SUCCESS'],
5149
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],

modules/auxiliary/scanner/http/mybook_live_login.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,13 @@ def run_host(ip)
5656

5757
scanner = Metasploit::Framework::LoginScanner::MyBookLive.new(
5858
configure_http_login_scanner(
59-
host: ip,
60-
port: rport,
6159
cred_details: cred_collection,
6260
stop_on_success: datastore['STOP_ON_SUCCESS'],
6361
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],
6462
connection_timeout: 10,
6563
)
6664
)
6765

68-
if ssl
69-
scanner.ssl = datastore['SSL']
70-
scanner.ssl_version = datastore['SSLVERSION']
71-
end
72-
7366
scanner.scan! do |result|
7467
credential_data = result.to_h
7568
credential_data.merge!(

0 commit comments

Comments
 (0)