Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Installing THC-Hydra 5.7

Leer en espanol
Installing THC-Hydra 5.7

Table of contents

Well… let's INSTALL! We download Hydra bashrokitoh@redorbita:~/home/rokitoh$ wget http: ===

As we mentioned previously The Hacker's Choice has published a new version of this excellent tool.

Well… let's INSTALL!

We download Hydra

Bash
rokitoh@redorbita:~/home/rokitoh$ wget http://freeworld.thc.org/releases/hydra-5.7-src.tar.gz

We decompress

Bash
rokitoh@redorbita:~/home/rokitoh$ $tar xzvf hydra-5.7-src.tar.gz
We access the folder
Bash
rokitoh@redorbita:~/home/rokitoh$ cd hydra-5.7-src/
We compile
Bash
rokitoh@redorbita:~/home/rokitoh/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) …
… 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/linux/eval/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»
Bash
rokitoh@redorbita:~/home/rokitoh/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
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
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 -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
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 -lpq -lcrypto -L/usr/lib -L/usr/local/lib -L/lib -L/usr/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
We access as root
Bash
rokitoh@redorbita:~/home/rokitoh/hydra-5.7-src$ su
Contraseña:
We install Hydra
Bash
rokitoh@redorbita:~/home/rokitoh/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

To start Hydra with graphical interface:

Bash
rokitoh@redorbita:~/home/rokitoh/hydra-5.7-src# ./xhydra

Well, we already have it installed, now we just have to practice with it.

Hydra Information:

http://freeworld.thc.org/

http://freeworld.thc.org/thc-hydra/

http://freeworld.thc.org/thc-hydra/README

Comments