Cosmetic tweaks to the specs

This commit is contained in:
HD Moore 2015-03-09 15:08:11 -05:00
parent 7dc0af443f
commit 60145ad9a1
2 changed files with 365 additions and 365 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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'