Cosmetic tweaks to the specs
This commit is contained in:
parent
7dc0af443f
commit
60145ad9a1
File diff suppressed because it is too large
Load Diff
|
@ -63,24 +63,24 @@
|
|||
# single payloads, there will be one ancestor reference name from `modules/payloads/singles`, while for staged
|
||||
# payloads there with be one ancestor reference name from `modules/payloads/stagers` and one ancestor reference name
|
||||
# from `modules/payloads/stages`.
|
||||
# @option options [Boolean] :dynamic_size The dynamic_size flag determines whether we expect this module to generate a
|
||||
# variable size payload or to have a valid cached_size
|
||||
# @option options [Pathname] :modules_pathname The `modules` directory from which to load `:ancestor_reference_names`.
|
||||
# @option options [String] :reference_name The reference name for payload class that should be instantiated from mixing
|
||||
# `:ancestor_reference_names`.
|
||||
# @option options [Boolean] :dynamic_size The dynamic_size flag determines whether we expect this module to generate a
|
||||
# variable size payload or to have a valid cached_size
|
||||
# @return [void]
|
||||
shared_examples_for 'payload cached size is consistent' do |options|
|
||||
options.assert_valid_keys(:ancestor_reference_names, :modules_pathname, :reference_name, :dynamic_size)
|
||||
|
||||
ancestor_reference_names = options.fetch(:ancestor_reference_names)
|
||||
|
||||
dynamic_size = options.fetch(:dynamic_size)
|
||||
|
||||
modules_pathname = options.fetch(:modules_pathname)
|
||||
modules_path = modules_pathname.to_path
|
||||
|
||||
reference_name = options.fetch(:reference_name)
|
||||
|
||||
dynamic_size = options.fetch(:dynamic_size)
|
||||
|
||||
module_type = 'payload'
|
||||
|
||||
include_context 'Msf::Simple::Framework#modules loading'
|
||||
|
|
Loading…
Reference in New Issue