what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

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
SHA-256 | e3af7d99040def573ba17626a6c290811b8d7652264094ec8340fdf45dac57c5

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();
}
Login or Register to add favorites

File Archive:

February 2023

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close