From ab6f3a73738e52551d829a338fe9d1f6d2e4441e Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 13 Jun 2015 18:26:56 -0500 Subject: [PATCH] Fix #5531, the ```stage_payload``` method does not take arguments. --- lib/msf/core/payload/stager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/payload/stager.rb b/lib/msf/core/payload/stager.rb index 4b33c00898..574e3ef6ae 100644 --- a/lib/msf/core/payload/stager.rb +++ b/lib/msf/core/payload/stager.rb @@ -138,7 +138,8 @@ module Msf::Payload::Stager if stage_assembly and !stage_assembly.empty? raw = build(stage_assembly, stage_offsets) else - raw = stage_payload(opts).dup + # Options get ignored by the stage_payload method + raw = stage_payload end # Substitute variables in the stage