Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/encoders/generic/none.rb
21536 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Encoder
7
8
def initialize
9
super(
10
'Name' => 'The "none" Encoder',
11
'Description' => %q{
12
This "encoder" does not transform the payload in any way.
13
},
14
'Author' => 'spoonm',
15
'License' => MSF_LICENSE,
16
'Arch' => ARCH_ALL,
17
'EncoderType' => Msf::Encoder::Type::Raw)
18
end
19
20
#
21
# Simply return the buf straight back.
22
#
23
def encode_block(_state, buf)
24
buf
25
end
26
end
27
28