File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
metasploit/framework/login_scanner Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,7 @@ def create_client(opts)
334
334
rport = opts [ 'rport' ] || port
335
335
cli_ssl = opts [ 'ssl' ] || ssl
336
336
cli_ssl_version = opts [ 'ssl_version' ] || ssl_version
337
+ cli_sslkeylogfile = opts [ 'SSLKeyLogFile' ] || sslkeylogfile
337
338
cli_proxies = opts [ 'proxies' ] || proxies
338
339
username = opts [ 'credential' ] ? opts [ 'credential' ] . public : http_username
339
340
password = opts [ 'credential' ] ? opts [ 'credential' ] . private : http_password
@@ -357,7 +358,8 @@ def create_client(opts)
357
358
username ,
358
359
password ,
359
360
kerberos_authenticator : kerberos_authenticator ,
360
- subscriber : http_logger_subscriber
361
+ subscriber : http_logger_subscriber ,
362
+ sslkeylogfile : cli_sslkeylogfile
361
363
)
362
364
configure_http_client ( cli )
363
365
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ module RexSocket
21
21
# @!attribute ssl_verify_mode
22
22
# @return [String] the SSL certification verification mechanism
23
23
attr_accessor :ssl_verify_mode
24
+ # @!attribute sslkeylogfile
25
+ # @return [String, nil] The SSL key log file path
26
+ attr_accessor :sslkeylogfile
24
27
# @!attribute ssl_cipher
25
28
# @return [String] The SSL cipher to use for the context
26
29
attr_accessor :ssl_cipher
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ def configure_login_scanner(conf)
20
20
proxies : datastore [ 'Proxies' ] ,
21
21
stop_on_success : datastore [ 'STOP_ON_SUCCESS' ] ,
22
22
bruteforce_speed : datastore [ 'BRUTEFORCE_SPEED' ] ,
23
+ sslkeylogfile : datastore [ 'SSLKeyLogFile' ] ,
23
24
framework : framework ,
24
25
framework_module : self ,
25
26
local_port : datastore [ 'CPORT' ] ,
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def connect(t = -1)
184
184
'Context' => context ,
185
185
'SSL' => ssl ,
186
186
'SSLVersion' => ssl_version ,
187
- 'SSLKeyLogFile' => sslkeylogfile ,
187
+ 'SSLKeyLogFile' => config [ 'SSLKeyLogFile' ] || sslkeylogfile ,
188
188
'Proxies' => proxies ,
189
189
'Timeout' => timeout ,
190
190
'Comm' => comm
You can’t perform that action at this time.
0 commit comments