[hydra] Initial import (#769919)

athmane athmane at fedoraproject.org
Sun May 27 05:19:38 UTC 2012


commit 3c9e3d2392e070b556b165ac2a7d5428a538ebfb
Author: Athmane Madjoudj <athmane at fedoraproject.org>
Date:   Sun May 27 06:18:15 2012 +0100

    Initial import (#769919)

 .gitignore                      |    1 +
 hydra-fix-dpl4hydra-dir.patch   |   13 ++++
 hydra-fix-makefile.patch        |   19 ++++++
 hydra-use-system-libpq-fe.patch |   12 ++++
 hydra.spec                      |  119 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 xhydra.desktop                  |   10 +++
 7 files changed, 175 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9c254ad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hydra-7.3.tar.gz
diff --git a/hydra-fix-dpl4hydra-dir.patch b/hydra-fix-dpl4hydra-dir.patch
new file mode 100644
index 0000000..d06c801
--- /dev/null
+++ b/hydra-fix-dpl4hydra-dir.patch
@@ -0,0 +1,13 @@
+--- dpl4hydra.sh.orig	2012-05-23 00:52:11.312000504 +0100
++++ dpl4hydra.sh	2012-05-23 00:53:05.605999925 +0100
+@@ -8,8 +8,8 @@
+ # Credits:  Thanks to van Hauser for support and fixing portability issues.
+ #           "The universe is an intelligence test." -Timothy Leary (R.I.P.)
+ 
+-INSTALLDIR=/usr/local
+-LOCATION=etc
++INSTALLDIR=/usr/
++LOCATION=share/hydra
+ 
+ usage ()
+ {
diff --git a/hydra-fix-makefile.patch b/hydra-fix-makefile.patch
new file mode 100644
index 0000000..b9344b6
--- /dev/null
+++ b/hydra-fix-makefile.patch
@@ -0,0 +1,19 @@
+--- Makefile.am.orig	2012-05-23 00:35:24.027000184 +0100
++++ Makefile.am	2012-05-23 01:08:43.936015275 +0100
+@@ -59,11 +59,12 @@
+ 	cp -f $(BINS) $(PREFIX)$(DIR) && cd $(PREFIX)$(DIR) && chmod 755 $(BINS)
+ 	-echo OK > /dev/null && test -x xhydra && cp xhydra $(PREFIX)$(DIR) && cd $(PREFIX)$(DIR) && chmod 755 xhydra || echo OK > /dev/null
+ #	-cp -f dpl4hydra.sh ($PREFIX)/dpl4hydra.sh
+-	-sed -e "s|^INSTALLDIR=.*|INSTALLDIR="$(PREFIX)"|" dpl4hydra.sh > $(PREFIX)/bin/dpl4hydra.sh
++	-cp -f dpl4hydra.sh $(PREFIX)/bin/dpl4hydra.sh
+ 	-chmod 755 $(PREFIX)/bin/dpl4hydra.sh
+-	-cp -f *.csv $(PREFIX)/etc/
+-	-mkdir -p $(PREFIX)/man/man1
+-	-cp -f hydra.1 xhydra.1 pw-inspector.1 $(PREFIX)/man/man1
++	-mkdir -p $(PREFIX)/share/hydra
++	-cp -f *.csv $(PREFIX)/share/hydra
++	-mkdir -p $(PREFIX)/share/man/man1
++	-cp -f hydra.1 xhydra.1 pw-inspector.1 $(PREFIX)/share/man/man1
+ 
+ clean:
+ 	rm -rf xhydra pw-inspector hydra *.o core *.core *.stackdump *~ Makefile.in Makefile dev_rfc hydra.restore arm/*.ipk arm/ipkg/usr/bin/* hydra-gtk/src/*.o hydra-gtk/src/xhydra hydra-gtk/stamp-h hydra-gtk/config.status hydra-gtk/errors hydra-gtk/config.log hydra-gtk/src/.deps hydra-gtk/src/Makefile hydra-gtk/Makefile
diff --git a/hydra-use-system-libpq-fe.patch b/hydra-use-system-libpq-fe.patch
new file mode 100644
index 0000000..8c46ed5
--- /dev/null
+++ b/hydra-use-system-libpq-fe.patch
@@ -0,0 +1,12 @@
+--- hydra-postgres.c.orig	2012-05-18 22:17:20.839998208 +0100
++++ hydra-postgres.c	2012-05-18 22:19:36.546989957 +0100
+@@ -14,7 +14,8 @@
+ }
+ #else
+ 
+-#include "libpq-fe.h"           // Postgres connection functions
++/* Postgres connection functions */
++#include <libpq-fe.h>    
+ #include <stdio.h>
+ 
+ #define DEFAULT_DB "template1"
diff --git a/hydra.spec b/hydra.spec
new file mode 100644
index 0000000..8546141
--- /dev/null
+++ b/hydra.spec
@@ -0,0 +1,119 @@
+Summary: Very fast network log-on cracker
+Name: hydra
+Version: 7.3
+Release: 9%{?dist}
+License: GPLv3 with exceptions
+Source0: http://freeworld.thc.org/releases/%{name}-%{version}.tar.gz
+Source1: xhydra.desktop
+# Sent upstream via email 20120518
+Patch0: hydra-use-system-libpq-fe.patch
+Patch1: hydra-fix-dpl4hydra-dir.patch
+Patch2: hydra-fix-makefile.patch
+
+
+URL: http://www.thc.org/thc-hydra/
+BuildRequires: openssl-devel, apr-devel, ncpfs-devel, libssh-devel, libidn-devel
+BuildRequires: subversion-devel, postgresql-devel, pcre-devel, gtk2-devel
+BuildRequires: desktop-file-utils, firebird-devel, mysql-devel 
+
+%description
+Hydra is a parallelized log-in cracker which supports numerous protocols to 
+attack. New modules are easy to add, beside that, it is flexible and very fast.
+
+This tool gives researchers and security consultants the possibility to show 
+how easy it would be to gain unauthorized access from remote to a system.
+
+%package frontend
+Summary: The GTK+ front end for hydra
+Requires: hydra = %{version}-%{release}
+BuildRequires: gtk2-devel, pkgconfig
+%description frontend
+This package includes xhydra, a GTK+ front end for hydra. 
+
+%prep
+%setup -q
+
+%patch0 -p0
+%patch1 -p0
+%patch2 -p0
+
+%build
+export CFLAGS="%{optflags}" BINDIR=%{_bindir}
+%configure  
+make %{?_smp_mflags}
+
+%install
+make install PREFIX="%{buildroot}/usr"
+
+mkdir -p %{buildroot}%{_datadir}/{applications,pixmaps}
+install -m 644 -p xhydra.png %{buildroot}%{_datadir}/pixmaps/
+desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1};
+
+
+%files
+%doc CHANGES LICENSE LICENSE.OPENSSL README
+%{_bindir}/hydra
+%{_bindir}/pw-inspector
+%{_mandir}/man1/hydra*
+%{_mandir}/man1/pw-inspector*
+%{_bindir}/dpl4hydra.sh
+%{_datadir}/%{name}/dpl4hydra*.csv
+%dir %{_datadir}/%{name}
+
+%files frontend
+%{_bindir}/xhydra
+%{_mandir}/man1/xhydra*
+%{_datadir}/pixmaps/*
+%{_datadir}/applications/*
+
+%changelog
+* Tue May 22 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.3-9
+- Update to 7.3
+- Drop some patches since they're included in 7.3
+- Add two patches to fix makefile and dpl4hydra
+
+* Fri May 18 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-8
+- Add LICENSE.OPENSSL
+- Add /usr/share/hydra
+- Add a patch to use system provided libpq-fe headers (provided by 
+  postgresql-devel)
+
+* Tue Apr 17 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-7
+- Add DESTDIR support
+- Include dpl4hydra
+
+* Mon Apr 16 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-6
+- Reverse a patch because it breaks brute-forcing NTLM-enabled services 
+  (upstream confirmed that it's not necessary)
+
+* Tue Mar 13 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-5
+- Add patch to support mysql
+- Add patch to fix warnings
+
+* Thu Mar 08 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-4
+- Preserve timestamps on install
+- Remove extra arg in desktop file install
+
+* Sat Feb 11 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-3
+- Add support for CFLAGS
+
+* Sat Feb 11 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-2
+- Clean-up the descriptions
+- Add Firebird support
+
+* Sat Feb 11 2012 Athmane Madjoudj <athmane at fedoraproject.org> 7.2-1
+- Update to 7.2
+
+* Tue Dec 27 2011 Athmane Madjoudj <athmane at fedoraproject.org> 7.1-3
+- Remove rm -rf buildroot
+
+* Thu Dec 22 2011 Athmane Madjoudj <athmane at fedoraproject.org> 7.1-2
+- Update license to GPLv3 with OpenSSL exception
+
+* Thu Dec 22 2011 Athmane Madjoudj <athmane at fedoraproject.org> 7.1-1
+- Update to recent version
+- Clean-up the spec file
+- Add desktop file for the frontend
+
+* Sun Jul 04 2010 Marcus Haebler <haebler at gmail.com> - 0:5.7-0
+- Initial RPM build 
diff --git a/sources b/sources
index e69de29..9f90e95 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+34f9c21eae24fdc542ba21abc61b05d1  hydra-7.3.tar.gz
diff --git a/xhydra.desktop b/xhydra.desktop
new file mode 100644
index 0000000..69debb5
--- /dev/null
+++ b/xhydra.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=XHydra
+GenericName=Hydra very fast network log-on cracker
+Comment=GUI frontend for Hydra network log-on cracker
+Version=1.0
+Exec=xhydra
+Icon=xhydra
+Terminal=false
+Type=Application
+Categories=System;Security;GTK;


More information about the scm-commits mailing list