2005-10-31 19:15:21 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
module Encoders
|
|
|
|
module Generic
|
|
|
|
|
|
|
|
class None < Msf::Encoder
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super(
|
|
|
|
'Name' => 'The "none" Encoder',
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'Description' => %q{
|
|
|
|
This "encoder" does not transform the payload in any way.
|
|
|
|
},
|
|
|
|
'Author' => 'spoonm',
|
2006-01-16 02:59:47 +00:00
|
|
|
'License' => GPL_LICENSE,
|
2005-10-31 19:15:21 +00:00
|
|
|
'Arch' => ARCH_ALL)
|
|
|
|
end
|
|
|
|
|
|
|
|
#
|
|
|
|
# Simply return the buf straight back.
|
|
|
|
#
|
|
|
|
def encode_block(state, buf)
|
|
|
|
buf
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end end end
|