success compile crack 5.0

success compile crack 5.0

Post by Pete » Tue, 24 Jun 2003 18:23:51



uncomment these two lines in Crack:
LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg:
NetBSD MD5
LIBS=-lcrypt # uncomment only if necessary to use stdlib crypt(), eg:
NetBSD MD5

change src/util/Makefile to:
###
# This program was written by and is copyright Alec Muffett 1991,
# 1992, 1993, 1994, 1995, 1996 & 1997, and is provided as part of the
# Crack v5.0 Password Cracking package.
#
# The copyright holder disclaims all responsibility or liability with
# respect to its usage or its effect upon hardware or computer
# systems, and maintains copyright as set out in the "LICENCE"
# document which accompanies distributions of Crack v5.0 and upwards.
###

CFLAGS= $(XCFLAGS) -I../lib
CC=     $(XCC)

XLIB=$(XDIR)/libc5.a $(XLIBS)

EXE=    $(XDIR)/dawg \
        $(XDIR)/kickdict \
        $(XDIR)/cracker

#------------------------------------------------------------------

all:    $(EXE)

clean:
        rm -f *.o *~

clobber: clean
        rm -f $(EXE)

$(XLIB):

#------------------------------------------------------------------

$(XDIR)/cracker:        cracker.c $(XLIB)
        mkcracker $(XDIR) "XDIR=$(XDIR)" "XCFLAGS=$(XCFLAGS)"
"XCC=$(XCC)" "XLIB=$(XLIB)"

# ...targets which are known to mkcracker...

$(XDIR)/stdlib-cracker: cracker.c $(XLIB)
        $(CC) $(CFLAGS) -c elcid.c
        $(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o $(XLIB)
        $(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o $(XLIB)

$(XDIR)/libdes-cracker: cracker.c $(XLIB)
        $(CC) $(CFLAGS) -c elcid.c
        $(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o
$(XLIB)../libdes/libdes.a
        $(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o
$(XLIB)../libdes/libdes.a

$(XDIR)/ufc-cracker: cracker.c $(XLIB)
        $(CC) $(CFLAGS) -DINITDES -DFCRYPT -c elcid.c
        $(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o
$(XLIB)../ufc-crypt/libufc.a
        $(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o

$(XDIR)/gnu-cracker: cracker.c $(XLIB)
        $(CC) $(CFLAGS) -c elcid.c
        $(CC) $(CFLAGS) -o $(XDIR)/cracker cracker.c elcid.o
$(XLIB)../crypt/libufc.a
        $(CC) $(CFLAGS) -o $(XDIR)/dictfilt dictfilt.c elcid.o
$(XLIB)../crypt/libufc.a

#------------------------------------------------------------------

$(XDIR)/dawg: dawg.c $(XLIB)
        $(CC) $(CFLAGS) -o $(XDIR)/dawg dawg.c $(XLIB)
        rm -f $(XDIR)/xdawg
        ln $(XDIR)/dawg $(XDIR)/xdawg

#------------------------------------------------------------------

$(XDIR)/kickdict: kickdict.c $(XLIB)
        $(CC) $(CFLAGS) -o $(XDIR)/kickdict kickdict.c $(XLIB)

Then run:
1) ./Crack -makeonly
2) ./Crack -makedict
3) ./Crack /etc/passwd (!!! better to save a passwd backup)

That's all

 
 
 

1. Compiling crack 5.0 on Red Hat 5.1


Eddy,

   I don't know much about this subject either, but I think I can point
you in the right direction.  Since Redhat 5.1 is glibc based, you need to
look at the GLIBC FAQ.  I think that talks about the missing crypt
function.  Hope this helps.

                                        Bernie Borenstein

2. Anyone install a Wangtek 5150 (Scsi) tape drive?

3. Probleme avec crack 5.0 + RH 5.0

4. usermod seg-faults!

5. Crack 5.0 compilation problems

6. 2 TTYs on same IRQ ??

7. Crack Ver. 5.0 on SV

8. help, how to make a linux ppc cd?

9. Crack 5.0 -- does it handle password diffs automatically?

10. Crack 5.0 dictionaries

11. Crack 5.0 on Aix 421.

12. Difference from Crack 4.1 to 5.0

13. Crack 5.0 - How to safely collect passwd files?