rapid7/metasploit-framework

View on GitHub
modules/encoders/generic/none.rb

Summary

Maintainability
A
0 mins
Test Coverage
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Encoder

  def initialize
    super(
      'Name'             => 'The "none" Encoder',
      'Description'      => %q{
        This "encoder" does not transform the payload in any way.
      },
      'Author'           => 'spoonm',
      'License'          => MSF_LICENSE,
      'Arch'             => ARCH_ALL,
      'EncoderType'      => Msf::Encoder::Type::Raw)
  end

  #
  # Simply return the buf straight back.
  #
  def encode_block(state, buf)
    buf
  end
end