Files
metasploit-gs/documentation/samples/modules/encoders/sample.rb
T
Matt Miller a2df616bd4 devguide samples
git-svn-id: file:///home/svn/incoming/trunk@3154 4d416f70-5f16-0410-b530-b9f4589650da
2005-11-28 23:49:48 +00:00

35 lines
579 B
Ruby

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$',
'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