We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d358b commit 0321000Copy full SHA for 0321000
lib/msf/core/exploit/cmdstager/http.rb
@@ -15,28 +15,17 @@ def initialize(info = {})
15
end
16
17
def start_service(opts = {})
18
- if opts[:busybox] && (ssl = datastore['SSL'])
19
- datastore['SSL'] = false
20
- end
+ datastore_ssl = datastore['SSL']
+ datastore['SSL'] = !!opts[:ssl]
21
22
super
23
- payload_uri = get_uri
24
25
- if ssl
26
- datastore['SSL'] = true
27
+ payload_uri = get_uri
+ datastore['SSL'] = datastore_ssl
28
29
payload_uri
30
31
32
- def resource_uri
33
- if (datastore['URIPATH'] || '').end_with?(?/)
34
- random_uri
35
- else
36
- super
37
38
39
-
40
def on_request_uri(cli, request)
41
if request['User-Agent'] =~ /^(?:Wget|curl)/
42
send_response(cli, exe)
0 commit comments