summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorbouyer <bouyer>1999-09-29 14:21:13 +0000
committerbouyer <bouyer>1999-09-29 14:21:13 +0000
commit545dc50e9a5792e1af830ea18ac4c093a50bb9eb (patch)
tree73477d9b14bfa2cf40b2e3463e2641d509c44f2a /security
parente28cd285e06460c065fa70b8e89b4b9b72fb8226 (diff)
downloadpkgsrc-545dc50e9a5792e1af830ea18ac4c093a50bb9eb.tar.gz
Import crack from FreeBSD.
Diffstat (limited to 'security')
-rw-r--r--security/crack/Makefile50
-rw-r--r--security/crack/files/md51
-rw-r--r--security/crack/files/pw-md5.test1
-rw-r--r--security/crack/files/pw.freebsd9
-rw-r--r--security/crack/patches/patch-0211
-rw-r--r--security/crack/patches/patch-0311
-rw-r--r--security/crack/pkg/COMMENT1
-rw-r--r--security/crack/pkg/DESCR11
-rw-r--r--security/crack/pkg/PLIST2
9 files changed, 97 insertions, 0 deletions
diff --git a/security/crack/Makefile b/security/crack/Makefile
new file mode 100644
index 00000000000..41667964aef
--- /dev/null
+++ b/security/crack/Makefile
@@ -0,0 +1,50 @@
+# 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>
+#
+# $FreeBSD: ports/security/crack/Makefile,v 1.11 1999/09/04 19:24:50 obrien Exp $
+#
+
+DISTNAME= crack5.0
+PKGNAME= crack-5.0
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.win.tue.nl/pub/security/ \
+ ftp://ftp.ox.ac.uk/pub/comp/security/software/crackers/ \
+ ftp://ftp.auscert.org.au/pub/coast/mirrors/cert.org/tools/crack/ \
+ ftp://ftp.riken.go.jp/pub/net/cert_security_tools/crack/
+
+MAINTAINER= obrien@FreeBSD.org
+
+RESTRICTED= "contains crypto (libdes)"
+WRKSRC= ${WRKDIR}/c50a
+
+pre-configure:
+.if !defined(USE_DES)
+ @${MV} -f ${WRKSRC}/src/libdes ${WRKSRC}/src/libdes.notused
+ @${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
+.endif
+ @${ECHO} "XLIB+= -lcrypt" >> ${WRKSRC}/src/util/Makefile
+
+pre-build:
+ @(if [ ! -f /usr/share/dict/words ];then \
+ ${ECHO_MSG} "You may want to install the dict distribution into /usr/share/dict" ; \
+ ${ECHO_MSG} "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>
diff --git a/security/crack/files/md5 b/security/crack/files/md5
new file mode 100644
index 00000000000..133d1f7be58
--- /dev/null
+++ b/security/crack/files/md5
@@ -0,0 +1 @@
+MD5 (crack5.0.tar.gz) = 6511dca525b7b921ea09eca855cc58f2
diff --git a/security/crack/files/pw-md5.test b/security/crack/files/pw-md5.test
new file mode 100644
index 00000000000..456c3f0d24a
--- /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 00000000000..d7a452b96f5
--- /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/patches/patch-02 b/security/crack/patches/patch-02
new file mode 100644
index 00000000000..e25326a2552
--- /dev/null
+++ b/security/crack/patches/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/patches/patch-03 b/security/crack/patches/patch-03
new file mode 100644
index 00000000000..da762f3d709
--- /dev/null
+++ b/security/crack/patches/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/pkg/COMMENT b/security/crack/pkg/COMMENT
new file mode 100644
index 00000000000..4b2b44ba20b
--- /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 00000000000..abee92940da
--- /dev/null
+++ b/security/crack/pkg/DESCR
@@ -0,0 +1,11 @@
+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>
diff --git a/security/crack/pkg/PLIST b/security/crack/pkg/PLIST
new file mode 100644
index 00000000000..734cc260956
--- /dev/null
+++ b/security/crack/pkg/PLIST
@@ -0,0 +1,2 @@
+@unexec /bin/rm -rf %D/crack
+crack