##
# $Id: sample.rb 9212 2010-05-03 17:13:09Z jduck $
##

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

module Msf
module Encoders

###
#
# This sample illustrates a very basic encoder that simply returns the block
# that it's passed.
#
###
class Sample < Msf::Encoder

	def initialize
		super(
			'Name'             => 'Sample encoder',
			'Version'          => '$Revision: 9212 $',
			'Description'      => %q{
				Sample encoder that just returns the block it's passed
				when encoding occurs.
			},
			'Author'           => 'skape',
			'Arch'             => ARCH_ALL)
	end

	#
	# Returns the unmodified buffer to the caller.
	#
	def encode_block(state, buf)
		buf
	end

end

end
end
