metasploit-framework/modules/payloads/singles/cmd/unix/reverse_stub.rb

40 lines
978 B
Ruby

##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
module MetasploitModule
CachedSize = 0
include Msf::Payload::Single
include Msf::Sessions::CommandShellOptions
def initialize(info = {})
super(merge_info(info,
'Name' => 'Unix Command Shell, Reverse TCP (stub)',
'Description' => 'Creates an interactive shell through an inbound connection (stub only, no payload)',
'Author' => 'hdm',
'License' => MSF_LICENSE,
'Platform' => 'unix',
'Arch' => ARCH_CMD,
'Handler' => Msf::Handler::ReverseTcp,
'Session' => Msf::Sessions::CommandShell,
'PayloadType' => 'cmd_reverse_stub',
'Payload' =>
{
'Offsets' => { },
'Payload' => ''
}
))
end
#
# Generate an empty payload
#
def generate(_opts = {})
''
end
end