lib/msf/core/payload/stager.rb
#
# Generates the stage payload and substitutes all offsets.
#
# @return [String] The generated payload stage, as a string.
Generates the stage payload and substitutes all offsets.
Generates the stage payload and substitutes all offsets .
def generate_stage
    if stage_assembly and !stage_assembly.empty?
      raw = build(stage_assembly, stage_offsets)
    else
      raw = stage_payload.dup
    end
    substitute_vars(raw, stage_offsets) if (stage_offsets)
    return raw
  end
def generate_stage if stage_assembly and ! stage_assembly . empty? raw = build ( stage_assembly , stage_offsets ) else raw = stage_payload . dup end substitute_vars ( raw , stage_offsets ) if ( stage_offsets ) return raw end
Generates the stage payload and substitutes all offsets.
Generates the stage payload and substitutes all offsets .
# XXX: This is nearly identical to Payload#internal_generate # Compile the stage as necessary # Substitute variables in the stage
The generated payload stage, as a string.
The generated payload stage as a string .
String