From 8226603f95b30a046d506109ab42fba9a1cf21ca Mon Sep 17 00:00:00 2001 From: danix Date: Tue, 17 Mar 2026 19:00:50 +0100 Subject: added Hydra from SlackBuild repository. Source updated to latest 9.6 version --- SlackBuilds/hydra/README | 17 ++++++ SlackBuilds/hydra/doinst.sh | 4 ++ SlackBuilds/hydra/hydra.SlackBuild | 112 +++++++++++++++++++++++++++++++++++++ SlackBuilds/hydra/hydra.desktop | 10 ++++ SlackBuilds/hydra/hydra.info | 10 ++++ SlackBuilds/hydra/slack-desc | 19 +++++++ 6 files changed, 172 insertions(+) create mode 100644 SlackBuilds/hydra/README create mode 100644 SlackBuilds/hydra/doinst.sh create mode 100644 SlackBuilds/hydra/hydra.SlackBuild create mode 100644 SlackBuilds/hydra/hydra.desktop create mode 100644 SlackBuilds/hydra/hydra.info create mode 100644 SlackBuilds/hydra/slack-desc diff --git a/SlackBuilds/hydra/README b/SlackBuilds/hydra/README new file mode 100644 index 0000000..33ab88b --- /dev/null +++ b/SlackBuilds/hydra/README @@ -0,0 +1,17 @@ +Hydra (A very fast network login cracker) + +One of the biggest security holes are user passwords, as every +password security study shows. This tool is a proof of concept, +to give researchers and security consultants a way to demonstrate +how easy it would be to gain unauthorized access to a remote system. + THIS TOOL IS FOR LEGAL PURPOSES ONLY! + +postgresql is an optional dependency, as is sap, but sap is not +available at SBo. + +This SlackBuild includes an option to omit the GTK-based frontend +xhydra. +To omit xhydra, just pass XHYDRA=0 to the script: + XHYDRA=0 sh hydra.SlackBuild + +See the README installed in /usr/doc/hydra-$VERSION for more info diff --git a/SlackBuilds/hydra/doinst.sh b/SlackBuilds/hydra/doinst.sh new file mode 100644 index 0000000..4e8ba70 --- /dev/null +++ b/SlackBuilds/hydra/doinst.sh @@ -0,0 +1,4 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + diff --git a/SlackBuilds/hydra/hydra.SlackBuild b/SlackBuilds/hydra/hydra.SlackBuild new file mode 100644 index 0000000..253d889 --- /dev/null +++ b/SlackBuilds/hydra/hydra.SlackBuild @@ -0,0 +1,112 @@ +#!/bin/bash +# Slackware build script for Hydra +# Written by Larry Hajali +# Updated by Kent Fritz + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=hydra +VERSION=${VERSION:-9.6} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +SRCNAM=thc-$PRGNAM + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$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 \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +XHYDRA=${XHYDRA:-1} +if [ "$XHYDRA" = "1" ]; then + CONFIG_OPTS="" + MAKE_OPTS="" +else + CONFIG_OPTS="--disable-xhydra" + MAKE_OPTS="XHYDRA_SUPPORT=" +fi + +./configure $CONFIG_OPTS --prefix=$PKG/usr +make OPTS="-I. $SLKCFLAGS -fcommon" $MAKE_OPTS +mkdir -p $PKG/usr/etc +make install + +# Move password lists +mkdir -p $PKG/usr/share/$PRGNAM +mv $PKG/usr/etc/* $PKG/usr/share/$PRGNAM +rm -rf $PKG/usr/etc +# Fix paths in dpl4hydra.sh +sed -i -e "s|^INSTALLDIR=.*|INSTALLDIR=/usr|" $PKG/usr/bin/dpl4hydra.sh +sed -i -e "s|^LOCATION=.*|LOCATION=share/$PRGNAM|" $PKG/usr/bin/dpl4hydra.sh + +# Add a desktop menu item +if [ "$XHYDRA" = "1" ]; then + mkdir -p $PKG/usr/share/{applications,pixmaps} + install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/ + convert hydra-logo.ico $PKG/usr/share/pixmaps/$PRGNAM.png +fi + +if [ "$XHYDRA" = "0" ]; then + rm $PKG/usr/man/man1/xhydra.1 +fi +find $PKG/usr/man -type f -exec gzip -9 {} \; + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES LICENSE* README $PKG/usr/doc/$PRGNAM-$VERSION +if [ "$XHYDRA" = "1" ]; then + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/hydra-gtk + cp -a hydra-gtk/COPYING hydra-gtk/INSTALL hydra-gtk/README \ + $PKG/usr/doc/$PRGNAM-$VERSION/hydra-gtk +fi +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +if [ "$XHYDRA" = "1" ]; then + cat $CWD/doinst.sh > $PKG/install/doinst.sh +fi + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/SlackBuilds/hydra/hydra.desktop b/SlackBuilds/hydra/hydra.desktop new file mode 100644 index 0000000..7b2e350 --- /dev/null +++ b/SlackBuilds/hydra/hydra.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +GenericName= +Name=Hydra +MimeType= +Exec=xhydra +Icon=hydra +Type=Application +Terminal=false +Comment=Network login cracker +Categories=Utility; diff --git a/SlackBuilds/hydra/hydra.info b/SlackBuilds/hydra/hydra.info new file mode 100644 index 0000000..70eb325 --- /dev/null +++ b/SlackBuilds/hydra/hydra.info @@ -0,0 +1,10 @@ +PRGNAM="hydra" +VERSION="9.6" +HOMEPAGE="https://github.com/vanhauser-thc/thc-hydra" +DOWNLOAD="https://github.com/vanhauser-thc/thc-hydra/archive/v9.6/thc-hydra-9.6.tar.gz" +MD5SUM="558d2d8b9c5cb0fd18ba108bf78965da" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Kent Fritz" +EMAIL="fritz.kent@gmail.com" diff --git a/SlackBuilds/hydra/slack-desc b/SlackBuilds/hydra/slack-desc new file mode 100644 index 0000000..995e9e9 --- /dev/null +++ b/SlackBuilds/hydra/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +hydra: hydra (A very fast network login cracker) +hydra: +hydra: One of the biggest security holes are user passwords, as every +hydra: password security study shows. This tool is a proof of concept, +hydra: to give researchers and security consultants a way to demonstrate +hydra: how easy it would be to gain unauthorized access to a remote system. +hydra: THIS TOOL IS FOR LEGAL PURPOSES ONLY! +hydra: +hydra: Homepage: https://github.com/vanhauser-thc/thc-hydra +hydra: +hydra: -- cgit v1.2.3