mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
This is Alec Muffett's password guessing program.
This version (5.0) supports the 4.4BSD password format, and also FreeBSD's MD5 style passwords.
This commit is contained in:
parent
49f701302b
commit
7117a1d4ad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5489
49
security/crack/Makefile
Normal file
49
security/crack/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# ex:ts=8
|
||||
# Ports collection makefile for: Crack
|
||||
# Version required: 5.0
|
||||
# Date created: 12 Jan 1997
|
||||
# Whom: David O'Brien <obrien@FreeBSD.org>
|
||||
# Whom: Yukihiro Nakai <nakai@mlab.t.u-tokyo.ac.jp>
|
||||
|
||||
DISTNAME= crack5.0
|
||||
PKGNAME= crack-5.0
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ftp://ftp.win.tue.nl/pub/security/ \
|
||||
ftp://ftp.lerc.nasa.gov/security/ \
|
||||
ftp://ftp.ox.ac.uk/pub/comp/security/software/crackers/ \
|
||||
ftp://ftp.info.au/security/eindhoven/ \
|
||||
ftp://ftp.iis.u-tokyo.ac.jp/pub/security/
|
||||
|
||||
MAINTAINER= obrien@FreeBSD.org
|
||||
|
||||
RESTRICTED= "contains crypto (libdes)"
|
||||
WRKSRC= ${WRKDIR}/c50a
|
||||
|
||||
pre-configure:
|
||||
.if !defined(USE_DES)
|
||||
/bin/mv -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.orig
|
||||
/bin/mv -f ${WRKSRC}/src/util/elcid.c ${WRKSRC}/src/util/elcid.c.orig
|
||||
${CP} -p ${WRKSRC}/src/util/elcid.c,bsd ${WRKSRC}/src/util/elcid.c
|
||||
echo "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
|
||||
.endif
|
||||
|
||||
pre-build:
|
||||
@(if [ ! -f /usr/share/dict/words ];then \
|
||||
echo "You may want to install the dict distribution into /usr/share/dict" ; \
|
||||
echo "to increase the size of the cracking dictionary." ; \
|
||||
fi)
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} ; ./Crack -makeonly)
|
||||
(cd ${WRKSRC} ; ./Crack -makedict)
|
||||
.if !defined(USE_DES)
|
||||
#(cd ${WRKSRC} ; ./Crack -fgnd -fmt bsd ${FILESDIR}/pw-md5.test)
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/crack
|
||||
${RM} -f ${WRKSRC}/Run/*
|
||||
(cd ${WRKSRC} ; tar cf - . | (cd ${PREFIX}/crack; tar xfBp -))
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
1
security/crack/distinfo
Normal file
1
security/crack/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (crack5.0.tar.gz) = 6511dca525b7b921ea09eca855cc58f2
|
11
security/crack/files/patch-02
Normal file
11
security/crack/files/patch-02
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/libdes/Makefile.orig Thu Dec 19 01:29:21 1996
|
||||
+++ src/libdes/Makefile Fri Jan 31 11:14:52 1997
|
||||
@@ -10,7 +10,7 @@
|
||||
# If you are on a DEC Alpha, edit des.h and change the DES_LONG
|
||||
# define to 'unsigned int'. I have seen this give a %20 speedup.
|
||||
|
||||
-OPTS0= -DRAND -DTERMIO #-DNOCONST
|
||||
+OPTS0= -DRAND -DTERMIOS #-DNOCONST
|
||||
|
||||
# Version 1.94 has changed the strings_to_key function so that it is
|
||||
# now compatible with MITs when the string is longer than 8 characters.
|
11
security/crack/files/patch-03
Normal file
11
security/crack/files/patch-03
Normal file
@ -0,0 +1,11 @@
|
||||
--- conf/dictgrps.conf.orig Fri Dec 13 10:32:34 1996
|
||||
+++ conf/dictgrps.conf Fri Jan 31 11:16:16 1997
|
||||
@@ -16,7 +16,7 @@
|
||||
# Dict '2' is created from $CRACK_HOME/dict/2/*
|
||||
# Dict '3' is created from $CRACK_HOME/dict/3/*
|
||||
|
||||
-1:/usr/dict/*words* dict/1/*
|
||||
+1:/usr/share/dict/*words* dict/1/*
|
||||
2:dict/2/*
|
||||
3:dict/3/*
|
||||
|
1
security/crack/files/pw-md5.test
Normal file
1
security/crack/files/pw-md5.test
Normal file
@ -0,0 +1 @@
|
||||
cracker:$1$KhBa0EkO$k4YYCCiLb9QhAZBa3c8D5/:1000:10000::0:0:Evil &:/home/crack:/bin/csh
|
9
security/crack/files/pw.freebsd
Normal file
9
security/crack/files/pw.freebsd
Normal file
@ -0,0 +1,9 @@
|
||||
root:$1$48PMy$Z5Vlux.H5dXWhut4ops5b0:0:0::0:0:Charlie &:/root:/bin/csh
|
||||
toor:$1$dCzEfMgs$KkX36eGQiWrnOFtSgmgkx1:0:0::0:0:Bourne-again Superuser:/root:
|
||||
rootk:$1$BMeXpPVU$2wjGMUeDAKsXDtmmZ4B2E/:0:0::0:0:Clark Kent,phonebooth,1(800)suprman,unlisted:/home/rootk:/usr/local/bin/bash
|
||||
daemon:*:1:31::0:0:Owner of many system processes:/root:
|
||||
bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/nonexistent
|
||||
user1:$1$KodDB$MS2uwh1xkprFUMzkf/h4S.:114:31::0:0:USER1,UCD Med Center,(916) 752-7900,(916) 753-0000:/home/user1:/usr/local/bin/tcsh
|
||||
user2:$1$UvfZtw0d$asMyR1VjVjPxKzXsuHkXW1:150:31::0:0:USER2,EUII 22??:/home/user2:/usr/local/bin/tcsh
|
||||
user3:$1$ft0ut3he$6PIIPiKHFP4Ddn0Oq9/9e0:204:31::0:0:Bill:/home/user3:/bin/csh
|
||||
obrien:$1$0Pode$PeChMbTN/ZSCRPXDsAsYk/:1765:20::0:0:David E. O'Brien,EU-II 3090 & 2244,,n/a:/home/obrien:/usr/local/bin/bash
|
1
security/crack/pkg-comment
Normal file
1
security/crack/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
the "Sensible" Unix Password Cracker.
|
12
security/crack/pkg-descr
Normal file
12
security/crack/pkg-descr
Normal file
@ -0,0 +1,12 @@
|
||||
This is Alec Muffett's Crack.
|
||||
|
||||
Crack is a freely available program designed to find encrypted passwords.
|
||||
|
||||
When you would like to crack a 4.4BSD password file:
|
||||
|
||||
Crack -fmt bsd <password_file>
|
||||
|
||||
Or, for non-BSD machines:
|
||||
|
||||
Crack <password_file>
|
||||
|
2
security/crack/pkg-plist
Normal file
2
security/crack/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
@unexec /bin/rm -rf %D/crack
|
||||
crack
|
Loading…
Reference in New Issue
Block a user