Land #5819, update stage_payload call arguments

bug/bundler_fix
Brent Cook 2015-08-16 11:17:28 -05:00
commit ad149a1aec
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
4 changed files with 11 additions and 21 deletions

View File

@ -20,23 +20,13 @@ module Payload::Generic
def initialize(info = {})
super(merge_info(info,
'Arch' => ARCH_ALL - [ARCH_TTY],
'Platform' => ''))
'Platform' => ''
))
register_advanced_options(
[
OptString.new('PLATFORM',
[
false,
"The platform that is being targeted",
nil
]),
OptString.new('ARCH',
[
false,
"The architecture that is being targeted",
nil
])
], Msf::Payload::Generic)
register_advanced_options([
OptString.new('PLATFORM', [false, "The platform that is being targeted", nil]),
OptString.new('ARCH', [false, "The architecture that is being targeted", nil])
], Msf::Payload::Generic)
end
#
@ -103,8 +93,8 @@ module Payload::Generic
# Stager overrides
#
def stage_payload
redirect_to_actual(:stage_payload)
def stage_payload(*args)
redirect_to_actual(:stage_payload, *args)
end
def stage_offsets

View File

@ -88,7 +88,7 @@ module Msf::Payload::Stager
# Can be nil if the final stage is not pre-assembled.
#
# @return [String,nil]
def stage_payload
def stage_payload(opts = {})
return module_info['Stage']['Payload']
end

View File

@ -70,7 +70,7 @@ module Payload::Windows::ReflectiveDllInject
^
end
def stage_payload
def stage_payload(opts = {})
# Exceptions will be thrown by the mixin if there are issues.
dll, offset = load_rdi_dll(library_path)

View File

@ -71,7 +71,7 @@ module Payload::Windows::ReflectiveDllInject_x64
^
end
def stage_payload
def stage_payload(opts = {})
# Exceptions will be thrown by the mixin if there are issues.
dll, offset = load_rdi_dll(library_path)