You are hereHOWTO: Install THC-Hydra 5.4 in Ubuntu Intrepid Ibex
HOWTO: Install THC-Hydra 5.4 in Ubuntu Intrepid Ibex
Wikipedia describes THC-Hydra as "... software ... that uses a dictionary attack to test for weak or simple passwords on one or many remote hosts running a variety of different services." Its useful for doing quick tests against your servers to make sure that your users are not using simple passwords. In pen tester speak, this is called a brute-force attack.
I had a hard time installing THC-Hydra on Ubuntu Intrepid Ibex. Here is how I finally did it.
First installed dependencies. Note: I couldn't compile xhydra but I am including libgtk2.0 anyway. Maybe someone can post a solution.
sudo apt-get install libssl-dev libgtk2.0-dev
Next, grab the Hydra source code.
wget -c http://freeworld.thc.org/releases/hydra-5.4-src.tar.gz
I prefer to run hydra from my home directory, so I untar it to where I will run it from:
mkdir ~/bin
tar -xvzf hydra-5.4-src.tar.gz -C ~/bin
cd ~/bin/hydra-5.4-src
Let's start compiling:
./configure
But WAIT! This is where I had some issues. If you look at the output of make you'll see this:
IF YOU RECEIVED THE ERROR MESSAGE "cannot find -lpq" DO THE FOLLOWING:
make clean; ./configure
vi Makefile <- and remove the "-lpq" and "-DLIBPOSTGRES" statements
make
If you get this error, you must do these steps:
make clean; ./configure
You can use Text Editor (gedit), Vi or your favorite text editor to make the following changes to the file "Makefile":
XDEFINES= -DLIBOPENSSL -DLIBPOSTGRES
becomes
XDEFINES= -DLIBOPENSSL
XLIBS= -lssl -lpq -lcrypto
becomes
XLIBS= -lssl -lcrypto
Once you have edited your Makefile, you are ready to compile:
make
... ./hydra is ready to go!
You are now ready to use Hydra. Type ./hydra -h to get syntax help.
An example of using Hydra would look like this:
./hydra -l yourfriend@hisdomain.com -P password.txt -V mail.hisdomain.com imap
where
-l is a username
-P is a wordlist ftp://ftp.openwall.com/pub/wordlists/
-V is the server you are running the attack against
imap is the service type
Let me know if you had any issues with your install. Enjoy.





I looked in configure and
XDEFINES= -DLIBOPENSSL -DLIBPOSTGRES
becomes
XDEFINES= -DLIBOPENSSL
XLIBS= -lssl -lpq -lcrypto
becomes
XLIBS= -lssl -lcrypto
did not exist could you please give line numbers as there are sever similar cases.
sorry could not edit , here paste bin of ./configure
http://pastebin.com/f1d9b182
PS; i edited line 368
Sorry about that. I actually meant the changes are to be made to "Makefile" not "configure". I hope that helps.
<3!
There are a couple of lines here and there in the file callbacks.c (/hydra-gtk/source subdirectory) that needed trivial revisions. See attached revised code. Just copy and replace :)
I used the revised callback.c above and xhydra compiled successfully.
I edited the callback.c in the hydra-gtk within the ~/bin/hydra.../hydra-gtk followed the README for the compile instructions and when I give the ./xhydra at the prompt I get no such file or directory did I follow the steps right.
I copied the above callback.c
sudo gedit callback.c
pasted the revised callback.c
saved
and followed the directions for compiling ./xhydra
./configure
make
su root
make install
I finally got the gui to compile...
I was making some bonehead commands
THANK YOU!!!
man, i followed the instructions step by step but it's not working for me, has anyone ran this file on ubuntu 9.10 ? if so, can you help?
Hi, I ran the process through 9.10 and updated the instructions here:
HOWTO: Install THC-Hydra 5.4 in Ubuntu Karmic Koala 9.10
Post any issues you have there. Thanks.
Hi mates... the original project page its down...
I upload the archive ".tar.gz" to Megaupload, if anyone need it: http://www.megaupload.com/?d=ON1JGTQW
Thanks for the tutorial edwin, good luck for everyone
Post new comment