Fixed charset.txt issue, thanks to Roger Ward, closes bug#153487
authorAlon Bar-Lev <alonbl@gentoo.org>
Wed, 1 Nov 2006 19:25:57 +0000 (19:25 +0000)
committerAlon Bar-Lev <alonbl@gentoo.org>
Wed, 1 Nov 2006 19:25:57 +0000 (19:25 +0000)
Package-Manager: portage-2.1.1-r1

app-crypt/rainbowcrack/ChangeLog
app-crypt/rainbowcrack/Manifest
app-crypt/rainbowcrack/files/digest-rainbowcrack-1.2
app-crypt/rainbowcrack/files/digest-rainbowcrack-1.2-r1 [new file with mode: 0644]
app-crypt/rainbowcrack/files/rainbowcrack-1.2-share.patch [new file with mode: 0644]
app-crypt/rainbowcrack/rainbowcrack-1.2-r1.ebuild [new file with mode: 0644]

index 7becc66b277197c8c8ab6f1de493d8093d98f969..5007247c94b26e2a9b6a8c69f435bb804e15dd48 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-crypt/rainbowcrack
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/rainbowcrack/ChangeLog,v 1.5 2005/07/29 22:59:06 dragonheart Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/rainbowcrack/ChangeLog,v 1.6 2006/11/01 19:25:57 alonbl Exp $
+
+*rainbowcrack-1.2-r1 (01 Nov 2006)
+
+  01 Nov 2006; Alon Bar-Lev <alonbl@gentoo.org>
+  +files/rainbowcrack-1.2-share.patch, +rainbowcrack-1.2-r1.ebuild:
+  Fixed charset.txt issue, thanks to Roger Ward, closes bug#153487
 
   29 Jul 2005; Daniel Black <dragonheart@gentoo.org>
   rainbowcrack-1.2.ebuild:
index 7d62faa37763bb24d672c737c9bb8bc1267fd0e5..7b78f6c00ae9710d5c612f5b9183d404a626cdc6 100644 (file)
@@ -1,15 +1,32 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 b501021113660333d344a4fa18808e5c metadata.xml 988
-MD5 c43ed6dd7b6047493b2a8394257f233d ChangeLog 855
-MD5 dcd72c51ec500f8b1362293fbf5497de rainbowcrack-1.2.ebuild 1575
+AUX rainbowcrack-1.2-makefile.patch 1134 RMD160 d485f338a7d420ceb3e4d7fceb3c61c78621c011 SHA1 f34e13a62791609de36be670362aecc8fae2ef01 SHA256 ba9f6240c37b48d2dc1d9bd8c705590818766f8b69355394d690c7be15b61f5c
 MD5 d13ce783ad640b04752c5f0bce77d0ee files/rainbowcrack-1.2-makefile.patch 1134
