Full directions, thanks ch0ks, Adroitlearner for the basis.
Purpose: Describe how to get THC-Hydra running under BT4-Pre-Final. This should work for any Ubuntu-like distro.
Stage 1: Install LibSSH
Download, build, install, and copy libssh.so to where THC-Hydra will look for it.
Code:
mkdir temp
cd temp
sudo -s
wget 0xbadc0de.be/libssh/libssh-0.11.tgz
tar -xzvf libssh-0.11.tgz
cd libssh-0.11
./configure
make
make install
mv /usr/local/lib/libssh.so /usr/lib/
cd ..
Stage 2: Install THC-Hydra
Code:
wget freeworld.thc.org/releases/hydra-5.4-src.tar.gz
tar -xzvf hydra-5.4-src.tar.gz
cd hydra-5.4-src
./configure
Next, edit the Makefile (to overcome a bug in BT4 pre-release) to look like:
Code:
XDEFINES= -DLIBOPENSSL -DLIBSSH
XLIBS= -lssl -lssh -lcrypto
Complete the install with:
NOTE: If you had tried to build Hydra before libssh was built, you will need to:
Code:
make clean
./configure
-- Edit Makefile again, as above --
Stage 3: Clean up
Code:
cd ..
cd ..
rm -rf temp
Stage 4: Finally...
By default, Hydra will be installed in /usr/local/bin/hydra
Note, BT4 has hydra installed in /usr/bin/hydra
A non-elegant solution:
Code:
mv /usr/local/bin/hydra /usr/bin/hydra
exit
Have fun!
Decode