summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-08-22 21:57:58 +0000
committerJeroen Roovers <jer@gentoo.org>2010-08-22 21:57:58 +0000
commit81b67b4209cfecad3abf885a00f0d452ccb8b441 (patch)
tree9e2d23895ccf18960793b25aaed25bbfdcd41283 /net-analyzer/hydra
parentRemove profile.bashrc since it only did CFLAGS checks which shouldn't have ex... (diff)
downloadhistorical-81b67b4209cfecad3abf885a00f0d452ccb8b441.tar.gz
historical-81b67b4209cfecad3abf885a00f0d452ccb8b441.tar.bz2
historical-81b67b4209cfecad3abf885a00f0d452ccb8b441.zip
Version bump. Fix several QA issues based on a patch by Kevin Pyle (bug #333803).
Package-Manager: portage-2.2_rc67/cvs/Linux i686
Diffstat (limited to 'net-analyzer/hydra')
-rw-r--r--net-analyzer/hydra/ChangeLog9
-rw-r--r--net-analyzer/hydra/Manifest6
-rw-r--r--net-analyzer/hydra/files/hydra-5.4-libssh-0.2.patch213
-rw-r--r--net-analyzer/hydra/hydra-5.4-r2.ebuild69
-rw-r--r--net-analyzer/hydra/hydra-5.7.ebuild81
5 files changed, 92 insertions, 286 deletions
diff --git a/net-analyzer/hydra/ChangeLog b/net-analyzer/hydra/ChangeLog
index 1bc811644ccf..c8866cf63573 100644
--- a/net-analyzer/hydra/ChangeLog
+++ b/net-analyzer/hydra/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/hydra
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/ChangeLog,v 1.37 2010/05/21 15:53:49 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/ChangeLog,v 1.38 2010/08/22 21:57:58 jer Exp $
+
+*hydra-5.7 (22 Aug 2010)
+
+ 22 Aug 2010; Jeroen Roovers <jer@gentoo.org> -hydra-5.4-r2.ebuild,
+ -files/hydra-5.4-libssh-0.2.patch, +hydra-5.7.ebuild:
+ Version bump. Fix several QA issues based on a patch by Kevin Pyle (bug
+ #333803).
21 May 2010; Peter Volkov <pva@gentoo.org> hydra-5.4-r3.ebuild:
amd64 stable, bug 310017
diff --git a/net-analyzer/hydra/Manifest b/net-analyzer/hydra/Manifest
index 903d375e2f5b..02093dbda1fd 100644
--- a/net-analyzer/hydra/Manifest
+++ b/net-analyzer/hydra/Manifest
@@ -1,9 +1,9 @@
AUX hydra-5.4-_FORTIFY_SOURCE.patch 562 RMD160 76ffa0d0c22c653600b6a6ec3066b0c1d85dc641 SHA1 7842f1d8c59e9eb556eaec070e1cf880cf9e2a82 SHA256 e0b45b7c69cf6d39feb98270efbba6a25c73c91036ae4f22b50566e355a7f99d
AUX hydra-5.4-free-without-malloc.patch 436 RMD160 d733fd1b55395a882418aa835b67aff49d29591d SHA1 cda80e164a344bb3c0b4dc20a2bf2f4700c443db SHA256 ac64cac7e7334da4ed8ee10f88a7303460bc4c1f7cbb5b5a81f01e6c8938d0b4
-AUX hydra-5.4-libssh-0.2.patch 8168 RMD160 649a2c3bb5c80a1be5e3587a994b1e10a93f4f62 SHA1 f641be2c1b13cc9a86ef5d8b34aae1ceee26e1fb SHA256 686834b8c3ee67d14de8741887c4a3fbed3fcce4499c32bd42ae721b31f24234
AUX hydra-5.4-libssh-0.4.0.patch 8760 RMD160 20bb8dd5b584945fd0b02b01cb6c1e1c8a5828f6 SHA1 f23c93de03f6a8edd60dd7b0362747cd456e3723 SHA256 fb04b18191e3cb73f05d0af95d063cc0539b7c0642d5665bd2fc77f10b833331
DIST hydra-5.4-src.tar.gz 208272 RMD160 e3b4b98250394945dc5a8bfe234302de793db014 SHA1 2134092c7b64132c080b6b1ba155124b885767db SHA256 cd2e7e5ea479d50982b08334b1f4477a6620e6b45bc79ab55ddd07b128c64611
-EBUILD hydra-5.4-r2.ebuild 1606 RMD160 50ef3e230e9c25d61b495c3100f52f4696f0608a SHA1 1d522cb5de9f7181134a0aff6aa9aca910229e89 SHA256 0a6d100d7910b20722670707377cc1c49bade7c24d13cb695424ab8a8e61cad5
+DIST hydra-5.7-src.tar.gz 203050 RMD160 d4c587b001bd55afa740cbd29064b964db03f51a SHA1 8087a2c085d10fbe67e3d45aad724f76f70bb042 SHA256 595e4cc2f186ef7f616e31448f1caf9df51d2d7b8d2bec92738ed1fb58e41e81
EBUILD hydra-5.4-r3.ebuild 1588 RMD160 cb19dcc5af2729bb975544d428fa72be5cfeb3d6 SHA1 22b4012801bbe6cd5e147ad6253666c7b1a597c7 SHA256 0f81981fc75f1f2bc3f6a90a86b56938f07b6a5574ec6f8f083510e40d4890a8
-MISC ChangeLog 5176 RMD160 d59984bbc42a4b8531f8a60196d874494cb5d206 SHA1 ca00df9e8451699ab4ee91c20a20753a9cf4589b SHA256 3a647b18fb43dc2c0720ff62f6d4ef53616a7a77115988a26549c457deb6e72d
+EBUILD hydra-5.7.ebuild 1772 RMD160 736c6080d632a6325343f787ddc4180b7b3f84b7 SHA1 0c9b24f68fb9a2d78a865887d071d26bbe66f673 SHA256 d007b4f3332257b522ff645cd6d4f56852d9ac0cd26ebe368b19ac10afa421e7
+MISC ChangeLog 5414 RMD160 adf7841df1877494ff2c2d1c04e3731118181c13 SHA1 7997221d6ddb7d316051e473d6c44687a846bc0e SHA256 8372ad2c12e331dbae1f48e452c9930dde80000517549b51e9cf8c1a77f84ece
MISC metadata.xml 227 RMD160 2a8754b01b0efe35e1f147451db54318da704ec1 SHA1 905f8d225c7defc78c835ebf7f44a83bed62fce3 SHA256 549534fb196ce43008704171f81429d1df086465e990f62d1685b69a7583d27c
diff --git a/net-analyzer/hydra/files/hydra-5.4-libssh-0.2.patch b/net-analyzer/hydra/files/hydra-5.4-libssh-0.2.patch
deleted file mode 100644
index b15f6ec1354c..000000000000
--- a/net-analyzer/hydra/files/hydra-5.4-libssh-0.2.patch
+++ /dev/null
@@ -1,213 +0,0 @@
-Les sous-répertoires hydra-5.4-src/arm et hydra-5.4-src-libssh0.2/arm sont identiques.
-diff -u hydra-5.4-src/configure hydra-5.4-src-libssh0.2/configure
---- hydra-5.4-src/configure 2006-01-20 14:44:15.000000000 +0100
-+++ hydra-5.4-src-libssh0.2/configure 2008-10-31 22:32:47.000000000 +0100
-@@ -243,11 +243,11 @@
-
- if [ -n "$SSH_PATH" ]; then
- echo " ... found"
-- echo 'NOTE: ensure that you have libssh v0.11 installed!! Get it from http://0xbadc0de.be !'
-+ echo 'NOTE: ensure that you have libssh v0.2 or later installed!! Get it from http://0xbadc0de.be !'
- fi
- if [ "X" = "X$SSH_PATH" ]; then
- echo " ... NOT found, module ssh2 disabled"
-- echo 'Get it from http://0xbadc0de.be/ - use v0.11!'
-+ echo 'Get it from http://0xbadc0de.be/ - use v0.2 or later'
- fi
- if [ "$SSH_IPATH" = "/usr/include" ]; then
- SSH_IPATH=""
-Seulement dans hydra-5.4-src-libssh0.2/: .hydra-ftp.c.swp
-Les sous-répertoires hydra-5.4-src/hydra-gtk et hydra-5.4-src-libssh0.2/hydra-gtk sont identiques.
-Seulement dans hydra-5.4-src-libssh0.2/: .hydra-mod.c.swp
-diff -u hydra-5.4-src/hydra-ssh2.c hydra-5.4-src-libssh0.2/hydra-ssh2.c
---- hydra-5.4-src/hydra-ssh2.c 2007-03-22 15:04:29.000000000 +0100
-+++ hydra-5.4-src-libssh0.2/hydra-ssh2.c 2008-11-01 21:21:08.000000000 +0100
-@@ -7,12 +7,51 @@
- }
- #else
-
--#warning "If compilation of hydra-ssh2 fails, you are not using v0.11. Download from http://www.0xbadc0de.be/"
-+#warning "If compilation of hydra-ssh2 fails, you are not using v0.2 or 0.2.1. Download from http://www.0xbadc0de.be/"
-
- #include <libssh/libssh.h>
-
- extern char *HYDRA_EXIT;
-
-+/* try to authenticate with one password */
-+static int
-+try_password(SSH_SESSION *ssh_session, char *password){
-+ int auth_state;
-+ int i;
-+ /* printf("ssh-trying pass \"%s\"\n",password); */
-+ /* We try keyboard-interactive when it's supported. kbdint is
-+ * what openssh tries first when logging somewhere.
-+ */
-+ auth_state = ssh_userauth_kbdint(ssh_session, NULL, NULL);
-+ if(auth_state == SSH_AUTH_INFO){
-+ i=0;
-+ /* we feed 10 password responses at max. Keybint is challenge-response
-+ * based so the server could ask unrelated questions
-+ */
-+ while(auth_state == SSH_AUTH_INFO && i<10){
-+ ssh_userauth_kbdint_setanswer(ssh_session, i, password);
-+ auth_state = ssh_userauth_kbdint(ssh_session, NULL, NULL);
-+ i++;
-+ }
-+ /* Partial authentication is specific to SSH : the password is valid but
-+ * an other authentication token is needed (generaly private key)
-+ */
-+ if(auth_state == SSH_AUTH_PARTIAL)
-+ auth_state = SSH_AUTH_SUCCESS;
-+ if(auth_state == SSH_AUTH_INFO)
-+ auth_state = SSH_AUTH_ERROR;
-+ return auth_state;
-+ }
-+ if(auth_state == SSH_AUTH_ERROR)
-+ return auth_state;
-+ /* Keyboard-interactive is not supported so we run through the password
-+ * method */
-+ auth_state = ssh_userauth_password(ssh_session, NULL, password);
-+ if(auth_state == SSH_AUTH_PARTIAL)
-+ auth_state = SSH_AUTH_SUCCESS;
-+ return auth_state;
-+}
-+
- int
- start_ssh2(int s, unsigned long int ip, int port, unsigned char options, char *miscptr, FILE * fp)
- {
-@@ -20,18 +59,19 @@
- char *login, *pass;
- char *buf;
- char *rc;
-+ char buffer[64];
- struct sockaddr_in targetip;
- SSH_SESSION *ssh_session;
- SSH_OPTIONS *ssh_opt;
- int auth_state;
-- int i = 0;
-+ char firstlogin[128];
-
- if (strlen(login = hydra_get_next_login()) == 0)
- login = empty;
- if (strlen(pass = hydra_get_next_password()) == 0)
- pass = empty;
--
-- ssh_opt=options_new();
-+ snprintf(firstlogin,sizeof(firstlogin),"%s",login);
-+ ssh_opt=ssh_options_new();
- memset(&targetip, 0, sizeof(targetip));
- memcpy(&targetip.sin_addr.s_addr, &ip, 4);
- targetip.sin_family = AF_INET;
-@@ -41,16 +81,21 @@
- buf = malloc(20);
- inet_ntop(AF_INET, &targetip.sin_addr, buf, 20);
- #endif
-- options_set_wanted_method(ssh_opt,KEX_COMP_C_S,"none");
-- options_set_wanted_method(ssh_opt,KEX_COMP_S_C,"none");
-- options_set_port(ssh_opt, port);
-- options_set_host(ssh_opt, buf);
-- options_set_username(ssh_opt, login);
--
-- if ((ssh_session = ssh_connect(ssh_opt)) == NULL) {
-+ ssh_options_allow_ssh1(ssh_opt,1);
-+// ssh_options_set_wanted_algos (ssh_opt,KEX_COMP_C_S,"none");
-+// ssh_options_set_wanted_algos (ssh_opt,KEX_COMP_S_C,"none");
-+ ssh_options_set_port(ssh_opt, port);
-+ ssh_options_set_host(ssh_opt, buf);
-+ ssh_options_set_username(ssh_opt, login);
-+ ssh_session=ssh_new();
-+ ssh_set_options(ssh_session,ssh_opt);
-+ /* printf("ssh-connecting with login \"%s\"\n",login); */
-+ if (ssh_connect(ssh_session) == SSH_ERROR) {
- rc = ssh_get_error(ssh_session);
- if ((rc != NULL) && (rc[0] != '\0')) {
-- if (strncmp("connect:", ssh_get_error(ssh_session), strlen("connect:")) == 0)
-+ snprintf(buffer,sizeof(buffer),"%s",rc);
-+ ssh_disconnect(ssh_session);
-+ if (strncmp("connect:", buffer, strlen("connect:")) == 0)
- return 3;
- else
- return 4;
-@@ -60,43 +105,54 @@
- free(buf);
- buf = NULL;
- #endif
--
-- do {
-- /* why this crap? */
-- auth_state = ssh_userauth_kbdint(ssh_session, login, NULL);
-- while (i < 10 && auth_state == SSH_AUTH_INFO) {
-- ssh_userauth_kbdint_setanswer(ssh_session, i, pass);
-- auth_state = ssh_userauth_kbdint(ssh_session, login, NULL);
-- i++;
-- }
--
-- if (auth_state == SSH_AUTH_SUCCESS || ssh_userauth_password(ssh_session, login, pass) == SSH_AUTH_SUCCESS) {
-- ssh_disconnect(ssh_session); /* this automagically frees the ssh_opt buffer */
-- hydra_report_found_host(port, ip, "ssh2", fp);
-- hydra_completed_pair_found();
-- if (memcmp(hydra_get_next_pair(), &HYDRA_EXIT, sizeof(HYDRA_EXIT)) == 0)
-- return 2;
-- /* free(ssh_opt); */ /* DOUBLE FREE ! */
-+ /* None method is important since it can flag passwordless servers */
-+ auth_state=ssh_userauth_none(ssh_session, login);
-+ if(auth_state == SSH_AUTH_SUCCESS){
-+ /* passwordless server */
-+ hydra_report_found_host(port, ip, "ssh2", fp);
-+ hydra_completed_pair_found();
-+ ssh_disconnect(ssh_session);
-+ if (memcmp(hydra_get_next_pair(), &HYDRA_EXIT, sizeof(HYDRA_EXIT)) == 0)
-+ return 2;
-+ else
- return 1;
-- } else {
-- if (ssh_error_code(ssh_session) == 1) {
-- hydra_completed_pair();
-+ }
-+
-+ do {
-+ auth_state=try_password(ssh_session, pass);
-+ if (auth_state == SSH_AUTH_SUCCESS) {
-+ ssh_disconnect(ssh_session); /* this automagically frees the ssh_opt buffer */
-+ hydra_report_found_host(port, ip, "ssh2", fp);
-+ hydra_completed_pair_found();
- if (memcmp(hydra_get_next_pair(), &HYDRA_EXIT, sizeof(HYDRA_EXIT)) == 0)
- return 2;
-+ return 1;
- } else {
-- ssh_disconnect(ssh_session); /* this automagically frees the ssh_opt buffer */
-- hydra_completed_pair(); /* really? */
-- if (memcmp(hydra_get_next_pair(), &HYDRA_EXIT, sizeof(HYDRA_EXIT)) == 0)
-+ if (auth_state == SSH_AUTH_DENIED) {
-+ hydra_completed_pair();
-+ if (memcmp(hydra_get_next_pair(), &HYDRA_EXIT, sizeof(HYDRA_EXIT)) == 0){
-+ ssh_disconnect(ssh_session);
- return 2;
-- /* free(ssh_opt); */ /* DOUBLE FREE ! */
-+ }
-+ /* set a new password to try */
-+ login=hydra_get_next_login();
-+ if(strcmp(login,firstlogin) != 0){
-+ /* we can't try a new login without a new session. */
-+ ssh_disconnect(ssh_session);
-+ //hydra_completed_pair_skip();
-+ return 1;
-+ }
-+ pass=hydra_get_next_password();
-+ /* try again using same session */
-+ } else {
-+ ssh_disconnect(ssh_session); /* this automagically frees the ssh_opt buffer */
-+ /* there was an error. The password was not really tried.*/
-+ //hydra_completed_pair_skip();
- return 1;
- }
- }
- } while(1);
-
-- /* not reached */
--
-- /* free(ssh_opt); */ /* risk of double free */
- return 1;
- }
-
-Les sous-répertoires hydra-5.4-src/palm et hydra-5.4-src-libssh0.2/palm sont identiques.
diff --git a/net-analyzer/hydra/hydra-5.4-r2.ebuild b/net-analyzer/hydra/hydra-5.4-r2.ebuild
deleted file mode 100644
index cb673851d0bb..000000000000
--- a/net-analyzer/hydra/hydra-5.4-r2.ebuild
+++ /dev/null
@@ -1,69 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/hydra-5.4-r2.ebuild,v 1.5 2009/12/18 10:51:29 pva Exp $
-
-inherit eutils
-
-DESCRIPTION="Advanced parallized login hacker"
-HOMEPAGE="http://www.thc.org/thc-hydra/"
-SRC_URI="http://www.thc.org/releases/${P}-src.tar.gz"
-
-LICENSE="HYDRA GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE="gtk ssl"
-
-DEPEND="gtk? ( >=x11-libs/gtk+-1.2 )
- ssl? (
- dev-libs/openssl
- >=net-libs/libssh-0.2
- <net-libs/libssh-0.4.0
- )"
-
-S=${WORKDIR}/${P}-src
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- sed -i "s:-O2:${CFLAGS}:" Makefile.am || die "sed failed"
- epatch "${FILESDIR}/${P}-_FORTIFY_SOURCE.patch"
- epatch "${FILESDIR}/${P}-free-without-malloc.patch"
- epatch "${FILESDIR}/${P}-libssh-0.2.patch"
-}
-
-src_compile() {
- if use gtk ; then
- ./configure --prefix=/usr || die "configure failed"
- else
- ./configure --prefix=/usr --disable-xhydra || die "configure failed"
- fi
-
- sed -i \
- -e '/^XDEFINES=/s:=.*:=:' \
- -e '/^XLIBS=/s:=.*:=:' \
- -e '/^XLIBPATHS/s:=.*:=:' \
- -e '/^XIPATHS=/s:=.*:=:' \
- Makefile || die "pruning vars"
-
- if use ssl ; then
- sed -i \
- -e '/^XDEFINES=/s:=:=-DLIBOPENSSL -DLIBSSH:' \
- -e '/^XLIBS=/s:=:=-lcrypto -lssl -lssh:' \
- Makefile || die "adding ssl"
- fi
- emake || die "make failed"
-
- if use gtk ; then
- cd hydra-gtk
- econf
- emake || die "emake hydra-gtk failed"
- fi
-}
-
-src_install() {
- dobin hydra pw-inspector || die "dobin failed"
- if use gtk ; then
- dobin hydra-gtk/src/xhydra || die "gtk"
- fi
- dodoc CHANGES README TODO
-}
diff --git a/net-analyzer/hydra/hydra-5.7.ebuild b/net-analyzer/hydra/hydra-5.7.ebuild
new file mode 100644
index 000000000000..bbcc2128f787
--- /dev/null
+++ b/net-analyzer/hydra/hydra-5.7.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/hydra-5.7.ebuild,v 1.1 2010/08/22 21:57:58 jer Exp $
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Advanced parallized login hacker"
+HOMEPAGE="http://www.thc.org/thc-hydra/"
+SRC_URI="http://freeworld.thc.org/releases/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gtk ssl"
+
+DEPEND="gtk? ( >=x11-libs/gtk+-1.2 )
+ dev-libs/openssl
+ ssl? (
+ >=net-libs/libssh-0.4.0
+ )"
+
+S=${WORKDIR}/${P}-src
+
+src_prepare() {
+ # None of the settings in Makefile.unix are useful to us
+ : > Makefile.unix
+
+ sed -i \
+ -e 's:-O2:$(CPPFLAGS) $(CFLAGS):g' \
+ -e 's:|| echo.*$::' \
+ -e '/\t-$(CC)/s/-//' \
+ -e '/ -o /s:$(OPTS):& $(LDFLAGS):g' \
+ Makefile.am || die "sed failed"
+}
+
+src_configure() {
+ # Note: despite the naming convention, the top level script is not an
+ # autoconf-based script.
+ ./configure \
+ --prefix=/usr \
+ $(use gtk && echo --disable-xhydra) \
+ || die "configure failed"
+
+ sed -i \
+ -e '/^XDEFINES=/s:=.*:=:' \
+ -e '/^XLIBS=/s:=.*:=-lcrypto:' \
+ -e '/^XLIBPATHS/s:=.*:=:' \
+ -e '/^XIPATHS=/s:=.*:=:' \
+ Makefile || die "pruning vars"
+
+ if use ssl ; then
+ sed -i \
+ -e '/^XDEFINES=/s:=:=-DLIBOPENSSL -DLIBSSH:' \
+ -e '/^XLIBS=/s:$: -lssl -lssh:' \
+ Makefile || die "adding ssl"
+ fi
+
+ if use gtk ; then
+ cd hydra-gtk && \
+ econf || die "econf failed"
+ fi
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "make failed"
+ if use gtk ; then
+ cd hydra-gtk && \
+ emake || die "emake hydra-gtk failed"
+ fi
+}
+
+src_install() {
+ dobin hydra pw-inspector || die "dobin failed"
+ if use gtk ; then
+ dobin hydra-gtk/src/xhydra || die "gtk"
+ fi
+ dodoc CHANGES README TODO
+}