Skip to content

Commit 77f506c

Browse files
committed
Land rapid7#5532 : Fix rapid7#5531, the stage_payload method does not take arguments
Fixes rapid7#5531
2 parents 9dde32f + ab6f3a7 commit 77f506c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/msf/core/payload/stager.rb

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

144145
# Substitute variables in the stage

0 commit comments

Comments
 (0)