2010-05-03 17:13:09 +00:00
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
2012-10-09 02:29:55 +00:00
|
|
|
# web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/
|
2010-05-03 17:13:09 +00:00
|
|
|
##
|
|
|
|
|
2005-11-28 23:49:48 +00:00
|
|
|
###
|
|
|
|
#
|
|
|
|
# This sample illustrates a very basic encoder that simply returns the block
|
|
|
|
# that it's passed.
|
|
|
|
#
|
|
|
|
###
|
2012-10-09 02:23:38 +00:00
|
|
|
class Metasploit4 < Msf::Encoder
|
2005-11-28 23:49:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-05-03 17:13:09 +00:00
|
|
|
end
|