From e2761b34d07861449decbdfd10f2b43766efe706 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Wed, 17 Apr 2013 05:15:33 +0000 Subject: [PATCH] hashcat*: version bump --- app-crypt/hashcat-bin/Manifest | 2 + app-crypt/hashcat-bin/hashcat-bin-0.44.ebuild | 79 +++++++++++++ app-crypt/oclhashcat-lite-bin/Manifest | 2 + .../oclhashcat-lite-bin-0.15.ebuild | 107 ++++++++++++++++++ app-crypt/oclhashcat-plus-bin/Manifest | 2 + .../oclhashcat-plus-bin-0.14.ebuild | 100 ++++++++++++++++ .../base/package.accept_keywords/app-crypt | 4 +- 7 files changed, 294 insertions(+), 2 deletions(-) create mode 100644 app-crypt/hashcat-bin/Manifest create mode 100644 app-crypt/hashcat-bin/hashcat-bin-0.44.ebuild create mode 100644 app-crypt/oclhashcat-lite-bin/Manifest create mode 100644 app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild create mode 100644 app-crypt/oclhashcat-plus-bin/Manifest create mode 100644 app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild diff --git a/app-crypt/hashcat-bin/Manifest b/app-crypt/hashcat-bin/Manifest new file mode 100644 index 000000000..032692cd5 --- /dev/null +++ b/app-crypt/hashcat-bin/Manifest @@ -0,0 +1,2 @@ +DIST hashcat-0.44.7z 1132252 SHA256 69c1d71ed4d46cc04b798b1ea1cd09b32398eef683445d8ad94a0cf083efed73 SHA512 3d1fbbb447e6c522a13ad3edff0f741c0c9107f297ab3a9f31b941ca66f1d7a5711c9c35cab3bad31499ba43e967f858cd96073d73c45e80c4228728599aab03 WHIRLPOOL 3e47815fa075e79127500e4075dabc42f28dcd4a0f2bf024f21bc0ebcddec2c148190639d85c0b6030275352000814a9531987246c439d08eb2861067039221e +EBUILD hashcat-bin-0.44.ebuild 2215 SHA256 359b54cbc7edab1635ef182b12cb190bd1908579c19f1468ee9ff6cc45230be8 SHA512 9c7fd292a07a0b38756032905d5c92b9cdda7b34cb19caa0906eebe10e72a3c2cd2315a98254ae31fe881bbc18d14df60704e95ed2641615993a33fb70ef8cc9 WHIRLPOOL de8ed231d471ce47de1e428c79d7b969c23e43ac89f6d49ff8e171f3a28606c754d0623f5b3b52dce0394d2fd83074b8576d721bd95466b28181d52c99120e54 diff --git a/app-crypt/hashcat-bin/hashcat-bin-0.44.ebuild b/app-crypt/hashcat-bin/hashcat-bin-0.44.ebuild new file mode 100644 index 000000000..d89afacf2 --- /dev/null +++ b/app-crypt/hashcat-bin/hashcat-bin-0.44.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.42.ebuild,v 1.1 2013/01/07 04:12:18 zerochaos Exp $ + +EAPI=4 + +MY_P="hashcat-${PV}" + +inherit eutils pax-utils +DESCRIPTION="An multi-threaded multihash cracker" +HOMEPAGE="http://hashcat.net/hashcat/" + +SRC_URI="http://hashcat.net/files/${MY_P}.7z" + +#license applies to this version per http://hashcat.net/forum/thread-1348.html +LICENSE="hashcat" +SLOT="0" +KEYWORDS="-* ~amd64 ~amd64-linux ~x64-macos ~x86 ~x86-linux" + +IUSE="" + +RDEPEND="" +DEPEND="${RDEPEND} + app-arch/p7zip" + +S="${WORKDIR}/${MY_P}" + +RESTRICT="strip" +QA_PREBUILT="opt/${PN}/hashcat-cli*.bin + opt/${PN}/hashcat-cli64.app" + +src_install() { + dodoc docs/* + rm -r *.exe docs || die + use x86 || { rm hashcat-cli32.bin || die; } + use amd64 || { rm hashcat-cli64.bin || die; } + use x64-macos || { rm hashcat-cli64.app || die; } + + #I assume this is needed but I didn't check + pax-mark m hashcat-cli*.bin + + insinto /opt/${PN} + doins -r "${S}"/* + + dodir /opt/bin + if [ -f "${ED}"/opt/${PN}/hashcat-cli32.bin ] + then + fperms +x /opt/${PN}/hashcat-cli32.bin + cat <<-EOF > "${ED}"/opt/bin/hashcat-cli32.bin + #! /bin/sh + cd "${EPREFIX}"/opt/${PN} + echo "Warning: hashcat-cli32.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths." + exec ./hashcat-cli32.bin \$@ + EOF + fperms +x /opt/bin/hashcat-cli32.bin + fi + if [ -f "${ED}"/opt/${PN}/hashcat-cli64.bin ] + then + fperms +x /opt/${PN}/hashcat-cli64.bin + cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.bin + #! /bin/sh + cd "${EPREFIX}"/opt/${PN} + echo "Warning: hashcat-cli64.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths." + exec ./hashcat-cli64.bin \$@ + EOF + fperms +x /opt/bin/hashcat-cli64.bin + fi + if [ -f "${ED}"/opt/${PN}/hashcat-cli64.app ] + then + fperms +x /opt/${PN}/hashcat-cli64.app + cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.app + #! /bin/sh + cd "${EPREFIX}"/opt/${PN} + echo "Warning: hashcat-cli64.app is running from ${EPREFIX}/opt/${PN} so be careful of relative paths." + exec ./hashcat-cli64.app \$@ + EOF + fperms +x /opt/bin/hashcat-cli64.app + fi +} diff --git a/app-crypt/oclhashcat-lite-bin/Manifest b/app-crypt/oclhashcat-lite-bin/Manifest new file mode 100644 index 000000000..69da76a15 --- /dev/null +++ b/app-crypt/oclhashcat-lite-bin/Manifest @@ -0,0 +1,2 @@ +DIST oclHashcat-lite-0.15.7z 6026598 SHA256 40fd6f5410e1c0d5d5e7c9d60c173d838289025a2fc36b86690fb26657ed5796 SHA512 b70738a40cdbc5062cb72f1de93a2d29cdd824b7f3cb0f5bc42e3a7e83246d2247385040efe230afffa26ddf26823ecefabf16f31b1925c7460e7cd8933342b8 WHIRLPOOL b53ce94f04dd464fd6727641726aa56620ec6dcf5c557887c7346955b08b33f187b59db27debf98210c477299ef13c8f7334e8c3b2234b27edf0fe97b1438235 +EBUILD oclhashcat-lite-bin-0.15.ebuild 2925 SHA256 1e734d7b43a15f574766e86712c091ae7988ef326c55e5c45d6590b3ae6d59e1 SHA512 8d8ab0a0914e0a52755641611f95ba3dc55bd2c1503a38722e00a2ae0a552138688443837585abca33fe29711e3cf4b3e1c4db72c5ecdded6ab1ad62ab1c679e WHIRLPOOL e12651d96d15231cb23ecb602895c81e4a9c9abb37d93bdf61b754bd27996afab716bba907c43cc026a8326c9bec8a1cbda3280177e8c71ccd890dc0d2ab5378 diff --git a/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild b/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild new file mode 100644 index 000000000..471f6a02f --- /dev/null +++ b/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.15.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.14.ebuild,v 1.1 2013/02/03 02:00:57 zerochaos Exp $ + +EAPI=5 + +inherit eutils pax-utils + +DESCRIPTION="An opencl hash cracker" +HOMEPAGE="http://hashcat.net/oclhashcat-lite/" +MY_P="oclHashcat-lite-${PV}" +SRC_URI="http://hashcat.net/files/${MY_P}.7z" + +#license applies to this version per http://hashcat.net/forum/thread-1348.html +LICENSE="hashcat" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +IUSE_VIDEO_CARDS="video_cards_fglrx + video_cards_nvidia" + +IUSE="${IUSE_VIDEO_CARDS}" + +RDEPEND="sys-libs/zlib + video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 ) + video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )" +DEPEND="${RDEPEND} + app-arch/p7zip" + +S="${WORKDIR}/${MY_P}" + +RESTRICT="strip" +QA_PREBUILT="*Hashcat-lite*.bin" + +src_install() { + dodoc docs/* + rm -rf *.exe docs || die + if use x86; then + rm oclHashcat-lite64.bin || die + rm cudaHashcat-lite64.bin || die + fi + if use amd64; then + rm oclHashcat-lite32.bin || die + rm cudaHashcat-lite32.bin || die + fi + if ! use video_cards_fglrx; then + rm -r kernels/4098 || die + rm oclHashcat-lite*.bin || die + fi + if ! use video_cards_nvidia; then + rm -r kernels/4318 || die + rm cudaHashcat-lite*.bin || die + fi + + #I assume this is needed but I didn't check + pax-mark m *Hashcat-lite*.bin + + insinto /opt/${PN} + doins -r "${S}"/* + + dodir /opt/bin + + cat <<-EOF > "${ED}"/opt/bin/oclhashcat-lite + #! /bin/sh + echo "oclHashcat-lite and all related files have been installed in /opt/${PN}" + echo "Please run one of the following binaries to use gpu accelerated hashcat:" + EOF + + for x in oclHashcat-lite64.bin oclHashcat-lite32.bin cudaHashcat-lite64.bin cudaHashcat-lite32.bin + do + if [ -f "${ED}"/opt/${PN}/${x} ] + then + case "${x}" in + oclHashcat-lite64.bin) + echo "echo '64 bit ATI accelerated \"oclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + oclHashcat-lite32.bin) + echo "echo '32 bit ATI accelerated \"oclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + cudaHashcat-lite64.bin) + echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + cudaHashcat-lite32.bin) + echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite + ;; + esac + + fperms +x /opt/${PN}/${x} + + cat <<-EOF > "${ED}"/opt/bin/${x} + #! /bin/sh + cd /opt/${PN} + echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths." + exec ./${x} "\$@" + EOF + + fperms +x /opt/bin/${x} + + fi + done + + fperms +x /opt/bin/oclhashcat-lite + fowners root:video /opt/${PN} + touch "${ED}"/opt/${PN}/eula.accepted + fperms 0660 /opt/${PN}/eula.accepted + einfo "oclhashcat-lite can be run as user if you are in the video group" +} diff --git a/app-crypt/oclhashcat-plus-bin/Manifest b/app-crypt/oclhashcat-plus-bin/Manifest new file mode 100644 index 000000000..0b6dd07ef --- /dev/null +++ b/app-crypt/oclhashcat-plus-bin/Manifest @@ -0,0 +1,2 @@ +DIST oclHashcat-plus-0.14.7z 43411331 SHA256 4e5ee82bdb72ecd0ebc7795414a89d2755ed35dfc26fcbf92648e46dd223056e SHA512 8f6f548eb7de0dc9285f214757a9400976a696085a5ae61c583c0a3d73fcdb8326345054dda132414c2d44cdaa3207abebb47968defbb290e77fd496fd62861d WHIRLPOOL 9cf03c51a5b65326f08acf78987397035641cd6c38b86bb00620d3880958ccfc48fde24eff8f41b40a2c022ef3478e22c203d8eb8037c545b797956473c80a94 +EBUILD oclhashcat-plus-bin-0.14.ebuild 2715 SHA256 d52efdc3fb67c3a08bffcc5ca66af0a180ade546f8b44c4c61b2c5d1661e25f1 SHA512 ebf700afef6a7ef60432357007bd83527f9bf1fd76a743946dddf863e450d43f35d6f1a6bfb1a04b2183de1a39ab3ed60cc7dc19478af2b18fd2181f2684f58b WHIRLPOOL cad0b96518e909f2165acae27cc39e73bf1bbf5fd628e47d6210e667abeff393bebb4f29403befc9ba5a5a807f1224f2959b15943d5cc36c97a526e712ea637c diff --git a/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild b/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild new file mode 100644 index 000000000..08dcdcf70 --- /dev/null +++ b/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.13.ebuild,v 1.1 2013/02/03 01:55:07 zerochaos Exp $ + +EAPI=5 + +inherit eutils pax-utils + +DESCRIPTION="An opencl multihash cracker" +HOMEPAGE="http://hashcat.net/oclhashcat-plus/" + +MY_P="oclHashcat-plus-${PV}" +SRC_URI="http://hashcat.net/files/${MY_P}.7z" + +LICENSE="hashcat" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +IUSE_VIDEO_CARDS="video_cards_fglrx + video_cards_nvidia" + +IUSE="${IUSE_VIDEO_CARDS}" + +RDEPEND="sys-libs/zlib + video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-310.32 ) + video_cards_fglrx? ( =x11-drivers/ati-drivers-13.1 )" +DEPEND="${RDEPEND} + app-arch/p7zip" + +S="${WORKDIR}/${MY_P}" + +RESTRICT="strip" +QA_PREBUILT="*Hashcat-plus*.bin" + +src_install() { + dodoc docs/* + rm -r *.exe docs || die + use x86 && rm *Hashcat-plus64* + use amd64 && rm *Hashcat-plus32* + + if ! use video_cards_fglrx; then + rm -r kernels/4098 || die + rm oclHashcat-plus*.bin || die + fi + if ! use video_cards_nvidia; then + rm -r kernels/4318 || die + rm cudaHashcat-plus*.bin || die + fi + pax-mark m *Hashcat-plus*.bin + + insinto /opt/${PN} + doins -r "${S}"/* || die "Copy files failed" + + dodir /opt/bin + + cat <<-EOF > "${ED}"/opt/bin/oclhashcat-plus + #! /bin/sh + echo "oclHashcat-plus and all related files have been installed in /opt/${PN}" + echo "Please run one of the following binaries to use gpu accelerated hashcat:" + EOF + + for x in oclHashcat-plus64.bin oclHashcat-plus32.bin cudaHashcat-plus64.bin cudaHashcat-plus32.bin + do + if [ -f "${ED}"/opt/${PN}/${x} ] + then + case "${x}" in + oclHashcat-plus64.bin) + echo "echo '64 bit ATI accelerated \"oclHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus + ;; + oclHashcat-plus32.bin) + echo "echo '32 bit ATI accelerated \"oclHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus + ;; + cudaHashcat-plus64.bin) + echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-plus64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus + ;; + cudaHashcat-plus32.bin) + echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-plus32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-plus + ;; + esac + + fperms +x /opt/${PN}/${x} + + cat <<-EOF > "${ED}"/opt/bin/${x} + #! /bin/sh + cd /opt/${PN} + echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths." + exec ./${x} "\$@" + EOF + + fperms +x /opt/bin/${x} + + fi + done + + fperms +x /opt/bin/oclhashcat-plus + fowners root:video /opt/${PN} + touch "${ED}"/opt/${PN}/eula.accepted + fperms 0660 /opt/${PN}/eula.accepted + einfo "oclhashcat-plus can be run as user if you are in the video group" +} diff --git a/profiles/pentoo/base/package.accept_keywords/app-crypt b/profiles/pentoo/base/package.accept_keywords/app-crypt index f55918133..00c7ae7d2 100644 --- a/profiles/pentoo/base/package.accept_keywords/app-crypt +++ b/profiles/pentoo/base/package.accept_keywords/app-crypt @@ -1,10 +1,10 @@ ~app-crypt/gcr-3.6.2 -app-crypt/hashcat-bin -app-crypt/hashcat-gui app-crypt/steghide =app-crypt/hashkill-0.3.1_p2013* +app-crypt/hashcat-gui +app-crypt/hashcat-bin app-crypt/oclhashcat-plus-bin app-crypt/oclhashcat-lite-bin