diff --git a/security/crack/Makefile b/security/crack/Makefile new file mode 100644 index 000000000000..c905d54d6b64 --- /dev/null +++ b/security/crack/Makefile @@ -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 +# Whom: Yukihiro Nakai + +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 diff --git a/security/crack/distinfo b/security/crack/distinfo new file mode 100644 index 000000000000..133d1f7be586 --- /dev/null +++ b/security/crack/distinfo @@ -0,0 +1 @@ +MD5 (crack5.0.tar.gz) = 6511dca525b7b921ea09eca855cc58f2 diff --git a/security/crack/files/patch-02 b/security/crack/files/patch-02 new file mode 100644 index 000000000000..e25326a25528 --- /dev/null +++ b/security/crack/files/patch-02 @@ -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. diff --git a/security/crack/files/patch-03 b/security/crack/files/patch-03 new file mode 100644 index 000000000000..da762f3d7092 --- /dev/null +++ b/security/crack/files/patch-03 @@ -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/* + diff --git a/security/crack/files/pw-md5.test b/security/crack/files/pw-md5.test new file mode 100644 index 000000000000..456c3f0d24a1 --- /dev/null +++ b/security/crack/files/pw-md5.test @@ -0,0 +1 @@ +cracker:$1$KhBa0EkO$k4YYCCiLb9QhAZBa3c8D5/:1000:10000::0:0:Evil &:/home/crack:/bin/csh diff --git a/security/crack/files/pw.freebsd b/security/crack/files/pw.freebsd new file mode 100644 index 000000000000..d7a452b96f55 --- /dev/null +++ b/security/crack/files/pw.freebsd @@ -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 diff --git a/security/crack/pkg-comment b/security/crack/pkg-comment new file mode 100644 index 000000000000..dd42e75da9b2 --- /dev/null +++ b/security/crack/pkg-comment @@ -0,0 +1 @@ +the "Sensible" Unix Password Cracker. diff --git a/security/crack/pkg-descr b/security/crack/pkg-descr new file mode 100644 index 000000000000..e2b4e41f5a0d --- /dev/null +++ b/security/crack/pkg-descr @@ -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 + +Or, for non-BSD machines: + + Crack + diff --git a/security/crack/pkg-plist b/security/crack/pkg-plist new file mode 100644 index 000000000000..734cc2609564 --- /dev/null +++ b/security/crack/pkg-plist @@ -0,0 +1,2 @@ +@unexec /bin/rm -rf %D/crack +crack