Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/payloads/singles/generic/shell_bind_tcp.rb
21540 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
module MetasploitModule
7
CachedSize = 0
8
9
include Msf::Payload::Single
10
include Msf::Payload::Generic
11
12
def initialize(info = {})
13
super(
14
merge_info(
15
info,
16
'Name' => 'Generic Command Shell, Bind TCP Inline',
17
'Description' => 'Listen for a connection and spawn a command shell',
18
'Author' => 'skape',
19
'License' => MSF_LICENSE,
20
'Handler' => Msf::Handler::BindTcp,
21
'Session' => Msf::Sessions::CommandShell
22
)
23
)
24
end
25
end
26
27