metasploit-framework/modules/encoders/generic/none.rb

31 lines
517 B
Ruby
Raw Normal View History

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',
'License' => GPL_LICENSE,
'Arch' => ARCH_ALL)
end
#
# Simply return the buf straight back.
#
def encode_block(state, buf)
buf
end
end
end end end