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

View File

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

View File

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

View File

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