exploit the possibilities
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:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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