转:http://www.cnblogs.com/patf/p/3142564.html
1.yum -y install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel libncurses-devel gcc cmake
2.wget http://www.thc.org/releases/hydra-7.4.1.tar.gz
tar zxvf hydra-7.4.1.tar.gz
cd hydra-7.4.2
./configure
make
make install
ERROR:[ERROR] Compiled without LIBSSH v
0.4
.x support, module is not available!
rpm -qa |grep libssh*
3.wget http://www.libssh.org/files/0.4/libssh-0.4.8.tar.gz
tar zxvf libssh-0.4.8.tar.gz
cd libssh-0.4.8
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_SSH1=ON ..
make
make install
4.cd ../../hydra-7.4.2/
make clean
./configure
make
make install
/sbin/ldconfig
# /sbin/ldconfig //要执行这句,不然会出现hydra: error while loading shared libraries: libssh.so.4: cannot open shared object file: No such file or directory
时间: 2024-10-11 20:54:02