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

Radare Rocks Shellcode

Radare Rocks Shellcode
Posted Jan 26, 2013
Authored by srm

67 bytes small write(1,"radare rocks!"); + exit() for SPARC 32-bit.

tags | shellcode
SHA-256 | fe17f7764e31480de236e2520ddda2ab879035769e6717bf1cb4e3bad3dd86d9

Radare Rocks Shellcode

Change Mirror Download
#include <stdio.h>

/*

write(1,"radare rocks!"); + _exit()
works on Solaris 2.6

--srm

*/


static char rocks[] =
"\x82\x10\x20\x04" // mov 4, %g1
"\x90\x10\x20\x01" // mov 1, %o0
"\x21\x1c\x98\x59" // sethi %hi(0x72616400), %l0
"\xa0\x14\x20\x61" // or %l0, 0x61, %l0 ! 0x72616461
"\x23\x1c\x99\x48" // sethi %hi(0x72652000), %l1
"\xa2\x14\x60\x72" // or %l1, 0x72, %l1 ! 0x72652072
"\x25\x1b\xd8\xda" // sethi %hi(0x6f636800), %l2
"\xa4\x14\xa3\x73" // or %l2, 0x373, %l2 ! 0x6f636b73
"\x27\x08\x48\x40" // sethi %hi(0x21210000), %l3
"\xa6\x14\xe0\x0a" // or %l3, _PROCEDURE_LINKAGE_TABLE_, %l3 ! 0x21210000
"\x92\x23\xa0\x10" // sub %sp, 16, %o1
"\xe0\x3b\xbf\xf0" // std %l0, [%sp - 16]
"\xe4\x3b\xbf\xf8" // std %l2, [%sp - 8]
"\x94\x10\x20\x10" // mov 16, %o2
"\x91\xd0\x20\x08" // ta 0x8
"\x82\x10\x20\x01" // mov 1, %g1
"\x90\x10\x20\x00" // clr %o0
"\x91\xd0\x20\x08"; // ta 0x8


int
main ()
{
int (*ret)(); /* ret is a function pointer */
ret = (int(*)())rocks; /* ret points to our shellcode */
/* shellcode is type caste as a function */
(int)(*ret)(); /* execute, as a function, shellcode[] */

}


Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close