[root@srv-dfh526 hydra-7.6]#yum install openssl-devel pcre-devel ncpfs-devel postgresql-devel libssh-devel subversion-devel libncurses-devel mysql-devel
[root@srv-dfh526 hydra-7.6]# ./configure -h Options: --prefix=path path to install hydra and its datafiles to --with-oracle=prefix prefix for oracle include dir --with-oracle-lib=prefix prefix for oracle lib dir --disable-xhydra disable compilation of hydra GUI --nostrip do not per default strip binaries before install --help this here
[root@srv-dfh526 bin]# cd /root/install/hydra-7.6 [root@srv-dfh526 hydra-7.6]# ./configure Starting hydra auto configuration ... Detected 64 Bit Linux OS Checking for openssl (libssl, libcrypto, ssl.h, sha.h) ... ... found Checking for idn (libidn.so) ... ... found Checking for curses (libcurses.so / term.h) ... ... found, color output enabled Checking for pcre (libpcre.so, pcre.h) ... ... found Checking for Postgres (libpq.so, libpq-fe.h) ... ... found Checking for SVN (libsvn_client-1 libapr-1.so libaprutil-1.so) ... ... NOT found, module svn disabled Checking for firebird (libfbclient.so) ... ... NOT found, module firebird disabled Checking for MYSQL client (libmysqlclient.so, math.h) ... ... found Checking for AFP (libafpclient.so) ... ... NOT found, module Apple Filing Protocol disabled - Apple sucks anyway 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 ssh disabled Get it from http://www.libssh.org Checking for Oracle (libocci.so libclntsh.so / oci.h and libaio.so) ... ... NOT found, module Oracle disabled Get basic and sdk package from http://www.oracle.com/technetwork/database/features/instant-client/index.html Checking for GUI req's (pkg-config, gtk+-2.0) ... ... found Checking for Android specialities ... ... rindex() found ... RSA_generate_key() found Hydra will be installed into .../bin of: /usr/local (change this by running ./configure --prefix=path) Writing Makefile.in ... now type "make"
[root@srv-dfh526 bin]# make [root@srv-dfh526 bin]# make install
一個猜解神奇,安裝了嘗試破解ssh發現缺少libssh模塊。
wget http://www.libssh.org/files/0.4/libssh-0.4.8.tar.gz tar zxf libssh-0.4.8.tar.gz cd libssh-0.4.8 mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DWITH_SSH1=ON .. make make install
在記性了ssh安裝以後,發現依然無法正確運行。
思考下認爲是模塊未被已經編譯的hydra加載的緣故,所以進入安裝包hydra-7.6 然後 make clean 再重新安裝。
發現可以運行成功
hydra -L user.txt -P pass.txt -o savessh.log -f -vV -e ns 10.0.5.24 ssh hydra -L user.txt -P sup.txt -o savessh.log -f -vV -e ns 113.105.144.130 mysql