-MD5 a24acbb0c808a455a647bb18ba9dc99b files/digest-rainbowcrack-1.2 150
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.1 (GNU/Linux)
-
-iD8DBQFC6rTImdTrptrqvGERAhoSAJ0VHFiI0eNEmhty7S6ui1z2lrRlMwCeKKOG
-Bl+tiOZ5XD+KsJQ10JZn6KU=
-=xT7b
------END PGP SIGNATURE-----
+RMD160 d485f338a7d420ceb3e4d7fceb3c61c78621c011 files/rainbowcrack-1.2-makefile.patch 1134
+SHA256 ba9f6240c37b48d2dc1d9bd8c705590818766f8b69355394d690c7be15b61f5c files/rainbowcrack-1.2-makefile.patch 1134
+AUX rainbowcrack-1.2-share.patch 579 RMD160 5831f6872c8fa2affca87741ef03de8e05376e27 SHA1 2b38810045004c9732e93dcb30ddc13fb6e4aa26 SHA256 63d2da05ca27c79e758c87cef42c877a1bf57daa0ae81493b6693cfaf02574e8
+MD5 9e95acc6bc1ae5426c4cd609550339e7 files/rainbowcrack-1.2-share.patch 579
+RMD160 5831f6872c8fa2affca87741ef03de8e05376e27 files/rainbowcrack-1.2-share.patch 579
+SHA256 63d2da05ca27c79e758c87cef42c877a1bf57daa0ae81493b6693cfaf02574e8 files/rainbowcrack-1.2-share.patch 579
+DIST rainbowcrack-1.2-src-algorithmpatch.zip 3029 RMD160 3293cfcf69677ca6812333dd97952f0e354ce96a SHA1 22697cc8bbeeded21a1863329a2666e9a6fb1268 SHA256 ccc646087692da1e02b1921f97d6c9d2784534153f4570b62de0f122c4c3b322
+DIST rainbowcrack-1.2-src.zip 44742 RMD160 51fdcf84ebfbe8ebb9e5bc6c3d4452f9d158eb79 SHA1 b077a654133cd108a3c619d66482e1796d56b0dc SHA256 238485eeede5140cfc66b88761ec976b7af8b5557ec5bd4eddbcd98830a34dac
+EBUILD rainbowcrack-1.2-r1.ebuild 1706 RMD160 5e5ef64dc0cf57e8cb7b909024d603ff3c4c37a1 SHA1 1cc3661e6c85b3dce38524137935ebadd4e67128 SHA256 632c5496905f9a429d073035b3bbc9a8fe7f623785bf2943e0eff05c8b745332
+MD5 965207856db654d014743b0b5e702289 rainbowcrack-1.2-r1.ebuild 1706
+RMD160 5e5ef64dc0cf57e8cb7b909024d603ff3c4c37a1 rainbowcrack-1.2-r1.ebuild 1706
+SHA256 632c5496905f9a429d073035b3bbc9a8fe7f623785bf2943e0eff05c8b745332 rainbowcrack-1.2-r1.ebuild 1706
+EBUILD rainbowcrack-1.2.ebuild 1575 RMD160 1158628dc58b3da75a66634a22c5fe4b25cf7eea SHA1 4bbd61e2e5e5cd75a561114236d36a853c5a1f9b SHA256 75d0ba7c1aa45de0652255e3be58e38246ca2ba3b4c6e51db4d08eaf974b20ee
+MD5 dcd72c51ec500f8b1362293fbf5497de rainbowcrack-1.2.ebuild 1575
+RMD160 1158628dc58b3da75a66634a22c5fe4b25cf7eea rainbowcrack-1.2.ebuild 1575
+SHA256 75d0ba7c1aa45de0652255e3be58e38246ca2ba3b4c6e51db4d08eaf974b20ee rainbowcrack-1.2.ebuild 1575
+MISC ChangeLog 1070 RMD160 ac96a2e7234f2c14fa0cc42bd5344cfda0096360 SHA1 21beb6f57c3d60ed693ecab14b52d0961ec84b48 SHA256 09304011aab450ef4ebfd446703679016635d0eade63f53ee85cd7c923531709
+MD5 d655b7a3552d69af7ca49fba5e16d962 ChangeLog 1070
+RMD160 ac96a2e7234f2c14fa0cc42bd5344cfda0096360 ChangeLog 1070
+SHA256 09304011aab450ef4ebfd446703679016635d0eade63f53ee85cd7c923531709 ChangeLog 1070
+MISC metadata.xml 988 RMD160 183293dd3ff7a2a9fa4e6d4bf96992a65373a3c6 SHA1 07dc36220f7b4bdd6f6ebbdff3c9c89f358f1de5 SHA256 3a19812834671dc4d343f678fe3c609acd169519d511d01eca82c56e9b0ba041
+MD5 b501021113660333d344a4fa18808e5c metadata.xml 988
+RMD160 183293dd3ff7a2a9fa4e6d4bf96992a65373a3c6 metadata.xml 988
+SHA256 3a19812834671dc4d343f678fe3c609acd169519d511d01eca82c56e9b0ba041 metadata.xml 988
+MD5 fe45cda8958a8eaa4441e0a43b0de9af files/digest-rainbowcrack-1.2 542
+RMD160 523d970f097f126105ee2b5531dc58156fc52d59 files/digest-rainbowcrack-1.2 542
+SHA256 bca8f2e558326b28c295857f5a9de492c5130677e67f63eff9d95dfc2c467d26 files/digest-rainbowcrack-1.2 542
+MD5 fe45cda8958a8eaa4441e0a43b0de9af files/digest-rainbowcrack-1.2-r1 542
+RMD160 523d970f097f126105ee2b5531dc58156fc52d59 files/digest-rainbowcrack-1.2-r1 542
+SHA256 bca8f2e558326b28c295857f5a9de492c5130677e67f63eff9d95dfc2c467d26 files/digest-rainbowcrack-1.2-r1 542
index c504de0eac32b698f4cda162bfb0d78b20a6f889..67bd8719ff344b3858140bd3815aef3ec17d2a55 100644 (file)
@@ -1,2 +1,6 @@
-MD5 e7e8304caff8f7051916ff484c2f0231 rainbowcrack-1.2-src.zip 44742
 MD5 730300958ad17a63610e9b1354dbf6b9 rainbowcrack-1.2-src-algorithmpatch.zip 3029
