Path: blob/master/modules/payloads/singles/cmd/unix/bind_stub.rb
21551 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule6CachedSize = 078include Msf::Payload::Single9include Msf::Sessions::CommandShellOptions1011def initialize(info = {})12super(13merge_info(14info,15'Name' => 'Unix Command Shell, Bind TCP (stub)',16'Description' => 'Listen for a connection and spawn a command shell (stub only, no payload)',17'Author' => 'hdm',18'License' => MSF_LICENSE,19'Platform' => 'unix',20'Arch' => ARCH_CMD,21'Handler' => Msf::Handler::BindTcp,22'Session' => Msf::Sessions::CommandShell,23'PayloadType' => 'cmd_bind_stub',24'RequiredCmd' => '',25'Payload' => {26'Offsets' => {},27'Payload' => ''28}29)30)31end3233#34# Generate an empty payload35#36def generate(_opts = {})37''38end39end404142