pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/hydra THC-Hydra the best parallized login hac...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5f9823cd3c3
branches:  trunk
changeset: 492639:b5f9823cd3c3
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sun Apr 17 12:19:54 2005 +0000

description:
THC-Hydra the best parallized login hacker is available: for Samba,
FTP, POP3, IMAP, Telnet, HTTP Auth, LDAP NNTP, VNC, ICQ, Socks5,
PCNFS, Cisco and more. Includes SSL support and is part of Nessus.

diffstat:

 security/hydra/DESCR            |   3 +
 security/hydra/Makefile         |  70 +++++++++++++++++++++++++++++++++++++++++
 security/hydra/PLIST            |   3 +
 security/hydra/PLIST.xhydra     |   2 +
 security/hydra/distinfo         |   9 +++++
 security/hydra/patches/patch-aa |  22 ++++++++++++
 security/hydra/patches/patch-ab |  33 +++++++++++++++++++
 security/hydra/patches/patch-ac |  13 +++++++
 security/hydra/patches/patch-ad |  13 +++++++
 9 files changed, 168 insertions(+), 0 deletions(-)

diffs (204 lines):

diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/DESCR      Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,3 @@
+THC-Hydra the best parallized login hacker is available: for Samba,
+FTP, POP3, IMAP, Telnet, HTTP Auth, LDAP NNTP, VNC, ICQ, Socks5,
+PCNFS, Cisco and more. Includes SSL support and is part of Nessus.
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/Makefile   Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,70 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+#
+
+DISTNAME=      ${PKGNAME}-src
+PKGNAME=       hydra-4.6
+CATEGORIES=    security
+MASTER_SITES=  http://www.thc.org/releases/
+
+MAINTAINER=    adrianp%NetBSD.org@localhost
+HOMEPAGE=      http://www.thc.org/thc-hydra/
+COMMENT=       Login password cracker
+
+.include "../../mk/bsd.prefs.mk"
+
+GNU_CONFIGURE= YES
+BUILD_TARGET=  all ssl
+WRKSRC=                ${WRKDIR}/${DISTNAME}
+
+LICENSE+=      hydra-license
+
+SUBST_CLASSES=         build
+SUBST_STAGE.build=     post-patch
+SUBST_FILES.build=     Makefile.am configure hydra-gtk/src/main.c
+SUBST_SED.build=       -e "s|@SSLBASE@|${BUILDLINK_PREFIX.openssl}|g" \
+                       -e "s|@PREFIX@|${PREFIX}|g" \
+                       -e "s|uname|${UNAME}|g" \
+                       -e "s|\./hydra|${PREFIX}/bin/hydra|g" \
+                       -e "s|LIBS=-lm|LIBS=-lm ${COMPILER_RPATH_FLAG}${PREFIX}/lib ${COMPILER_RPATH_FLAG}/usr/lib|g"
+SUBST_MESSAGE.build=   "Patching build files."
+
+USE_OLD_DES_API=       YES
+PLIST_SRC=             ${WRKDIR}/.PLIST_SRC
+CONFIGURE_ARGS+=       --prefix=${PREFIX}
+BUILDLINK_DEPENDS.libssh+=     libssh-0.1
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.hydra
+PKG_SUPPORTED_OPTIONS= gtkfe
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgtkfe)
+
+.include "../../devel/pkgconfig/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+
+post-configure:
+       cd ${WRKSRC}/hydra-gtk && \
+       ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+
+post-build:
+       cd ${WRKSRC}/hydra-gtk && \
+       ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM}
+
+post-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/hydra-gtk/src/xhydra ${PREFIX}/bin
+
+PLIST_SRC+=    ${PKGDIR}/PLIST.xhydra
+.endif
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../security/libssh/buildlink3.mk"
+
+pre-build:
+        @${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/hydra ${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/pw-inspector ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/PLIST      Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+bin/hydra
+bin/pw-inspector
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/PLIST.xhydra
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/PLIST.xhydra       Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.xhydra,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+bin/xhydra
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/distinfo   Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+SHA1 (hydra-4.6-src.tar.gz) = acf0f61f8dc2a5307e266c337231dbdb3a9b9d79
+RMD160 (hydra-4.6-src.tar.gz) = 72cffce9eda1659023b74f22baabfad43ac5933d
+Size (hydra-4.6-src.tar.gz) = 171063 bytes
+SHA1 (patch-aa) = 0ca0d1f6edf7bad05050c0a76ec6601044981c5b
+SHA1 (patch-ab) = fd43082819d05368e6adc4d0295cca3d7d3f8b36
+SHA1 (patch-ac) = c9ba9d8b584ec92b940dbf2e69768dad4ff86d25
+SHA1 (patch-ad) = 3734123af4511161eee93f624b1b9dd575be0ae7
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/patches/patch-aa   Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- Makefile.am.orig   2005-04-17 13:11:05.000000000 +0100
++++ Makefile.am
+@@ -28,17 +28,11 @@ EXTRA_DIST = README README.arm README.pa
+              hydra-mod.h hydra.h crc32.h d3des.h md4.h
+ 
+ all:  pw-inspector hydra xhydra
+-      @echo
+-      @echo Now type "make install"
+ 
+ hydra:        $(OBJ)
+       $(CC) $(OPTS) $(LIBS) -o $(BIN) $(OBJ) $(LIB) $(XLIBS) $(XLIBPATHS)
+-      @echo
+-      @echo If men could get pregnant, abortion would be a sacrament
+-      @echo
+ 
+ xhydra:       
+-      -cd hydra-gtk && ./make_xhydra.sh
+ 
+ pw-inspector: pw-inspector.c
+       -$(CC) $(OPTS) -o pw-inspector pw-inspector.c
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/patches/patch-ab   Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- configure.orig     2005-02-01 14:50:26.000000000 +0000
++++ configure
+@@ -130,7 +130,7 @@ if [ "$SAPR3_IPATH" = "/usr/include" ]; 
+ fi
+ 
+ echo "Checking for libssh (libssh/libssh.h) ..."
+-for i in  $LIBDIRS /lib  /usr/lib /usr/local/lib /opt/local/lib .
++for i in  $LIBDIRS /lib  /usr/lib /usr/local/lib /opt/local/lib /usr/pkg/lib .
+ do
+     if [ "X" = "X$SSH_PATH" ]; then
+         if [ -f "$i/libssh.so" -o -f "$i/libssh.dylib" ]; then
+@@ -144,7 +144,7 @@ do
+         fi
+     fi
+ done
+-for i in /usr/local/include /*ssl/include /usr/include .
++for i in /usr/local/include /*ssl/include /usr/include /usr/pkg/include .
+ do
+     if [ "X" = "X$SSH_IPATH" ]; then
+         if [ -f "$i/libssh/libssh.h" ]; then
+@@ -291,10 +291,3 @@ echo >> Makefile.in
+ cat Makefile.unix > Makefile
+ cat Makefile.in >> Makefile
+ cat Makefile.am >> Makefile
+-
+-echo
+-echo NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES NOTES
+-echo =======================================================================
+-echo ARM/PalmPilot users: please run ./configure-arm or ./configure-palm respectivly
+-echo
+-echo "now type \"make\""
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/patches/patch-ac   Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- hydra-gtk/src/main.c.orig  2005-01-05 22:31:46.000000000 +0000
++++ hydra-gtk/src/main.c       2005-01-05 22:32:41.000000000 +0000
+@@ -30,7 +30,7 @@
+   gtk_set_locale ();
+   gtk_init (&argc, &argv);
+ 
+-  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
++  add_pixmap_directory ("@PREFIX@/share/xhydra/pixmaps");
+ 
+   /* initialize the message id */
+   message_id = 0;
diff -r 6d3c0d040cc4 -r b5f9823cd3c3 security/hydra/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/hydra/patches/patch-ad   Sun Apr 17 12:19:54 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/04/17 12:19:54 adrianp Exp $
+
+--- hydra-gtk/src/Makefile.in.orig     2005-01-05 22:33:45.000000000 +0000
++++ hydra-gtk/src/Makefile.in  2005-01-05 22:34:23.000000000 +0000
+@@ -88,7 +88,7 @@
+ xhydra_OBJECTS =  main.o support.o interface.o callbacks.o
+ xhydra_DEPENDENCIES = 
+ xhydra_LDFLAGS = 
+-CFLAGS = @CFLAGS@
++CFLAGS = @CFLAGS@ $(INCLUDES)
+ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ CCLD = $(CC)
+ LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@



Home | Main Index | Thread Index | Old Index