File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,6 @@ def stage_meterpreter(opts={})
119
119
120
120
callback_url = "#{ scheme } ://#{ lhost } :#{ lport } #{ ds [ 'LURI' ] } #{ uri } /"
121
121
122
- $stderr. puts callback_url
123
-
124
122
# patch in the various payload related configuration
125
123
met . sub! ( 'HTTP_CONNECTION_URL = None' , "HTTP_CONNECTION_URL = '#{ var_escape . call ( callback_url ) } '" )
126
124
met . sub! ( 'HTTP_USER_AGENT = None' , "HTTP_USER_AGENT = '#{ var_escape . call ( http_user_agent ) } '" ) if http_user_agent . to_s != ''
Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ def transport_config_bind_tcp(opts={})
37
37
def transport_config_reverse_https ( opts = { } )
38
38
ds = opts [ :datastore ] || datastore
39
39
config = transport_config_reverse_http ( opts )
40
- config [ :scheme ] = 'https'
41
- if ds [ 'OverrideRequestHost' ]
42
- config [ :scheme ] = ds [ 'OverrideScheme' ] || config [ :scheme ]
43
- end
44
40
config [ :ssl_cert_hash ] = get_ssl_cert_hash ( ds [ 'StagerVerifySSLCert' ] ,
45
41
ds [ 'HandlerSSLCert' ] )
46
42
config
@@ -59,7 +55,7 @@ def transport_config_reverse_http(opts={})
59
55
60
56
ds = opts [ :datastore ] || datastore
61
57
62
- scheme = 'http'
58
+ scheme = opts [ :url ] . to_s . split ( ':' ) [ 0 ]
63
59
lhost = ds [ 'LHOST' ]
64
60
lport = ds [ 'LPORT' ]
65
61
if ds [ 'OverrideRequestHost' ]
You can’t perform that action at this time.
0 commit comments