Path: blob/master/modules/payloads/singles/generic/ssh/interact.rb
21547 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' => 'Interact with Established SSH Connection',16'Description' => 'Interacts with a shell on an established SSH connection',17'Author' => 'Spencer McIntyre',18'License' => MSF_LICENSE,19'Platform' => '',20'Arch' => ARCH_ALL,21'Handler' => Msf::Handler::Generic,22'Session' => Msf::Sessions::SshCommandShellBind,23'PayloadType' => 'ssh_interact',24'Payload' => {25'Offsets' => {},26'Payload' => ''27}28)29)30end3132def on_session(session)33super3435session.arch.clear # undo the ARCH_ALL amalgamation36end37end383940