diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-11 15:27:31 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-13 09:17:43 +0700 |
commit | 6953ecf1ba2a4bd79c8adaab1747ed4edcabcb3c (patch) | |
tree | d7d52cb7afc6f945380f4f97b4061dbf735ed7f0 /system/hashcat | |
parent | 9cb8979172a1b60dff87a34916b0592e04e305b7 (diff) | |
download | slackbuilds-6953ecf1ba2a4bd79c8adaab1747ed4edcabcb3c.tar.gz |
system/hashcat: Updated for version 6.2.4.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/hashcat')
-rw-r--r-- | system/hashcat/README | 10 | ||||
-rw-r--r-- | system/hashcat/hashcat.SlackBuild | 45 | ||||
-rw-r--r-- | system/hashcat/hashcat.info | 6 | ||||
-rw-r--r-- | system/hashcat/slack-desc | 8 |
4 files changed, 39 insertions, 30 deletions
diff --git a/system/hashcat/README b/system/hashcat/README index 030ea13c73..3e32498d6f 100644 --- a/system/hashcat/README +++ b/system/hashcat/README @@ -1,5 +1,7 @@ -hashcat is the world's fastest and most advanced password recovery -utility, supporting five unique modes of attack for over 160 -highly-optimized hashing algorithms. hashcat currently supports CPU's, -GPU's other hardware-accelerators on Linux, Windows and OSX, and has +hashcat (advanced password recovery) + +hashcat is the world's fastest and most advanced password recovery +utility, supporting five unique modes of attack for over 160 +highly-optimized hashing algorithms. hashcat currently supports CPUs, +GPUs, other hardware-accelerators on Linux, Windows and OSX, and has facilities to help enable distributed password cracking. diff --git a/system/hashcat/hashcat.SlackBuild b/system/hashcat/hashcat.SlackBuild index afcb99cfad..5e41302610 100644 --- a/system/hashcat/hashcat.SlackBuild +++ b/system/hashcat/hashcat.SlackBuild @@ -22,10 +22,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220211 bkw: Modified by SlackBuilds.org: updated for v6.2.4. The +# old version wouldn't build on 15.0, and it was getting a bit long +# in the tooth anyway. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hashcat -VERSION=${VERSION:-3.5.0} +VERSION=${VERSION:-6.2.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +42,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -75,26 +76,32 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + +# 20220211 bkw: build stripped. +SLKCFLAGS+=" -Wl,-s" -for i in $(ls $CWD/patches); do - patch -p0 < $CWD/patches/$i -done +# 20220211 bkw: lots of make arguments, deduplicate. +runmake() { + make "$@" \ + CC="gcc $SLKCFLAGS" \ + CXX="g++ $SLKCFLAGS" \ + PREFIX=/usr \ + LIBRARY_FOLDER=/usr/lib$LIBDIRSUFFIX \ + DOCUMENT_FOLDER=/usr/doc/$PRGNAM-$VERSION \ + DESTDIR=$PKG +} -sed -i "s|/lib|/lib${LIBDIRSUFFIX}|" src/Makefile -sed -i "s|share/doc/hashcat|doc/$PRGNAM-$VERSION|" src/Makefile -make -make install DESTDIR=$PKG +runmake +runmake install -find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +chmod -x $PKGDOC/*.sh $PKGDOC/extra/tab_completion/install +cp -a README.md $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/system/hashcat/hashcat.info b/system/hashcat/hashcat.info index a9392982cc..f1cd6ea160 100644 --- a/system/hashcat/hashcat.info +++ b/system/hashcat/hashcat.info @@ -1,8 +1,8 @@ PRGNAM="hashcat" -VERSION="3.5.0" +VERSION="6.2.4" HOMEPAGE="https://hashcat.net/hashcat/" -DOWNLOAD="https://github.com/hashcat/hashcat/archive/v3.5.0/hashcat-3.5.0.tar.gz" -MD5SUM="4cb174751d2ca9da5eec5a5e97d10d38" +DOWNLOAD="https://github.com/hashcat/hashcat/archive/v6.2.4/hashcat-6.2.4.tar.gz" +MD5SUM="afa750eba597503f502d410a5a7a0c9f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/system/hashcat/slack-desc b/system/hashcat/slack-desc index d937799af9..6fa5c2d5d6 100644 --- a/system/hashcat/slack-desc +++ b/system/hashcat/slack-desc @@ -10,10 +10,10 @@ hashcat: hashcat (advanced password recovery) hashcat: hashcat: hashcat is the world's fastest and most advanced password recovery hashcat: utility, supporting five unique modes of attack for over 160 -hashcat: highly-optimized hashing algorithms. hashcat currently supports -hashcat: CPU's, GPU's other hardware-accelerators on Linux, Windows and OSX, -hashcat: and has facilities to help enable distributed password cracking. +hashcat: highly-optimized hashing algorithms. hashcat currently supports CPUs, +hashcat: GPUs, other hardware-accelerators on Linux, Windows and OSX, and has +hashcat: facilities to help enable distributed password cracking. +hashcat: hashcat: -hashcat: Homepage: https://hashcat.net/hashcat/ hashcat: hashcat: |