Skip to content

Commit 1be3fb3

Browse files
committed
Update auxiliary web http to support sni
1 parent e4aec40 commit 1be3fb3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/msf/core/auxiliary/web/http.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def connect
118118

119119
c.set_config({
120120
'vhost' => opts[:target].vhost,
121+
'ssl_server_name_indication' => opts[:target].vhost,
121122
'agent' => opts[:user_agent] || Rex::UserAgent.session_agent,
122123
'domain' => domain
123124
})

lib/msf/core/auxiliary/web/target.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class Auxiliary::Web::Target
3333
# Virtual host as a String.
3434
attr_accessor :vhost
3535

36+
# @return String SSL/TLS Server Name Indication (SNI)
37+
attr_accessor :ssl_server_name_indication
38+
3639
# String URI path.
3740
attr_accessor :path
3841

@@ -64,6 +67,7 @@ class Auxiliary::Web::Target
6467
# :port
6568
# :forms
6669
# :auditable
70+
# :ssl_server_name_indication
6771
#
6872
def initialize( options = {} )
6973
update( options )
@@ -79,6 +83,7 @@ def initialize( options = {} )
7983
# :port
8084
# :forms
8185
# :auditable
86+
# :ssl_server_name_indication
8287
#
8388
def update( options = {} )
8489
options.each { |k, v| send( "#{k}=", v ) }

0 commit comments

Comments
 (0)