summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2005-01-01 13:06:51 +0000
committerDaniel Black <dragonheart@gentoo.org>2005-01-01 13:06:51 +0000
commit97b5d31283b6c48ab00272ab6ac7e74f4e8c6bcd (patch)
treee88737b0db5e5ef64dad1265ed7fc2fb1bc0d0f6 /app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild
parentAdded ~ppc64 to KEYWORDS (Manifest recommit) (diff)
downloadgentoo-2-97b5d31283b6c48ab00272ab6ac7e74f4e8c6bcd.tar.gz
gentoo-2-97b5d31283b6c48ab00272ab6ac7e74f4e8c6bcd.tar.bz2
gentoo-2-97b5d31283b6c48ab00272ab6ac7e74f4e8c6bcd.zip
initial submission as per bug #75278
Diffstat (limited to 'app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild')
-rw-r--r--app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild b/app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild
new file mode 100644
index 000000000000..0bea5b7d01a6
--- /dev/null
+++ b/app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/rainbowcrack/rainbowcrack-1.2.ebuild,v 1.1 2005/01/01 13:06:51 dragonheart Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Hash cracker that precomputes plaintext - ciphertext pairs in advance"
+HOMEPAGE="http://www.antsight.com/zsl/rainbowcrack/"
+
+SRC_URI="http://www.antsight.com/zsl/rainbowcrack/${P}-src.zip
+ http://www.antsight.com/zsl/rainbowcrack/${P}-src-algorithmpatch.zip"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND="dev-libs/openssl"
+
+MY_P=${P}-src
+S=${WORKDIR}/${MY_P}/src
+
+src_unpack() {
+ unpack ${A} || die "unpack failed"
+ mv ${P}-src-algorithmpatch/Hash* ${S}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-makefile.patch || die "patch failed"
+}
+
+src_compile() {
+ emake -f makefile.linux CXX=$(tc-getCXX) || die "make failed"
+}
+
+src_test() {
+ einfo "generating rainbow tables (password maps)"
+ ./rtgen sha1 loweralpha 7 7 0 1000 160 test
+ einfo "sorting tables"
+ ./rtsort *.rt
+ einfo "attempting crack of 7 character random sha1 lowercase passwords"
+ ./rcrack ./*.rt -l random_sha1_loweralpha#1-7.hash
+ einfo "I haven't rigged this so it finds anything yet. Submissions welcome bugs.gentoo.org"
+}
+
+src_install() {
+ dobin rtgen rtdump rtsort rcrack
+ insinto /usr/share/${PN}
+ doins charset.txt
+
+ dodoc *.plain *.hash
+
+ newdoc ${WORKDIR}/${P}-src-algorithmpatch/readme.txt algorithm_readme.txt
+
+ cd ${WORKDIR}/${MY_P}
+ dodoc readme.txt readme_src.txt disclaimer.txt
+ dohtml -r doc/
+}