Land #5819, update stage_payload call arguments
commit
ad149a1aec
|
@ -20,22 +20,12 @@ 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])
|
||||||
[
|
|
||||||
false,
|
|
||||||
"The platform that is being targeted",
|
|
||||||
nil
|
|
||||||
]),
|
|
||||||
OptString.new('ARCH',
|
|
||||||
[
|
|
||||||
false,
|
|
||||||
"The architecture that is being targeted",
|
|
||||||
nil
|
|
||||||
])
|
|
||||||
], Msf::Payload::Generic)
|
], 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue