Instalar hydra en LMDE

Iniciado por Capitan ShinChan, 30 Mayo 2012, 20:27 PM

0 Miembros y 1 Visitante están viendo este tema.

Capitan ShinChan

Os comento mi problema. Acabo de instalar LMDE (Linux Mint Debian Edition), que para quien no la conozca es una distro GNU/Linux basada en Debian.

Parte de los repositorios testing, pero los he cambiado a stable y además he añadido los de Backtrack 5.

Así tengo mi sources.list:
deb http://packages.linuxmint.com/ debian main upstream import
deb http://ftp.debian.org/debian stable main contrib non-free
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://www.debian-multimedia.org stable main non-free

deb http://backtrack.indowebster.com/repo/all revolution main microverse non-free testing
deb http://backtrack.indowebster.com/repo/32 revolution main microverse non-free testing
deb http://backtrack.indowebster.com/repo/source revolution main microverse non-free testing


Intenté instalar hydra desde Synaptic y con aptitude, pero sólo me encuentran el paquete source-hydra, que no me instala nada.

Entonces probé a bajarme el código fuente de la página oficial y compilarlo, pero no hay manera, saltan un montón de errores (aunque de muchos podría pasar porque no son imprescindibles, me gustaría tener hydra al completo).

Al ejecutar "./configure" obtengo:
Starting hydra auto configuration ...
Detected 64 Bit Linux OS

Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ...
                                                       ... found
Checking for idn (libidn.so) ...
                             ... NOT found, unicode logins and passwords will not be supported
Checking for pcre (libpcre.so, pcre.h) ...
                                       ... NOT found, server response checks will be less reliable
Checking for Postgres (libpq.so, libpq-fe.h) ...
                                             ... NOT found, module postgres disabled
Checking for SVN (libsvn_client-1 libapr-1.so libaprutil-1.so) ...
                                                               ... NOT found, module svn disabled
Checking for firebird (libfbclient.so) ...
                                       ... NOT found, module firebird disabled
Checking for MYSQL client (libmysqlclient.so, math.h) ...
                                                      ... NOT found, module Mysql will not support version > 4.x
Checking for AFP (libafpclient.so) ...
                                   ... NOT found, module Apple Filing Protocol disabled - Apple sucks anyway
Checking for NCP (libncp.so / nwcalls.h) ...
                                         ... NOT found, module NCP disabled
Checking for SAP/R3 (librfc/saprfc.h) ...
                                      ... NOT found, module sapr3 disabled
Get it from http://www.sap.com/solutions/netweaver/linux/eval/index.asp
Checking for libssh (libssh/libssh.h) ...
                                      ... NOT found, module ssh disabled
Get it from http://www.libssh.org
Checking for Oracle (libocci.so libclntsh.so / oci.h and libaio.so) ...
                                                                    ... NOT found, module Oracle disabled
Get basic and sdk package from http://www.oracle.com/technetwork/database/features/instant-client/index.html
Checking for GUI req's (pkg-config, gtk+-2.0) ...
                                              ... NOT found, optional anyway

Hydra will be installed into .../bin of: /usr/local
  (change this by running ./configure --prefix=path)

Writing Makefile.in ...
now type "make"


Lo único que conseguí remediar por mi cuenta fue instalar OpenSSL, bajándome el código desde la página oficial y compilándolo.

Si intento hacer el "make", esto es lo que obtengo:
gcc -I. -O3 -lm    -o hydra  hydra.c hydra-vnc.o hydra-pcnfs.o hydra-rexec.o hydra-nntp.o hydra-socks5.o hydra-telnet.o hydra-cisco.o hydra-http.o hydra-ftp.o hydra-imap.o hydra-pop3.o hydra-smb.o hydra-icq.o hydra-cisco-enable.o hydra-ldap.o hydra-mysql.o hydra-mssql.o hydra-xmpp.o hydra-http-proxy-urlenum.o hydra-snmp.o hydra-cvs.o hydra-smtp.o hydra-smtp-enum.o hydra-sapr3.o hydra-ssh.o hydra-teamspeak.o hydra-postgres.o hydra-rsh.o hydra-rlogin.o hydra-oracle-listener.o hydra-svn.o hydra-pcanywhere.o hydra-sip.o hydra-oracle-sid.o hydra-oracle.o hydra-vmauthd.o hydra-firebird.o hydra-afp.o hydra-ncp.o hydra-http-proxy.o hydra-http-form.o hydra-irc.o hydra-rdp.o crc32.o d3des.o bfg.o ntlm.o sasl.o hmacmd5.o hydra-mod.o -lm -lssl -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/lib/x86_64-linux-gnu -I/usr/local/ssl/include -DLIBOPENSSL -DLIBOPENSSLNEW -DHAVE_MATH_H
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
make: *** [hydra] Error 1


Bueno, eso es todo. Espero que podáis echarme una mano para solucionar esto y poder tener funcionando hydra.

Slava_TZD

Cita de: http://www.thc.org/thc-hydra/[0x03] Compilation Help

        Hydry compiles fine on all platforms that have gcc - Linux, all BSD, Mac OS/X, Cygwin on Windows, Solaris, etc.
        It should even compile on historical SunOS, Ultrix etc. platforms :-)
       
        There are many optional modules for network protocols like SSH, SVN etc. that require libraries.
        If they are not found, these optional libraries will not be supported in your binary.
       
        If you are on Linux, the following commands install all necessary libraries:

        Ubuntu/Debian:  apt-get install libssl-dev libssh-dev libidn11-dev libpcre3-dev libgtk2.0-dev libmysqlclient-dev libpq-dev libsvn-dev firebird2.1-dev libncp-dev
        Redhat/Fedora:  yum install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel
        OpenSuSE:       zypper install libopenssl-devel pcre-devel libidn-devel ncpfs-devel libssh-devel postgresql-devel subversion-devel
       
        This enables all optional modules and features with the exception of Oracle, SAP R/3 and the
        Apple filing protocol - which you will need to download and install from the vendor's web sites.
       
        For all other Linux derivates and BSD based systems, use the system software installer and look for
        similar named libraries like in the command above.
        In all other cases you have to download all source libraries and compile them manually;
        the configure script output tells you what is missing and where to get it from.


The fact is, even if you were to stop bombing us, imprisoning us, torturing us, vilifying us, and usurping our lands, we would continue to hate you because our primary reason for hating you will not cease to exist until you embrace Islam.