CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/encoders/generic/none.rb
Views: 1904
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