Skip to content

Commit 007da4a

Browse files
committed
Force :init_connect for stageless
1 parent 10a6945 commit 007da4a

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

lib/msf/core/payload/transport_config.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def transport_config_reverse_http(opts={})
4848
# going up as part of the stage.
4949
uri = opts[:uri]
5050
unless uri
51-
sum = uri_checksum_lookup(:connect)
51+
type = opts[:stageless] == true ? :init_connect : :connect
52+
sum = uri_checksum_lookup(type)
5253
uri = generate_uri_uuid(sum, opts[:uuid])
5354
end
5455

modules/payloads/singles/windows/meterpreter_reverse_http.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def generate
4545

4646
def generate_config(opts={})
4747
opts[:uuid] ||= generate_payload_uuid
48+
opts[:stageless] = true
4849

4950
# create the configuration block
5051
config_opts = {

modules/payloads/singles/windows/meterpreter_reverse_https.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def generate
4545

4646
def generate_config(opts={})
4747
opts[:uuid] ||= generate_payload_uuid
48+
opts[:stageless] = true
4849

4950
# create the configuration block
5051
config_opts = {

modules/payloads/singles/windows/x64/meterpreter_reverse_http.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def generate
4545

4646
def generate_config(opts={})
4747
opts[:uuid] ||= generate_payload_uuid
48+
opts[:stageless] = true
4849

4950
# create the configuration block
5051
config_opts = {

modules/payloads/singles/windows/x64/meterpreter_reverse_https.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def generate
4545

4646
def generate_config(opts={})
4747
opts[:uuid] ||= generate_payload_uuid
48+
opts[:stageless] = true
4849

4950
# create the configuration block
5051
config_opts = {

0 commit comments

Comments
 (0)