+RMD160 3293cfcf69677ca6812333dd97952f0e354ce96a rainbowcrack-1.2-src-algorithmpatch.zip 3029
+SHA256 ccc646087692da1e02b1921f97d6c9d2784534153f4570b62de0f122c4c3b322 rainbowcrack-1.2-src-algorithmpatch.zip 3029
+MD5 e7e8304caff8f7051916ff484c2f0231 rainbowcrack-1.2-src.zip 44742
+RMD160 51fdcf84ebfbe8ebb9e5bc6c3d4452f9d158eb79 rainbowcrack-1.2-src.zip 44742
+SHA256 238485eeede5140cfc66b88761ec976b7af8b5557ec5bd4eddbcd98830a34dac rainbowcrack-1.2-src.zip 44742
diff --git a/app-crypt/rainbowcrack/files/digest-rainbowcrack-1.2-r1 b/app-crypt/rainbowcrack/files/digest-rainbowcrack-1.2-r1
new file mode 100644 (file)
index 0000000..67bd871
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 730300958ad17a63610e9b1354dbf6b9 rainbowcrack-1.2-src-algorithmpatch.zip 3029
+RMD160 3293cfcf69677ca6812333dd97952f0e354ce96a rainbowcrack-1.2-src-algorithmpatch.zip 3029
+SHA256 ccc646087692da1e02b1921f97d6c9d2784534153f4570b62de0f122c4c3b322 rainbowcrack-1.2-src-algorithmpatch.zip 3029
+MD5 e7e8304caff8f7051916ff484c2f0231 rainbowcrack-1.2-src.zip 44742
+RMD160 51fdcf84ebfbe8ebb9e5bc6c3d4452f9d158eb79 rainbowcrack-1.2-src.zip 44742
+SHA256 238485eeede5140cfc66b88761ec976b7af8b5557ec5bd4eddbcd98830a34dac rainbowcrack-1.2-src.zip 44742
diff --git a/app-crypt/rainbowcrack/files/rainbowcrack-1.2-share.patch b/app-crypt/rainbowcrack/files/rainbowcrack-1.2-share.patch
new file mode 100644 (file)
index 0000000..2cf75ca
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urNp rainbowcrack-1.2-src.org/src/ChainWalkContext.cpp rainbowcrack-1.2-src/src/ChainWalkContext.cpp
+--- rainbowcrack-1.2-src.org/src/ChainWalkContext.cpp  2003-11-23 00:33:44.000000000 +0200
++++ rainbowcrack-1.2-src/src/ChainWalkContext.cpp      2006-11-01 21:05:13.000000000 +0200
+@@ -58,7 +58,7 @@ bool CChainWalkContext::LoadCharset(stri
+       }\r
\r
+       vector<string> vLine;\r
+-      if (ReadLinesFromFile("charset.txt", vLine))\r
++      if (ReadLinesFromFile("charset.txt", vLine) || ReadLinesFromFile("@@SHARE@@/charset.txt", vLine))\r
+       {\r
+               int i;\r
+               for (i = 0; i < vLine.size(); i++)\r
diff --git a/app-crypt/rainbowcrack/rainbowcrack-1.2-r1.ebuild b/app-crypt/rainbowcrack/rainbowcrack-1.2-r1.ebuild
new file mode 100644 (file)
index 0000000..3bc8829
--- /dev/null
@@ -0,0 +1,59 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/rainbowcrack/rainbowcrack-1.2-r1.ebuild,v 1.1 2006/11/01 19:25:57 alonbl 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 ~amd64"
+IUSE=""
+
+RDEPEND="dev-libs/openssl"
+DEPEND="${RDEPEND} app-arch/unzip"
+
+MY_P=${P}-src
+S=${WORKDIR}/${MY_P}/src
+
+src_unpack() {
+       unpack ${A} || die "unpack failed"
+       cd "${S}"
+       mv "${WORKDIR}/${P}"-src-algorithmpatch/Hash* "${S}"
+       epatch "${FILESDIR}/${P}-makefile.patch"
+       epatch "${FILESDIR}/${P}-share.patch"
+       sed -i "s#@@SHARE@@#/usr/share/${P}#g" ChainWalkContext.cpp || die
+}
+
+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/${P}"
+       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/
+}