Skip to content

Commit ab6f3a7

Browse files
author
HD Moore
committed
Fix rapid7#5531, the stage_payload method does not take arguments.
1 parent 8f4a44a commit ab6f3a7

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)