Skip to content

Commit 0fca448

Browse files
committed
Correctly call generate_stage on native init
1 parent 6ec7661 commit 0fca448

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/msf/core/handler/reverse_http.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def on_request(cli, req)
380380
begin
381381
# generate the stage, but pass in the existing UUID and connection id so that
382382
# we don't get new ones generated.
383-
blob = self.stage_payload(
383+
blob = self.generate_stage(
384384
uuid: uuid,
385385
uri: conn_id,
386386
lhost: uri.host,

lib/msf/core/payload/stager.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ def generate_stage(opts={})
138138
if stage_assembly and !stage_assembly.empty?
139139
raw = build(stage_assembly, stage_offsets)
140140
else
141-
# Options get ignored by the stage_payload method
142-
raw = stage_payload
141+
raw = stage_payload(opts)
143142
end
144143

145144
# Substitute variables in the stage

0 commit comments

Comments
 (0)