shadmrg for crack 4.1 for AIX

shadmrg for crack 4.1 for AIX

Post by DFRusse » Fri, 08 Apr 1994 21:57:53



This "*SHOULD*" work on most versions of Unix.
       ------

/*
 * This program produces a "standard" /etc/passwd file (i.e., with
 * the encrypted passwords in it) if run as root.
 *
 * To compile it on AIX: cc -ls <program name>.
*/
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
main(int argc, char **argv)
    {
    struct passwd pwentry, *pp = (struct passwd *)&pwentry;
    while ((pp = getpwent()) != (struct passwd *)NULL) {
        if (strlen(pp->pw_passwd) == 13) {
            printf("%s:%s:%d:%d:%s:%s:%s\n", pp->pw_name, pp->pw_passwd, pp->pw_uid,
                pp->pw_gid, pp->pw_gecos, pp->pw_dir, pp->pw_shell);
            }
        }
    }
~

--

.----------------------------------------------------------------.

| Martin Marietta for U.S. EPA NDPD                              |
| P.O. Box 14365, MD-4501-1B                                     |
| Research Triangle Park, NC  27709                              |
| (919) 541-2901, fax (919) 541-1948                             |
|                                                                |
| Tiger! Tiger! burning bright, in the forests of the night      |
| What immortal hand or eye, could frame thy fearful symmetry.   |
'----------------------------------------------------------------'

DISCLAIMER: views and opinions expressed herein are mine.  Not
Martin Marietta's -- not the EPA's -- mine!

 
 
 

1. Error on Crack 4.1

Hello, i tried to run crack on my server, and it bombed.. i untarred it
and edited crack and changed the home directory etc.. i tried running it
from /tmp/cr and this is what happened:

$ ./Crack -f -v /etc/passwd
Crack 4.1f RELEASE, The Password Cracker (c) Alec D.E. Muffett, 1992
Invoked as: ./Crack -f -v /etc/passwd
Dictionary Dicts/bigdict.Z intact
Binary directory: /tmp/cr/crack-4.1/generic
        ( cd ../Sources ; make clean )
        rm -f *.o *.u *.a *.pixie *.Addrs *.Counts
        rm -f crack-pwc tester bytesex testrule
        rm -f speedcrypt speedfcrypt speedxform speedufc
        ( cd ../Sources ; make crack-pwc.which )
Choosing between Crack.fcrypt and Crack.ufc
        ((../Scripts/do_ufc && make crack-pwc.ufc) || make crack-pwc.fcrypt)
Looking for UFC-crypt in /tmp/cr/crack-4.1/ufc-crypt
Cannot find /tmp/cr/crack-4.1/ufc-crypt - cannot use UFC-crypt on this
platform
        cc -O -c crack-lib.c
sh: cc: 0402-032 Execute permission is denied.
make: 1254-004 The error code from the last command is 1.

Make Quitting.
make: 1254-005 Ignored error code 2 from last command.
        cp ../Sources/crack-pwc .
cp: ../Sources/crack-pwc: A file or directory in the path name does not
exist.
make: 1254-004 The error code from the last command is 1.

Make Quitting.
 ----------


2. Help with "grep"

3. AIX 3.2.5 vs AIX 4.1

4. "hanging" open sockets

5. Crack 4.1 on an Alpha AXP?

6. Need help!

7. RE Crack 4.1 on Next

8. unix2dos. How does it understand wild cards?

9. Crack 4.1 - doesnt crypt properly on NeXTs?

10. Difference from Crack 4.1 to 5.0

11. **Help With Crack 4.1!!!

12. Crack 4.1 on Digital Unix

13. shadow and Crack 4.1