summaryrefslogtreecommitdiff
path: root/app-crypt/ophcrack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-crypt/ophcrack
reinit the tree, so we can have metadata
Diffstat (limited to 'app-crypt/ophcrack')
-rw-r--r--app-crypt/ophcrack/Manifest8
-rw-r--r--app-crypt/ophcrack/files/ophcrack-openssl-des.patch92
-rw-r--r--app-crypt/ophcrack/metadata.xml14
-rw-r--r--app-crypt/ophcrack/ophcrack-3.4.0.ebuild42
-rw-r--r--app-crypt/ophcrack/ophcrack-3.6.0.ebuild44
5 files changed, 200 insertions, 0 deletions
diff --git a/app-crypt/ophcrack/Manifest b/app-crypt/ophcrack/Manifest
new file mode 100644
index 000000000000..0bb831c1f837
--- /dev/null
+++ b/app-crypt/ophcrack/Manifest
@@ -0,0 +1,8 @@
+AUX ophcrack-openssl-des.patch 3253 SHA256 560c29768532629d635479c5ced52ba1a209170fddf143d82fb36194cf749776 SHA512 60f4ec2792f1d697db62bbef16a1f365e368fa4cf99695b1fdda4cdfaa1fdef04bf39dbfea72fe5d97aead6435553051eda0b3b619ae93915f11b87de29cc4bc WHIRLPOOL 3ea16b35e95f55eb0e67caa773e88ac53e756d8cd8a98e980d17e6838867a1d379dc669848c6d7044ca46d4722ae34ea103d656402d8af49efdb4ab40b90323a
+DIST ophcrack-3.4.0.tar.bz2 279806 SHA256 06cb22d95a8ded79eebb99ac19bd21b27321e85fe0f22f32407d0b925b66d3e3 SHA512 38c3b41e76be1b2990cbf6a8ddbe776df3d7821696e42939c759d554a7a52d40555f7e1c8f11e3ab7dc20b553f43d814e271d7519a3b4bb4f84b70468c123df0 WHIRLPOOL 887d9f397c061b06072cd48e15b89596c81c893d0cc1fb8eb960f0561249b0085025cfd88482aba8549414d3d634685503be14b9f97b16edc248859095a3a1dc
+DIST ophcrack-3.6.0.tar.bz2 288830 SHA256 79219baa03afd7e52bc6d365dd5a445bc73dfac2e88216e7b050ad7749191893 SHA512 caa9090b622acac1114f5635c2c58a2c32453ae21a96fc4f424cbc197b056872c282cf9d41142e316a1ffbc9523832b8bc7355c1503c15ac8579470de407a5c9 WHIRLPOOL 5e492257aa504883892cc5bf19e123330963257874f2b1ad3ed53895161987012c6bd23f449c72de81e68ac0ebcb7adbff77883f1a0d976c0aa99654c87d342e
+EBUILD ophcrack-3.4.0.ebuild 946 SHA256 a94216ddbb0f20d8cbca295cd07edfe0ca3e58e56c3e0522e61249dc94a93e8a SHA512 ba3e8bea2dd04e2c28c7e7b58065f7af4489b82c1d606b05265d80235ba93f7cc7005e76313c1ec4bc98b531820edff89406df6d782e6f97eb40cac51a994c51 WHIRLPOOL 606fe79d8661399a4a1bd42207825c57eeb8ec7c935c501ce63f0e543ccecc81de2cd24057ead5bb0bdfaf755b66b32d10a9525d1c9d4197d9480d9873940c53
+EBUILD ophcrack-3.6.0.ebuild 996 SHA256 cb18d2d19710275a73e76eb614c0d797c0286739a7e30ecfaa9b718c10f4028c SHA512 e9b038c97137d425fa6a4791ba28f54778b0f6723800ed18ceda9fea40a15991ef2d517234649bb0d426790e3344b714e4657cc256ca62bceca7e9216b2ada4d WHIRLPOOL a478983136d11f21a4793a66880d66b0171d97a1f54b5eac6af4892eeec0b02142d0b5a3d54a144ed0d08cd853c434034795b43aa4590b8d03237e81d501bacd
+MISC ChangeLog 3101 SHA256 dfb8bd5953cc63c6f1cc5a1ce271c3c3f2fb309a32719d7cc0335c3619b409cf SHA512 0ef821d721c44d0df0454635e30a683dfbf058ec6ccac302f0c49ef1eaa01b94b710e0542e25d293548d23cca8866861ac2fea4ed31f7f27799932af549a1786 WHIRLPOOL dca5222a2aabfc673e1a1c7ff94731fc6195f9be6e5c9d2f856ab941faac5ed1848cfda86d66711d15d963ac4ef065db92c326ca434791a10c397ee9fe3cb4b7
+MISC ChangeLog-2015 6610 SHA256 3d727181559f3257cb5793f63662da86fc5e9b376bee9f9aa03260dc448c9b61 SHA512 0d0c751a764d6bd7c49c146f208b549a78f1132c142def197b4e31cd3515b889f66182e0e0d04ddd1635b75c57bfe72074441f86ef6c5c39bcf0ee0967367045 WHIRLPOOL e163bbc8eb269a5c54569fe6b481e54c1533c0033ac4fda26ba4a87307c4e3cf4b0f220213fc1ae6aa35e7d9198a0b4f3aff39afa83ca111e7ed684fc5b2209a
+MISC metadata.xml 474 SHA256 6efc65ea12983f5ce65bcc5197f4d9f74fda4cc0155f890fa97f82ae49be5bae SHA512 3381c3cb01e39377a085137392802e0666cd4dd421cdcda2db6af2cae01d7b0a7319886699d99553b9a4aed732b402d923c51a0b053cfa564d2228de605991e3 WHIRLPOOL de7bba334038763b0fa2747888d2d94e4a0b2391d7a8271ad89f8d02fbf9d6302e7c040d13ebcfb061c14a9deb2b03003bde6585c2d5df11547b81faef10ff94
diff --git a/app-crypt/ophcrack/files/ophcrack-openssl-des.patch b/app-crypt/ophcrack/files/ophcrack-openssl-des.patch
new file mode 100644
index 000000000000..2515c178abb7
--- /dev/null
+++ b/app-crypt/ophcrack/files/ophcrack-openssl-des.patch
@@ -0,0 +1,92 @@
+--- a/src/lmtable.c 2013-06-04 07:42:47 UTC
++++ b/src/lmtable.c
+@@ -470,8 +470,8 @@ void lmtable_mkredux(table_t *tbl, uchar
+ /*-------------------------------------------------------------------------*/
+ void lmtable_mkhash(uchar_t *pwd, uchar_t *hash) {
+ uchar_t key[8];
+- des_key_schedule ks;
+- des_cblock *magic = (des_cblock*)lmmagic;
++ DES_key_schedule ks;
++ DES_cblock *magic = (DES_cblock*)lmmagic;
+
+ key[0] = pwd[0];
+ key[1] = (pwd[0] << 7) | (pwd[1] >> 1);
+@@ -482,7 +482,7 @@ void lmtable_mkhash(uchar_t *pwd, uchar_
+ key[6] = (pwd[5] << 2) | (pwd[6] >> 6);
+ key[7] = (pwd[6] << 1) ;
+
+- des_set_odd_parity(&key);
+- des_set_key(&key, ks);
+- des_ecb_encrypt(magic, (des_cblock*)hash, ks, DES_ENCRYPT);
++ DES_set_odd_parity(&key);
++ DES_set_key(&key, &ks);
++ DES_ecb_encrypt(magic, (DES_cblock*)hash, &ks, DES_ENCRYPT);
+ }
+
+--- a/src/samdump2/samdump2.c 2015-03-30 02:26:33 UTC
++++ b/src/samdump2/samdump2.c
+@@ -71,7 +71,7 @@ void str_to_key(unsigned char *str,unsig
+ for (i=0;i<8;i++) {
+ key[i] = (key[i]<<1);
+ }
+- des_set_odd_parity((des_cblock *)key);
++ DES_set_odd_parity((DES_cblock *)key);
+ }
+
+ /*
+@@ -209,8 +209,8 @@ unsigned char* utf16_to_utf8 (unsigned c
+ unsigned char hbootkey[0x20];
+
+ /* Des */
+- des_key_schedule ks1, ks2;
+- des_cblock deskey1, deskey2;
++ DES_key_schedule ks1, ks2;
++ DES_cblock deskey1, deskey2;
+
+ int i, j;
+
+@@ -418,15 +418,15 @@ unsigned char* utf16_to_utf8 (unsigned c
+
+ /* Get the two decrpt keys. */
+ sid_to_key1(rid,(unsigned char *)deskey1);
+- des_set_key_checked((des_cblock *)deskey1,ks1);
++ DES_set_key_checked((DES_cblock *)deskey1, &ks1);
+ sid_to_key2(rid,(unsigned char *)deskey2);
+- des_set_key_unchecked((des_cblock *)deskey2,ks2);
++ DES_set_key_unchecked((DES_cblock *)deskey2, &ks2);
+
+ /* Decrypt the lanman password hash as two 8 byte blocks. */
+- des_ecb_encrypt((des_cblock *)obfkey,
+- (des_cblock *)fb, ks1, DES_DECRYPT);
+- des_ecb_encrypt((des_cblock *)(obfkey + 8),
+- (des_cblock *)&fb[8], ks2, DES_DECRYPT);
++ DES_ecb_encrypt((DES_cblock *)obfkey,
++ (DES_cblock *)fb, &ks1, DES_DECRYPT);
++ DES_ecb_encrypt((DES_cblock *)(obfkey + 8),
++ (DES_cblock *)&fb[8], &ks2, DES_DECRYPT);
+
+
+
+@@ -471,16 +471,16 @@ unsigned char* utf16_to_utf8 (unsigned c
+ if (lm_size != 0x14) {
+ /* Get the two decrpt keys. */
+ sid_to_key1(rid,(unsigned char *)deskey1);
+- des_set_key((des_cblock *)deskey1,ks1);
++ DES_set_key((DES_cblock *)deskey1, &ks1);
+ sid_to_key2(rid,(unsigned char *)deskey2);
+- des_set_key((des_cblock *)deskey2,ks2);
++ DES_set_key((DES_cblock *)deskey2, &ks2);
+ }
+
+ /* Decrypt the NT md4 password hash as two 8 byte blocks. */
+- des_ecb_encrypt((des_cblock *)obfkey,
+- (des_cblock *)fb, ks1, DES_DECRYPT);
+- des_ecb_encrypt((des_cblock *)(obfkey + 8),
+- (des_cblock *)&fb[8], ks2, DES_DECRYPT);
++ DES_ecb_encrypt((DES_cblock *)obfkey,
++ (DES_cblock *)fb, &ks1, DES_DECRYPT);
++ DES_ecb_encrypt((DES_cblock *)(obfkey + 8),
++ (DES_cblock *)&fb[8], &ks2, DES_DECRYPT);
+
+ /* sf27 wrap to sf25 */
+ //sf27( obfkey, (int*)&rid, fb );
diff --git a/app-crypt/ophcrack/metadata.xml b/app-crypt/ophcrack/metadata.xml
new file mode 100644
index 000000000000..cf1f547e6447
--- /dev/null
+++ b/app-crypt/ophcrack/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ikelos@gentoo.org</email>
+ <name>Mike Auty</name>
+ </maintainer>
+ <use>
+ <flag name="tables">Require the additional tables used to carry out cracking (<pkg>app-crypt/ophcrack-tables</pkg>)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">ophcrack</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-crypt/ophcrack/ophcrack-3.4.0.ebuild b/app-crypt/ophcrack/ophcrack-3.4.0.ebuild
new file mode 100644
index 000000000000..a42ac68b77d8
--- /dev/null
+++ b/app-crypt/ophcrack/ophcrack-3.4.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit eutils
+
+DESCRIPTION="A time-memory-trade-off-cracker"
+HOMEPAGE="http://ophcrack.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug libressl qt4 +tables"
+
+CDEPEND="!libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/netwib
+ qt4? ( dev-qt/qtgui:4 )"
+DEPEND="app-arch/unzip
+ virtual/pkgconfig
+ ${CDEPEND}"
+RDEPEND="tables? ( app-crypt/ophcrack-tables )
+ ${CDEPEND}"
+
+src_configure() {
+
+ local myconf
+
+ myconf="$(use_enable qt4 gui)"
+ myconf="${myconf} $(use_enable debug)"
+
+ econf ${myconf} || die "Failed to compile"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "Installation failed."
+
+ cd "${S}"
+ newicon src/gui/pixmaps/os.xpm ophcrack.xpm
+ make_desktop_entry "${PN}" OphCrack ophcrack
+}
diff --git a/app-crypt/ophcrack/ophcrack-3.6.0.ebuild b/app-crypt/ophcrack/ophcrack-3.6.0.ebuild
new file mode 100644
index 000000000000..2d78a14dabf4
--- /dev/null
+++ b/app-crypt/ophcrack/ophcrack-3.6.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit eutils
+
+DESCRIPTION="A time-memory-trade-off-cracker"
+HOMEPAGE="http://ophcrack.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug libressl qt4 +tables"
+
+CDEPEND="!libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/netwib
+ qt4? ( dev-qt/qtgui:4 )"
+DEPEND="app-arch/unzip
+ virtual/pkgconfig
+ ${CDEPEND}"
+RDEPEND="tables? ( app-crypt/ophcrack-tables )
+ ${CDEPEND}"
+
+PATCHES="${FILESDIR}/ophcrack-openssl-des.patch"
+
+src_configure() {
+
+ local myconf
+
+ myconf="$(use_enable qt4 gui)"
+ myconf="${myconf} $(use_enable debug)"
+
+ econf ${myconf} || die "Failed to compile"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "Installation failed."
+
+ cd "${S}"
+ newicon src/gui/pixmaps/os.xpm ophcrack.xpm
+ make_desktop_entry "${PN}" OphCrack ophcrack
+}